|
||||||||||
| 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.DefaultItdTypeDetails
public class DefaultItdTypeDetails
Default representation of an ItdTypeDetails.
Provides a basic hashCode() that is used for detecting significant
changes in AbstractItdMetadataProvider and avoiding downstream
notifications accordingly.
| Method Summary | |
|---|---|
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. |
List<ClassOrInterfaceTypeDetails> |
getInnerTypes()
Lists the inner types. |
List<DeclaredMethodAnnotationDetails> |
getMethodAnnotations()
Lists the method-level annotations. |
org.springframework.roo.model.JavaType |
getName()
|
PhysicalTypeCategory |
getPhysicalTypeCategory()
|
Set<org.springframework.roo.model.JavaType> |
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()
|
| 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, 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 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()
MemberHoldingTypeDetails
getDynamicFinderNames 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()
ItdTypeDetails
getInnerTypes 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 Set<org.springframework.roo.model.JavaType> 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 int hashCode()
hashCode in class Objectpublic 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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||