public class JAnnotation<A extends Annotation> extends JType
Modifier | Constructor and Description |
---|---|
protected |
JAnnotation(javassist.bytecode.annotation.Annotation annotation,
JElement enclosingElement,
ClasspathResolver resolver) |
protected |
JAnnotation(Annotation annotation,
JElement enclosingElement,
ClasspathResolver resolver) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(IntrospectionVisitor visitor) |
boolean |
equals(Object obj) |
A |
getActualAnnotation() |
Class<A> |
getActualClass() |
Class<?> |
getActualSuperType() |
Set<JAnnotation<?>> |
getAnnotations() |
JElement |
getEnclosingElement() |
static <A extends Annotation> |
getJAnnotation(A nextAnnotation,
JElement enclosingElement,
ClasspathResolver resolver) |
static JAnnotation<?> |
getJAnnotation(javassist.bytecode.annotation.Annotation nextAnnotation,
JElement enclosingElement,
ClasspathResolver resolver) |
JPackage |
getPackage() |
JClass |
getSuperType() |
int |
hashCode() |
String |
toString() |
getAnnotation, getClassFile, getModifier, isPrivate, isProtected, isPublic
findClassFile, getName, getResolver
protected JAnnotation(javassist.bytecode.annotation.Annotation annotation, JElement enclosingElement, ClasspathResolver resolver)
protected JAnnotation(Annotation annotation, JElement enclosingElement, ClasspathResolver resolver)
public JClass getSuperType() throws ClasspathAccessException
ClasspathAccessException
public Class<?> getActualSuperType() throws ClasspathAccessException
ClasspathAccessException
public static JAnnotation<?> getJAnnotation(javassist.bytecode.annotation.Annotation nextAnnotation, JElement enclosingElement, ClasspathResolver resolver)
public static <A extends Annotation> JAnnotation<A> getJAnnotation(A nextAnnotation, JElement enclosingElement, ClasspathResolver resolver)
public A getActualAnnotation() throws ClasspathAccessException
ClasspathAccessException
public Set<JAnnotation<?>> getAnnotations() throws ClasspathAccessException
getAnnotations
in class JElement
ClasspathAccessException
public JPackage getPackage() throws ClasspathAccessException
getPackage
in class JType
ClasspathAccessException
public Class<A> getActualClass() throws ClasspathAccessException
getActualClass
in class JType
ClasspathAccessException
public void acceptVisitor(IntrospectionVisitor visitor)
acceptVisitor
in class JElement
public JElement getEnclosingElement()
getEnclosingElement
in class JElement
Copyright © 2010–2018 Jadira Systems. All rights reserved.