|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.classpath.details.DefaultClassOrInterfaceTypeDetails
public class DefaultClassOrInterfaceTypeDetails
Default representation of a ClassOrInterfaceTypeDetails
.
Constructor Summary | |
---|---|
DefaultClassOrInterfaceTypeDetails(String declaredByMetadataId,
org.springframework.roo.model.JavaType name,
int modifier,
PhysicalTypeCategory physicalTypeCategory,
List<AnnotationMetadata> typeAnnotations)
|
|
DefaultClassOrInterfaceTypeDetails(String declaredByMetadataId,
org.springframework.roo.model.JavaType name,
int modifier,
PhysicalTypeCategory physicalTypeCategory,
List<ConstructorMetadata> declaredConstructors,
List<FieldMetadata> declaredFields,
List<MethodMetadata> declaredMethods,
ClassOrInterfaceTypeDetails superclass,
List<org.springframework.roo.model.JavaType> extendsTypes,
List<org.springframework.roo.model.JavaType> implementsTypes,
List<AnnotationMetadata> typeAnnotations,
List<org.springframework.roo.model.JavaSymbolName> enumConstants)
|
Method Summary | |
---|---|
String |
getDeclaredByMetadataId()
Obtains the physical type identifier that included this ClassOrInterfaceTypeDetails . |
List<? extends ConstructorMetadata> |
getDeclaredConstructors()
|
List<? extends FieldMetadata> |
getDeclaredFields()
|
List<? extends MethodMetadata> |
getDeclaredMethods()
|
List<org.springframework.roo.model.JavaSymbolName> |
getEnumConstants()
Lists the enum constants this type provides. |
List<org.springframework.roo.model.JavaType> |
getExtendsTypes()
Lists the classes this type extends. |
List<org.springframework.roo.model.JavaType> |
getImplementsTypes()
Lists the classes this type implements. |
int |
getModifier()
Obtains the modifiers, in a format consistent with Modifier . |
org.springframework.roo.model.JavaType |
getName()
If possible, indicates any type parameters. |
PhysicalTypeCategory |
getPhysicalTypeCategory()
|
ClassOrInterfaceTypeDetails |
getSuperclass()
Obtains the superclass if this is a class and it is available. |
List<? extends AnnotationMetadata> |
getTypeAnnotations()
Lists the type-level annotations. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultClassOrInterfaceTypeDetails(String declaredByMetadataId, org.springframework.roo.model.JavaType name, int modifier, PhysicalTypeCategory physicalTypeCategory, List<AnnotationMetadata> typeAnnotations)
public DefaultClassOrInterfaceTypeDetails(String declaredByMetadataId, org.springframework.roo.model.JavaType name, int modifier, PhysicalTypeCategory physicalTypeCategory, List<ConstructorMetadata> declaredConstructors, List<FieldMetadata> declaredFields, List<MethodMetadata> declaredMethods, ClassOrInterfaceTypeDetails superclass, List<org.springframework.roo.model.JavaType> extendsTypes, List<org.springframework.roo.model.JavaType> implementsTypes, List<AnnotationMetadata> typeAnnotations, List<org.springframework.roo.model.JavaSymbolName> enumConstants)
Method Detail |
---|
public String getDeclaredByMetadataId()
ClassOrInterfaceTypeDetails
ClassOrInterfaceTypeDetails
.
getDeclaredByMetadataId
in interface ClassOrInterfaceTypeDetails
public int getModifier()
ClassOrInterfaceTypeDetails
Modifier
.
getModifier
in interface ClassOrInterfaceTypeDetails
public PhysicalTypeCategory getPhysicalTypeCategory()
getPhysicalTypeCategory
in interface PhysicalTypeDetails
PhysicalTypeDetails
instance (never null)public org.springframework.roo.model.JavaType getName()
PhysicalTypeDetails
getName
in interface PhysicalTypeDetails
public List<? extends ConstructorMetadata> getDeclaredConstructors()
getDeclaredConstructors
in interface MemberHoldingTypeDetails
public List<org.springframework.roo.model.JavaSymbolName> getEnumConstants()
ClassOrInterfaceTypeDetails
getEnumConstants
in interface ClassOrInterfaceTypeDetails
public List<? extends FieldMetadata> getDeclaredFields()
getDeclaredFields
in interface MemberHoldingTypeDetails
public List<? extends MethodMetadata> getDeclaredMethods()
getDeclaredMethods
in interface MemberHoldingTypeDetails
public List<org.springframework.roo.model.JavaType> getExtendsTypes()
MemberHoldingTypeDetails
While a List
is used, normally in Java a class will only extend a single other class.
A List
is used to support interfaces, as well as support
the special "declare parents: DestinationType extends SuperclassType"
feature of ITDs which permits effectively multiple inheritance.
getExtendsTypes
in interface MemberHoldingTypeDetails
public List<org.springframework.roo.model.JavaType> getImplementsTypes()
MemberHoldingTypeDetails
A List
is used to support interfaces, as well as support
the special "declare parents: DestinationType implements SomeInterfaceType"
feature of ITDs.
getImplementsTypes
in interface MemberHoldingTypeDetails
public List<? extends AnnotationMetadata> getTypeAnnotations()
MemberHoldingTypeDetails
This includes those annotations declared on the type, together with those defined via the ITD "declare @type: DestinationType: @Annotation" feature.
getTypeAnnotations
in interface MemberHoldingTypeDetails
public ClassOrInterfaceTypeDetails getSuperclass()
ClassOrInterfaceTypeDetails
getSuperclass
in interface ClassOrInterfaceTypeDetails
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |