|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.classpath.details.DefaultItdTypeDetails
public class DefaultItdTypeDetails
Default representation of an ItdTypeDetails
.
Constructor Summary | |
---|---|
DefaultItdTypeDetails(ClassOrInterfaceTypeDetails governor,
org.springframework.roo.model.JavaType aspect,
boolean privilegedAspect,
Set<org.springframework.roo.model.JavaType> registeredImports,
List<ConstructorMetadata> declaredConstructors,
List<FieldMetadata> declaredFields,
List<MethodMetadata> declaredMethods,
List<org.springframework.roo.model.JavaType> extendsTypes,
List<org.springframework.roo.model.JavaType> implementsTypes,
List<AnnotationMetadata> typeAnnotations,
List<DeclaredFieldAnnotationDetails> fieldAnnotations,
List<DeclaredMethodAnnotationDetails> methodAnnotations)
|
Method Summary | |
---|---|
org.springframework.roo.model.JavaType |
getAspect()
Returns the name of type which holds the aspect itself. |
static DefaultItdTypeDetailsBuilder |
getBuilder(String declaredByMetadataId,
ClassOrInterfaceTypeDetails governor,
org.springframework.roo.model.JavaType aspect,
boolean privilegedAspect)
|
List<? extends ConstructorMetadata> |
getDeclaredConstructors()
|
List<? extends FieldMetadata> |
getDeclaredFields()
|
List<? extends MethodMetadata> |
getDeclaredMethods()
|
List<org.springframework.roo.model.JavaType> |
getExtendsTypes()
Lists the classes this type extends. |
List<DeclaredFieldAnnotationDetails> |
getFieldAnnotations()
Lists the field-level annotations. |
ClassOrInterfaceTypeDetails |
getGovernor()
|
List<org.springframework.roo.model.JavaType> |
getImplementsTypes()
Lists the classes this type implements. |
List<DeclaredMethodAnnotationDetails> |
getMethodAnnotations()
Lists the method-level annotations. |
org.springframework.roo.model.JavaType |
getName()
If possible, indicates any type parameters. |
PhysicalTypeCategory |
getPhysicalTypeCategory()
|
Set<org.springframework.roo.model.JavaType> |
getRegisteredImports()
|
List<? extends AnnotationMetadata> |
getTypeAnnotations()
Lists the type-level annotations. |
boolean |
isPrivilegedAspect()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultItdTypeDetails(ClassOrInterfaceTypeDetails governor, org.springframework.roo.model.JavaType aspect, boolean privilegedAspect, Set<org.springframework.roo.model.JavaType> registeredImports, List<ConstructorMetadata> declaredConstructors, List<FieldMetadata> declaredFields, List<MethodMetadata> declaredMethods, List<org.springframework.roo.model.JavaType> extendsTypes, List<org.springframework.roo.model.JavaType> implementsTypes, List<AnnotationMetadata> typeAnnotations, List<DeclaredFieldAnnotationDetails> fieldAnnotations, List<DeclaredMethodAnnotationDetails> methodAnnotations)
Method Detail |
---|
public static DefaultItdTypeDetailsBuilder getBuilder(String declaredByMetadataId, ClassOrInterfaceTypeDetails governor, org.springframework.roo.model.JavaType aspect, boolean privilegedAspect)
public Set<org.springframework.roo.model.JavaType> getRegisteredImports()
getRegisteredImports
in interface ItdTypeDetails
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 PhysicalTypeCategory getPhysicalTypeCategory()
getPhysicalTypeCategory
in interface PhysicalTypeDetails
PhysicalTypeDetails
instance (never null)public org.springframework.roo.model.JavaType getName()
PhysicalTypeDetails
getName
in interface PhysicalTypeDetails
public ClassOrInterfaceTypeDetails getGovernor()
public org.springframework.roo.model.JavaType getAspect()
ItdTypeDetails
Note that the type receiving the introductions can be determined via PhysicalTypeDetails.getName()
.
getAspect
in interface ItdTypeDetails
JavaType
(never null)public boolean isPrivilegedAspect()
isPrivilegedAspect
in interface ItdTypeDetails
public List<? extends ConstructorMetadata> getDeclaredConstructors()
getDeclaredConstructors
in interface MemberHoldingTypeDetails
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<? 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 List<DeclaredFieldAnnotationDetails> getFieldAnnotations()
ItdTypeDetails
This includes those annotations declared on the field, together with those defined via the ITD "declare @field: DestinationType: @Annotation" feature.
getFieldAnnotations
in interface ItdTypeDetails
public List<DeclaredMethodAnnotationDetails> getMethodAnnotations()
ItdTypeDetails
This includes those annotations declared on the method, together with those defined via the ITD "declare @field: DestinationType: @Annotation" feature.
getMethodAnnotations
in interface ItdTypeDetails
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |