org.springframework.roo.classpath.details
Interface ItdTypeDetails

All Superinterfaces:
org.springframework.roo.model.CustomDataAccessor, IdentifiableAnnotatedJavaStructure, IdentifiableJavaStructure, MemberHoldingTypeDetails, PhysicalTypeDetails
All Known Implementing Classes:
DefaultItdTypeDetails

public interface ItdTypeDetails
extends MemberHoldingTypeDetails

Provides information about an ITD.

For simplicity of implementation this is not a complete representation of all members and other information available via Java bytecode. For example, static initialisers and inner classes are unsupported.

Since:
1.0
Author:
Ben Alex, Stefan Schmidt

Method Summary
 org.springframework.roo.model.JavaType getAspect()
          Returns the name of type which holds the aspect itself.
 Set<org.springframework.roo.model.JavaType> getDeclarePrecedence()
          Set of aspect declared on declare precedence AspectJ declaration.
 List<DeclaredFieldAnnotationDetails> getFieldAnnotations()
          Lists the field-level annotations.
 ClassOrInterfaceTypeDetails getGovernor()
          Returns the ClassOrInterfaceTypeDetails representing the governor of this ITD.
 List<ClassOrInterfaceTypeDetails> getInnerTypes()
          Lists the inner types.
 List<DeclaredMethodAnnotationDetails> getMethodAnnotations()
          Lists the method-level annotations.
 Set<org.springframework.roo.model.JavaType> getRegisteredImports()
           
 boolean isPrivilegedAspect()
           
 
Methods inherited from interface org.springframework.roo.classpath.details.MemberHoldingTypeDetails
extendsType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredInitializers, getDeclaredInnerType, getDeclaredInnerTypes, getDeclaredMethods, getDynamicFinderNames, getExtendsTypes, getField, getFieldsWithAnnotation, getImplementsTypes, getLayerEntities, getMethod, getMethod, getMethods, getUniqueFieldName, implementsAny, implementsType
 
Methods inherited from interface org.springframework.roo.classpath.PhysicalTypeDetails
getName, getPhysicalTypeCategory, getType
 
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

getAspect

org.springframework.roo.model.JavaType getAspect()
Returns the name of type which holds the aspect itself.

Note that the type receiving the introductions can be determined via PhysicalTypeDetails.getName().

Returns:
the aspect JavaType (never null)

getFieldAnnotations

List<DeclaredFieldAnnotationDetails> getFieldAnnotations()
Lists the field-level annotations.

This includes those annotations declared on the field, together with those defined via the ITD "declare @field: DestinationType: @Annotation" feature.

Returns:
an unmodifiable representation of the field and the annotations declared on this field (may be empty, but never null)

getGovernor

ClassOrInterfaceTypeDetails getGovernor()
Returns the ClassOrInterfaceTypeDetails representing the governor of this ITD.

Returns:
the governor ClassOrInterfaceTypeDetails (never null)

getInnerTypes

List<ClassOrInterfaceTypeDetails> getInnerTypes()
Lists the inner types.

Returns:
an unmodifiable representation of the inner types (may be empty but never null)

getMethodAnnotations

List<DeclaredMethodAnnotationDetails> getMethodAnnotations()
Lists the method-level annotations.

This includes those annotations declared on the method, together with those defined via the ITD "declare @field: DestinationType: @Annotation" feature.

Returns:
an unmodifiable representation of the method and the annotations declared on this method (may be empty, but never null)

getRegisteredImports

Set<org.springframework.roo.model.JavaType> getRegisteredImports()
Returns:
the explicitly-registered imports this user wishes to have defined in the ITD (cannot be null, but may be empty)

isPrivilegedAspect

boolean isPrivilegedAspect()

getDeclarePrecedence

Set<org.springframework.roo.model.JavaType> getDeclarePrecedence()
Set of aspect declared on declare precedence AspectJ declaration.

Returns:
ordered aspect declared


Copyright © 2009–2015. All rights reserved.