javassist.bytecode.annotation
public class AnnotationImpl extends Object implements InvocationHandler
toAnnotationType()
in Annotation
.
Method Summary | |
---|---|
Annotation | getAnnotation()
Obtains the internal data structure representing the annotation.
|
String | getTypeName()
Obtains the name of the annotation type.
|
int | hashCode()
Returns a hash code value for this object. |
Object | invoke(Object proxy, Method method, Object[] args)
Executes a method invocation on a proxy instance.
|
static Object | make(ClassLoader cl, Class clazz, ClassPool cp, Annotation anon)
Constructs an annotation object.
|
Returns: the annotation
Returns: the type name
toString()
, equals()
,
and hashCode()
are directly supplied by the
AnnotationImpl
. The annotationType()
method
is also available on the proxy instance.Parameters: cl class loader for obtaining annotation types. clazz the annotation type. cp class pool for containing an annotation type (or null). anon the annotation.
Returns: the annotation