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, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
protected AnnotationValue[] annotationsArray
protected HashMap<String,AnnotationValue> annotationMap
public AnnotationHolder()
public AnnotationHolder(AnnotationValue[] annotations)
annotations
- the annotationspublic AnnotationValue[] getAnnotations()
AnnotatedInfo
public AnnotationValue getAnnotation(String name)
AnnotatedInfo
name
- the namepublic boolean isAnnotationPresent(String name)
AnnotatedInfo
name
- the nameprotected void setupAnnotations(AnnotationValue[] annotations)
annotations
- the annotationsCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.