public abstract class InheritableAnnotationHolder extends AbstractAnnotatedInfo
Modifier and Type | Field and Description |
---|---|
protected Map<String,AnnotationValue> |
allAnnotations
All annotations Map
|
protected AnnotationValue[] |
allAnnotationsArray
All annotations
|
protected Object |
annotatedElement
The annotated element
|
protected AnnotationHelper |
annotationHelper
The annotation helper
|
protected Map<String,AnnotationValue> |
declaredAnnotations
Declared annotations Map
|
protected AnnotationValue[] |
declaredAnnotationsArray
Declared annotations
|
Constructor and Description |
---|
InheritableAnnotationHolder()
Create a new InheritableAnnotationHolder.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,AnnotationValue> |
getAllAnnotations()
Get all the annotations as a map
|
AnnotationValue |
getAnnotation(String name)
Get an annotation
|
AnnotationValue[] |
getAnnotations()
Get the annotations
|
AnnotationValue[] |
getDeclaredAnnotations()
Get the declared annotations
|
protected abstract InheritableAnnotationHolder |
getSuperHolder()
Get the super holder of annoations
|
boolean |
isAnnotationPresent(String name)
Test whether an annotation is present
|
void |
setAnnotatedElement(Object annotatedElement) |
void |
setAnnotationHelper(AnnotationHelper annotationHelper) |
void |
setupAnnotations(AnnotationValue[] annotations)
Set up the annotations
|
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
protected Map<String,AnnotationValue> declaredAnnotations
protected Map<String,AnnotationValue> allAnnotations
protected AnnotationValue[] allAnnotationsArray
protected AnnotationValue[] declaredAnnotationsArray
protected Object annotatedElement
protected transient AnnotationHelper annotationHelper
public InheritableAnnotationHolder()
public void setAnnotatedElement(Object annotatedElement)
public void setAnnotationHelper(AnnotationHelper annotationHelper)
public AnnotationValue[] getDeclaredAnnotations()
public AnnotationValue[] getAnnotations()
AnnotatedInfo
public AnnotationValue getAnnotation(String name)
AnnotatedInfo
name
- the namepublic boolean isAnnotationPresent(String name)
AnnotatedInfo
name
- the namepublic void setupAnnotations(AnnotationValue[] annotations)
annotations
- the annotationsprotected Map<String,AnnotationValue> getAllAnnotations()
protected abstract InheritableAnnotationHolder getSuperHolder()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.