org.jboss.reflect.plugins.javassist
Class JavassistInheritableAnnotationHolder
java.lang.Object
org.jboss.util.JBossObject
org.jboss.reflect.plugins.AbstractAnnotatedInfo
org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder
- All Implemented Interfaces:
- Serializable, Cloneable, AnnotatedInfo, org.jboss.util.JBossInterface
- Direct Known Subclasses:
- JavassistTypeInfo
public abstract class JavassistInheritableAnnotationHolder
- extends JavassistAnnotatedInfo
- Version:
- $Revision: 60200 $
- Author:
- Kabir Khan
- See Also:
- Serialized Form
Fields inherited from class org.jboss.util.JBossObject |
hashCode, log, toString |
Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation |
Methods inherited from interface org.jboss.util.JBossInterface |
clone, toShortString, toShortString |
allAnnotations
protected Map<String,AnnotationValue> allAnnotations
- All annotations Map
allAnnotationsArray
protected AnnotationValue[] allAnnotationsArray
- All annotations
ctClass
protected javassist.CtClass ctClass
JavassistInheritableAnnotationHolder
public JavassistInheritableAnnotationHolder(javassist.CtClass ctClass,
AnnotationHelper annotationHelper)
getAnnotations
public AnnotationValue[] getAnnotations()
- Description copied from interface:
AnnotatedInfo
- Get the annotations
- Returns:
- the annotations
getAnnotations
protected AnnotationValue[] getAnnotations(Object obj)
- Overrides:
getAnnotations
in class JavassistAnnotatedInfo
getAnnotation
public AnnotationValue getAnnotation(String name)
- Description copied from interface:
AnnotatedInfo
- Get an annotation
- Specified by:
getAnnotation
in interface AnnotatedInfo
- Overrides:
getAnnotation
in class JavassistAnnotatedInfo
- Parameters:
name
- the name
- Returns:
- the annotation
isAnnotationPresent
public boolean isAnnotationPresent(String name)
- Description copied from interface:
AnnotatedInfo
- Test whether an annotation is present
- Specified by:
isAnnotationPresent
in interface AnnotatedInfo
- Overrides:
isAnnotationPresent
in class JavassistAnnotatedInfo
- Parameters:
name
- the name
- Returns:
- true when the annotation is present
setupAnnotations
public void setupAnnotations(AnnotationValue[] annotations)
- Set up the annotations
- Overrides:
setupAnnotations
in class JavassistAnnotatedInfo
- Parameters:
annotations
- the annotations
getAllAnnotations
protected Map<String,AnnotationValue> getAllAnnotations()
- Get all the annotations as a map
- Returns:
- the map
getSuperHolder
public abstract JavassistInheritableAnnotationHolder getSuperHolder()
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.