org.springframework.roo.classpath.details
Interface IdentifiableAnnotatedJavaStructure

All Superinterfaces:
org.springframework.roo.model.CustomDataAccessor, IdentifiableJavaStructure
All Known Subinterfaces:
ClassOrInterfaceTypeDetails, ConstructorMetadata, FieldMetadata, InvocableMemberMetadata, ItdTypeDetails, MemberHoldingTypeDetails, MethodMetadata
All Known Implementing Classes:
AbstractIdentifiableAnnotatedJavaStructureProvider, AbstractInvocableMemberMetadata, AbstractMemberHoldingTypeDetails, DefaultClassOrInterfaceTypeDetails, DefaultConstructorMetadata, DefaultFieldMetadata, DefaultItdTypeDetails, DefaultMethodMetadata

public interface IdentifiableAnnotatedJavaStructure
extends IdentifiableJavaStructure

Indicates an IdentifiableJavaStructure which can also be annotated.

Since:
1.1
Author:
Ben Alex

Method Summary
 AnnotationMetadata getAnnotation(org.springframework.roo.model.JavaType type)
          Locates the specified annotation on this structure.
 List<AnnotationMetadata> getAnnotations()
           
 AnnotationMetadata getTypeAnnotation(org.springframework.roo.model.JavaType annotationType)
          Locates an annotation on this class and its superclasses.
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure
getDeclaredByMetadataId, getModifier
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 

Method Detail

getAnnotation

AnnotationMetadata getAnnotation(org.springframework.roo.model.JavaType type)
Locates the specified annotation on this structure.

Parameters:
type - to locate (required)
Returns:
the annotation, or null if not found
Since:
1.2.0

getAnnotations

List<AnnotationMetadata> getAnnotations()
Returns:
annotations on this structure (never null, but may be empty)

getTypeAnnotation

AnnotationMetadata getTypeAnnotation(org.springframework.roo.model.JavaType annotationType)
Locates an annotation on this class and its superclasses.

Parameters:
annotationType - annotation to locate (required)
Returns:
the annotation, or null if not found
Since:
1.2.0


Copyright © 2009–2015. All rights reserved.