Package spoon.metamodel
Class MetamodelConcept
java.lang.Object
spoon.metamodel.MetamodelConcept
Represents a concept of the Spoon metamodel (eg
CtClass
).-
Method Summary
Modifier and TypeMethodDescriptionCtClass<?>
getKind()
CtInterface<?>
getName()
getProperty(CtRole role)
toString()
-
Method Details
-
getName
- Returns:
- interface name of
MetamodelConcept
. For example CtClass, CtForEach, ... It is never followed by xxxImpl
-
getKind
- Returns:
- kind of this
MetamodelConcept
.
-
getRoleToProperty
- Returns:
- map of
MetamodelProperty
s by theirCtRole
-
getProperties
- Returns:
- Collection of all
MetamodelProperty
of currentMetamodelConcept
Note: actually is the order undefined TODO: return List in the same order like it is scanned by CtScanner
-
getProperty
- Parameters:
role
- aCtRole
- Returns:
MetamodelProperty
for `role` of this concept
-
getSuperConcepts
- Returns:
- super types
-
getImplementationClass
- Returns:
CtClass
which represents thisMetamodelConcept
-
getMetamodelInterface
- Returns:
CtInterface
which represents thisMetamodelConcept
-
toString
-