A - The annotation type has to be proxed.public final class AnnotationProxy<A extends java.lang.annotation.Annotation>
extends java.lang.Object
implements java.lang.annotation.Annotation, java.lang.reflect.InvocationHandler
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType() |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getProperty(java.lang.String name)
Returns the property value, given the name, if present.
|
A |
getProxedAnnotation()
Returns the proxed annotation.
|
int |
hashCode() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
static <A extends java.lang.annotation.Annotation> |
newProxy(java.lang.Class<A> annotationType)
Creates a new annotation proxy.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set a property value.
|
java.lang.String |
toString() |
public static <A extends java.lang.annotation.Annotation> AnnotationProxy<A> newProxy(java.lang.Class<A> annotationType)
A - the annotation type has to be proxed.annotationType - the annotation type class has to be proxed.public void setProperty(java.lang.String name,
java.lang.Object value)
name - the property name.value - the property value.public java.lang.Object getProperty(java.lang.String name)
name - the property name.public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType in interface java.lang.annotation.Annotationpublic A getProxedAnnotation()
public boolean equals(java.lang.Object obj)
equals in interface java.lang.annotation.Annotationequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.lang.annotation.AnnotationhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.lang.annotation.AnnotationtoString in class java.lang.ObjectCopyright © 2017. All rights reserved.