toAnnotationType() in Annotation.
| Modifier and Type | Field and Description |
|---|---|
| private Annotation | |
| private transient Class | |
| private transient int | |
| private ClassLoader | |
| private static final String | |
| private static Method | |
| private ClassPool |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | Returns: the hashCodethe object object)Calculates the hashCode of an array using the same algorithm as java.util.Arrays.hashCode() |
| private boolean | Returns: the true when equals false otherwisethe other annotation obj)Check that another annotation equals ourselves. |
| public Annotation | Returns: the annotationObtains the internal data structure representing the annotation. |
| private Class | |
| private Object | |
| public String | |
| public int | |
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. Executes a method invocation on a proxy instance. |
| public static Object | Returns: the annotationclass loader for obtaining annotation types. cl, Class<?> the annotation type. clazz, ClassPool class pool for containing an annotation
type (or null). cp, Annotation the annotation. anon)Constructs an annotation object. |
| annotation | back to summary |
|---|---|
| private Annotation annotation | |
| annotationType | back to summary |
|---|---|
| private transient Class<?> annotationType | |
| cachedHashCode | back to summary |
|---|---|
| private transient int cachedHashCode | |
| classLoader | back to summary |
|---|---|
| private ClassLoader classLoader | |
| JDK_ANNOTATION_CLASS_NAME | back to summary |
|---|---|
| private static final String JDK_ANNOTATION_CLASS_NAME | |
| JDK_ANNOTATION_TYPE_METHOD | back to summary |
|---|---|
| private static Method JDK_ANNOTATION_TYPE_METHOD | |
| pool | back to summary |
|---|---|
| private ClassPool pool | |
| AnnotationImpl | back to summary |
|---|---|
| private AnnotationImpl(Annotation a, ClassPool cp, ClassLoader loader) | |
| arrayHashCode | back to summary |
|---|---|
| private static int arrayHashCode(Object object) Calculates the hashCode of an array using the same algorithm as java.util.Arrays.hashCode()
| |
| checkEquals | back to summary |
|---|---|
| private boolean checkEquals(Object obj) throws Exception Check that another annotation equals ourselves. | |
| getAnnotation | back to summary |
|---|---|
| public Annotation getAnnotation() Obtains the internal data structure representing the annotation.
| |
| getAnnotationType | back to summary |
|---|---|
| private Class Get the annotation type
| |
| getDefault | back to summary |
|---|---|
| private Object getDefault(String name, Method method) throws ClassNotFoundException, RuntimeException | |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Obtains the name of the annotation type.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for this object.
| |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Executes a method invocation on a proxy instance.
The implementations of
| |
| make | back to summary |
|---|---|
| public static Object make(ClassLoader cl, Class<?> clazz, ClassPool cp, Annotation anon) throws IllegalArgumentException Constructs an annotation object.
| |