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