|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.julia.type.BasicComponentType
Provides a basic implementation of the ComponentType
interface.
Constructor Summary | |
BasicComponentType(InterfaceType[] itfTypes)
Constructs a BasicComponentType object. |
Method Summary | |
InterfaceType |
getFcInterfaceType(String name)
Returns an interface type of this component type from its name. |
InterfaceType[] |
getFcInterfaceTypes()
Returns the types of the interfaces of components of this type. |
boolean |
isFcSubTypeOf(Type type)
Returns true if the given type is a sub-type of this type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicComponentType(InterfaceType[] itfTypes) throws InstantiationException
BasicComponentType
object.
itfTypes
- the types of the interfaces of components of this type.
InstantiationException
- if two interface types have the same name,
or if the name of an interface type is a prefix of the name of a
collection interface type.Method Detail |
public InterfaceType[] getFcInterfaceTypes()
ComponentType
getFcInterfaceTypes
in interface ComponentType
public InterfaceType getFcInterfaceType(String name) throws NoSuchInterfaceException
ComponentType
getFcInterfaceTypes
method. But it is convenient and
can be implemented more efficiently than with the previous method. This is
why it is specified here.
getFcInterfaceType
in interface ComponentType
name
- the name of one of the interface types returned by getFcInterfaceTypes
(see getFcItfName
).
getFcItfName
).
NoSuchInterfaceException
- if there is no such interface type.public boolean isFcSubTypeOf(Type type)
Type
equals
to u
then t.isFcSubTypeOf(u) should return true
isFcSubTypeOf
in interface Type
type
- the type to be compared to this type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |