public abstract class JavassistInheritableAnnotationHolder extends JavassistAnnotatedInfo
Modifier and Type | Field and Description |
---|---|
protected Map<String,AnnotationValue> |
allAnnotations
All annotations Map
|
protected AnnotationValue[] |
allAnnotationsArray
All annotations
|
protected javassist.CtClass |
ctClass |
annotationHelper, annotationMap, annotationsArray
Constructor and Description |
---|
JavassistInheritableAnnotationHolder(javassist.CtClass ctClass,
AnnotationHelper annotationHelper) |
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
|
protected AnnotationValue[] |
getAnnotations(Object obj) |
abstract JavassistInheritableAnnotationHolder |
getSuperHolder() |
boolean |
isAnnotationPresent(String name)
Test whether an annotation is present
|
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> allAnnotations
protected AnnotationValue[] allAnnotationsArray
protected javassist.CtClass ctClass
public JavassistInheritableAnnotationHolder(javassist.CtClass ctClass, AnnotationHelper annotationHelper)
public AnnotationValue[] getAnnotations()
AnnotatedInfo
protected AnnotationValue[] getAnnotations(Object obj)
getAnnotations
in class JavassistAnnotatedInfo
public AnnotationValue getAnnotation(String name)
AnnotatedInfo
getAnnotation
in interface AnnotatedInfo
getAnnotation
in class JavassistAnnotatedInfo
name
- the namepublic boolean isAnnotationPresent(String name)
AnnotatedInfo
isAnnotationPresent
in interface AnnotatedInfo
isAnnotationPresent
in class JavassistAnnotatedInfo
name
- the namepublic void setupAnnotations(AnnotationValue[] annotations)
setupAnnotations
in class JavassistAnnotatedInfo
annotations
- the annotationsprotected Map<String,AnnotationValue> getAllAnnotations()
public abstract JavassistInheritableAnnotationHolder getSuperHolder()
Copyright © 2017 JBoss by Red Hat. All rights reserved.