com.sun.tools.javac.model
public class: AnnotationProxyMaker [javadoc |
source]
java.lang.Object
com.sun.tools.javac.model.AnnotationProxyMaker
A generator of dynamic proxy implementations of
java.lang.annotation.Annotation.
The "dynamic proxy return form" of an annotation element value is
the form used by sun.reflect.annotation.AnnotationInvocationHandler.
This is NOT part of any supported API.
If you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from com.sun.tools.javac.model.AnnotationProxyMaker Detail: |
public static A generateAnnotation(Compound anno,
Class<A> annoType) {
AnnotationProxyMaker apm = new AnnotationProxyMaker(anno, annoType);
return annoType.cast(apm.generateAnnotation());
}
Returns a dynamic proxy for an annotation mirror. |