public class AnnotationHolder extends AbstractAnnotatedInfo
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,AnnotationValue> |
annotationMap
Annotations map Map
|
protected AnnotationValue[] |
annotationsArray
The annotations
|
| Constructor and Description |
|---|
AnnotationHolder()
Create a new annotation holder
|
AnnotationHolder(AnnotationValue[] annotations)
Create a new AnnotationHolder.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationValue |
getAnnotation(String name)
Get an annotation
|
AnnotationValue[] |
getAnnotations()
Get the annotations
|
boolean |
isAnnotationPresent(String name)
Test whether an annotation is present
|
protected void |
setupAnnotations(AnnotationValue[] annotations)
Set up the annotations
|
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementationprotected AnnotationValue[] annotationsArray
protected HashMap<String,AnnotationValue> annotationMap
public AnnotationHolder()
public AnnotationHolder(AnnotationValue[] annotations)
annotations - the annotationspublic AnnotationValue[] getAnnotations()
AnnotatedInfopublic AnnotationValue getAnnotation(String name)
AnnotatedInfoname - the namepublic boolean isAnnotationPresent(String name)
AnnotatedInfoname - the nameprotected void setupAnnotations(AnnotationValue[] annotations)
annotations - the annotationsCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.