org.springframework.roo.classpath.details
Class AbstractIdentifiableAnnotatedJavaStructureProvider

java.lang.Object
  extended by org.springframework.roo.model.AbstractCustomDataAccessorProvider
      extended by org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
          extended by org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
All Implemented Interfaces:
IdentifiableAnnotatedJavaStructure, IdentifiableJavaStructure, org.springframework.roo.model.CustomDataAccessor
Direct Known Subclasses:
AbstractInvocableMemberMetadata, AbstractMemberHoldingTypeDetails, DefaultFieldMetadata

public abstract class AbstractIdentifiableAnnotatedJavaStructureProvider
extends AbstractIdentifiableJavaStructureProvider
implements IdentifiableAnnotatedJavaStructure

Abstract class for IdentifiableAnnotatedJavaStructure subclasses.

Since:
1.1
Author:
Ben Alex

Constructor Summary
protected AbstractIdentifiableAnnotatedJavaStructureProvider(org.springframework.roo.model.CustomData customData, String declaredByMetadataId, int modifier, Collection<AnnotationMetadata> annotations)
          Constructor
 
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 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, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure
getDeclaredByMetadataId, getModifier
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 

Constructor Detail

AbstractIdentifiableAnnotatedJavaStructureProvider

protected AbstractIdentifiableAnnotatedJavaStructureProvider(org.springframework.roo.model.CustomData customData,
                                                             String declaredByMetadataId,
                                                             int modifier,
                                                             Collection<AnnotationMetadata> annotations)
Constructor

Parameters:
customData -
declaredByMetadataId -
modifier -
annotations - can be null for none
Method Detail

getAnnotation

public AnnotationMetadata getAnnotation(org.springframework.roo.model.JavaType type)
Description copied from interface: IdentifiableAnnotatedJavaStructure
Locates the specified annotation on this structure.

Specified by:
getAnnotation in interface IdentifiableAnnotatedJavaStructure
Parameters:
type - to locate (required)
Returns:
the annotation, or null if not found

getAnnotations

public List<AnnotationMetadata> getAnnotations()
Specified by:
getAnnotations in interface IdentifiableAnnotatedJavaStructure
Returns:
annotations on this structure (never null, but may be empty)

getTypeAnnotation

public AnnotationMetadata getTypeAnnotation(org.springframework.roo.model.JavaType annotationType)
Description copied from interface: IdentifiableAnnotatedJavaStructure
Locates an annotation on this class and its superclasses.

Specified by:
getTypeAnnotation in interface IdentifiableAnnotatedJavaStructure
Parameters:
annotationType - annotation to locate (required)
Returns:
the annotation, or null if not found


Copyright © 2009–2015. All rights reserved.