public class AnnotationImpl
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
toAnnotationType()
in Annotation
.Modifier and Type | Method and Description |
---|---|
Annotation |
getAnnotation()
Obtains the internal data structure representing the annotation.
|
java.lang.String |
getTypeName()
Obtains the name of the annotation type.
|
int |
hashCode()
Returns a hash code value for this object.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Executes a method invocation on a proxy instance.
|
static java.lang.Object |
make(java.lang.ClassLoader cl,
java.lang.Class clazz,
ClassPool cp,
Annotation anon)
Constructs an annotation object.
|
public static java.lang.Object make(java.lang.ClassLoader cl, java.lang.Class clazz, ClassPool cp, Annotation anon)
cl
- class loader for obtaining annotation types.clazz
- the annotation type.cp
- class pool for containing an annotation
type (or null).anon
- the annotation.public java.lang.String getTypeName()
public Annotation getAnnotation()
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
toString()
, equals()
,
and hashCode()
are directly supplied by the
AnnotationImpl
. The annotationType()
method
is also available on the proxy instance.invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public int hashCode()
hashCode
in class java.lang.Object
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.