public class DefaultItdTypeDetails extends AbstractMemberHoldingTypeDetails implements ItdTypeDetails
ItdTypeDetails.
Provides a basic hashCode() that is used for detecting significant
changes in AbstractItdMetadataProvider and avoiding downstream
notifications accordingly.
| Modifier and Type | Method and Description |
|---|---|
boolean |
extendsType(org.springframework.roo.model.JavaType type)
Indicates whether this type extends the given type.
|
org.springframework.roo.model.JavaType |
getAspect()
Returns the name of type which holds the aspect itself.
|
List<? extends ConstructorMetadata> |
getDeclaredConstructors() |
List<FieldMetadata> |
getDeclaredFields() |
List<InitializerMetadata> |
getDeclaredInitializers() |
List<ClassOrInterfaceTypeDetails> |
getDeclaredInnerTypes() |
List<MethodMetadata> |
getDeclaredMethods() |
Set<org.springframework.roo.model.JavaType> |
getDeclarePrecedence()
Set of aspect declared on
declare precedence
AspectJ declaration. |
List<String> |
getDynamicFinderNames()
Returns the names of any dynamic finders
|
List<org.springframework.roo.model.JavaType> |
getExtendsTypes()
Lists the classes this type extends.
|
List<DeclaredFieldAnnotationDetails> |
getFieldAnnotations()
Lists the field-level annotations.
|
ClassOrInterfaceTypeDetails |
getGovernor()
Returns the
ClassOrInterfaceTypeDetails representing the governor
of this ITD. |
List<org.springframework.roo.model.JavaType> |
getImplementsTypes()
Lists the classes this type implements.
|
Set<ImportMetadata> |
getImports()
Lists the imports this class includes.
|
List<ClassOrInterfaceTypeDetails> |
getInnerTypes()
Lists the inner types.
|
List<DeclaredMethodAnnotationDetails> |
getMethodAnnotations()
Lists the method-level annotations.
|
org.springframework.roo.model.JavaType |
getName() |
PhysicalTypeCategory |
getPhysicalTypeCategory() |
SortedMap<org.springframework.roo.model.JavaType,Boolean> |
getRegisteredImports() |
org.springframework.roo.model.JavaType |
getType()
Returns the
JavaType provided by this physical type. |
int |
hashCode() |
boolean |
implementsAny(org.springframework.roo.model.JavaType... types)
Indicates whether this type implements the given types.
|
boolean |
isPrivilegedAspect() |
String |
toString() |
getDeclaredConstructor, getDeclaredField, getDeclaredInnerType, getField, getFieldsWithAnnotation, getLayerEntities, getMethod, getMethod, getMethods, getUniqueFieldName, implementsTypegetAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifiergetCustomDataclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetDeclaredConstructor, getDeclaredField, getDeclaredInnerType, getField, getFieldsWithAnnotation, getLayerEntities, getMethod, getMethod, getMethods, getUniqueFieldName, implementsTypegetAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifierpublic 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 org.springframework.roo.model.JavaType getAspect()
ItdTypeDetails
Note that the type receiving the introductions can be determined via
PhysicalTypeDetails.getName().
getAspect in interface ItdTypeDetailsJavaType (never null)public List<? extends ConstructorMetadata> getDeclaredConstructors()
getDeclaredConstructors in interface MemberHoldingTypeDetailspublic List<FieldMetadata> getDeclaredFields()
getDeclaredFields in interface MemberHoldingTypeDetailspublic List<InitializerMetadata> getDeclaredInitializers()
getDeclaredInitializers in interface MemberHoldingTypeDetailspublic List<ClassOrInterfaceTypeDetails> getDeclaredInnerTypes()
getDeclaredInnerTypes in interface MemberHoldingTypeDetailspublic List<MethodMetadata> getDeclaredMethods()
getDeclaredMethods in interface MemberHoldingTypeDetailspublic List<String> getDynamicFinderNames()
MemberHoldingTypeDetailsgetDynamicFinderNames in interface MemberHoldingTypeDetailsnull listpublic 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<DeclaredFieldAnnotationDetails> getFieldAnnotations()
ItdTypeDetailsThis includes those annotations declared on the field, together with those defined via the ITD "declare @field: DestinationType: @Annotation" feature.
getFieldAnnotations in interface ItdTypeDetailspublic ClassOrInterfaceTypeDetails getGovernor()
ItdTypeDetailsClassOrInterfaceTypeDetails representing the governor
of this ITD.getGovernor in interface ItdTypeDetailsClassOrInterfaceTypeDetails (never null)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 MemberHoldingTypeDetailspublic List<ClassOrInterfaceTypeDetails> getInnerTypes()
ItdTypeDetailsgetInnerTypes in interface ItdTypeDetailspublic List<DeclaredMethodAnnotationDetails> getMethodAnnotations()
ItdTypeDetailsThis includes those annotations declared on the method, together with those defined via the ITD "declare @field: DestinationType: @Annotation" feature.
getMethodAnnotations in interface ItdTypeDetailspublic 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 SortedMap<org.springframework.roo.model.JavaType,Boolean> getRegisteredImports()
getRegisteredImports in interface ItdTypeDetailspublic 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 isPrivilegedAspect()
isPrivilegedAspect in interface ItdTypeDetailspublic Set<org.springframework.roo.model.JavaType> getDeclarePrecedence()
ItdTypeDetailsdeclare precedence
AspectJ declaration.getDeclarePrecedence in interface ItdTypeDetailspublic Set<ImportMetadata> getImports()
MemberHoldingTypeDetailsgetImports in interface MemberHoldingTypeDetailsCopyright © 2009–2017. All rights reserved.