org.objectweb.fractal.api
Interface Type
- All Known Subinterfaces:
- ComponentType, InterfaceType
public interface Type
Specifies the minimal interface that all type systems must implement. This
interface defines only one method to test if a type is a sub-type of another
one.
Method Summary |
boolean |
isFcSubTypeOf(Type type)
Returns true if the given type is a sub-type of this type. |
isFcSubTypeOf
boolean isFcSubTypeOf(Type type)
- Returns true if the given type is a sub-type of this type. The
relation defined by this method should be:
- reflexive: if t is
equals
to u
then t.isFcSubTypeOf(u) should return true
- transitive: if t.isFcSubTypeOf(u) and
u.isFcSubTypeOf(v) are true then
t.isFcSubTypeOf(v) must be true
- Parameters:
type
- the type to be compared to this type.
- Returns:
- true if the given type is a sub-type of this type.
Copyright © 2007-2011. All Rights Reserved.