InvocationHandlerpublic class AnnotationImpl extends Object implements InvocationHandler
toAnnotationType() in Annotation.| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public static Object make(ClassLoader cl, Class<?> clazz, ClassPool cp, Annotation anon) throws IllegalArgumentException
cl - class loader for obtaining annotation types.clazz - the annotation type.cp - class pool for containing an annotation
type (or null).anon - the annotation.IllegalArgumentExceptionpublic String getTypeName()
public Annotation getAnnotation()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
toString(), equals(),
and hashCode() are directly supplied by the
AnnotationImpl. The annotationType() method
is also available on the proxy instance.invoke in interface InvocationHandlerThrowableCopyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.