org.springframework.roo.classpath.details
Interface ItdTypeDetails

All Superinterfaces:
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.
 List<DeclaredFieldAnnotationDetails> getFieldAnnotations()
          Lists the field-level annotations.
 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
getDeclaredConstructors, getDeclaredFields, getDeclaredMethods, getExtendsTypes, getImplementsTypes, getTypeAnnotations
 
Methods inherited from interface org.springframework.roo.classpath.PhysicalTypeDetails
getName, getPhysicalTypeCategory
 

Method Detail

isPrivilegedAspect

boolean isPrivilegedAspect()

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)

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)

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)

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)


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.