org.springframework.roo.classpath.details
Class AbstractIdentifiableAnnotatedJavaStructureProvider
java.lang.Object
org.springframework.roo.model.AbstractCustomDataAccessorProvider
org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
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
| 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.model.CustomDataAccessor |
getCustomData |
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
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.