A
- The annotation type has to be proxed.public final class AnnotationProxy<A extends Annotation> extends Object implements Annotation, InvocationHandler
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 InvocationHandler
Throwable
public Class<? extends Annotation> annotationType()
annotationType
在接口中 Annotation
public A getProxedAnnotation()
public boolean equals(Object obj)
equals
在接口中 Annotation
equals
在类中 Object
public int hashCode()
hashCode
在接口中 Annotation
hashCode
在类中 Object
public String toString()
toString
在接口中 Annotation
toString
在类中 Object
Copyright © 2021. All rights reserved.