|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.model.AbstractCustomDataAccessorProvider
org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
org.springframework.roo.classpath.details.AbstractMemberHoldingTypeDetails
org.springframework.roo.classpath.details.DefaultClassOrInterfaceTypeDetails
public class DefaultClassOrInterfaceTypeDetails
Default representation of a ClassOrInterfaceTypeDetails.
| Method Summary | |
|---|---|
boolean |
declaresField(org.springframework.roo.model.JavaSymbolName fieldName)
Indicates whether this class or interface declares a field with the given name |
boolean |
extendsType(org.springframework.roo.model.JavaType type)
Indicates whether this type extends the given type. |
List<? extends ConstructorMetadata> |
getDeclaredConstructors()
|
List<? extends FieldMetadata> |
getDeclaredFields()
|
List<InitializerMetadata> |
getDeclaredInitializers()
|
List<ClassOrInterfaceTypeDetails> |
getDeclaredInnerTypes()
|
List<? extends MethodMetadata> |
getDeclaredMethods()
|
List<String> |
getDynamicFinderNames()
Returns the names of any dynamic finders |
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. |
org.springframework.roo.model.JavaType |
getName()
|
PhysicalTypeCategory |
getPhysicalTypeCategory()
|
Set<ImportMetadata> |
getRegisteredImports()
|
ClassOrInterfaceTypeDetails |
getSuperclass()
Obtains the superclass if this is a class and it is available. |
org.springframework.roo.model.JavaType |
getType()
Returns the JavaType provided by this physical type. |
boolean |
implementsAny(org.springframework.roo.model.JavaType... types)
Indicates whether this type implements the given types. |
boolean |
isAbstract()
Indicates whether this class, interface, or enum is abstract |
String |
toString()
|
| Methods inherited from class org.springframework.roo.classpath.details.AbstractMemberHoldingTypeDetails |
|---|
getDeclaredConstructor, getDeclaredField, getDeclaredInnerType, getField, getFieldsWithAnnotation, getLayerEntities, getMethod, getMethod, getMethods, getUniqueFieldName, implementsType |
| Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider |
|---|
getAnnotation, getAnnotations, getTypeAnnotation |
| Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider |
|---|
getDeclaredByMetadataId, getModifier |
| Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider |
|---|
getCustomData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.roo.classpath.details.MemberHoldingTypeDetails |
|---|
getDeclaredConstructor, getDeclaredField, getDeclaredInnerType, getField, getFieldsWithAnnotation, getLayerEntities, getMethod, getMethod, getMethods, getUniqueFieldName, implementsType |
| Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableAnnotatedJavaStructure |
|---|
getAnnotation, getAnnotations, getTypeAnnotation |
| Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure |
|---|
getDeclaredByMetadataId, getModifier |
| Methods inherited from interface org.springframework.roo.model.CustomDataAccessor |
|---|
getCustomData |
| Method Detail |
|---|
public boolean declaresField(org.springframework.roo.model.JavaSymbolName fieldName)
ClassOrInterfaceTypeDetails
declaresField in interface ClassOrInterfaceTypeDetailsfieldName - the field name to check for (can be null)
false if a null field name is givenpublic boolean extendsType(org.springframework.roo.model.JavaType type)
MemberHoldingTypeDetailsMemberHoldingTypeDetails.getExtendsTypes() and checking whether the given type is in the
returned list.
extendsType in interface MemberHoldingTypeDetailstype - the supertype being checked for (required)
public List<? extends ConstructorMetadata> getDeclaredConstructors()
getDeclaredConstructors in interface MemberHoldingTypeDetailspublic List<? extends FieldMetadata> getDeclaredFields()
getDeclaredFields in interface MemberHoldingTypeDetailspublic List<InitializerMetadata> getDeclaredInitializers()
getDeclaredInitializers in interface MemberHoldingTypeDetailspublic List<ClassOrInterfaceTypeDetails> getDeclaredInnerTypes()
getDeclaredInnerTypes in interface MemberHoldingTypeDetailspublic List<? extends MethodMetadata> getDeclaredMethods()
getDeclaredMethods in interface MemberHoldingTypeDetailspublic List<String> getDynamicFinderNames()
MemberHoldingTypeDetails
getDynamicFinderNames in interface MemberHoldingTypeDetailsnull listpublic List<org.springframework.roo.model.JavaSymbolName> getEnumConstants()
ClassOrInterfaceTypeDetails
getEnumConstants in interface ClassOrInterfaceTypeDetailspublic 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 MemberHoldingTypeDetailspublic 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 MemberHoldingTypeDetailspublic org.springframework.roo.model.JavaType getName()
getName in interface PhysicalTypeDetails#getType(), which returns the same thing but is better namedpublic PhysicalTypeCategory getPhysicalTypeCategory()
getPhysicalTypeCategory in interface PhysicalTypeDetailsPhysicalTypeDetails instance (never null)public Set<ImportMetadata> getRegisteredImports()
getRegisteredImports in interface ClassOrInterfaceTypeDetailspublic ClassOrInterfaceTypeDetails getSuperclass()
ClassOrInterfaceTypeDetails
getSuperclass in interface ClassOrInterfaceTypeDetailspublic org.springframework.roo.model.JavaType getType()
PhysicalTypeDetailsJavaType provided by this physical type. If possible,
indicates any type parameters.
getType in interface PhysicalTypeDetailspublic boolean implementsAny(org.springframework.roo.model.JavaType... types)
MemberHoldingTypeDetailsMemberHoldingTypeDetails.getImplementsTypes() and checking whether the given
types are in the returned list.
implementsAny in interface MemberHoldingTypeDetailstypes - the interfaces being checked for (required)
public boolean isAbstract()
ClassOrInterfaceTypeDetails
isAbstract in interface ClassOrInterfaceTypeDetailspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||