public class TreeBackedAnnotationFactory extends Object
getAnnotation
can throw unexpected exceptions when building source-only ABIs, due to
some of the classes it tries to load being unavailable. We try to return our own implementations
of the annotations instead, bypassing javac's support altogether. However, if the annotation
processor requests a field that we can't fake, we have to fall back to the underlying annotation.
Constructor and Description |
---|
TreeBackedAnnotationFactory() |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
createOrGetUnderlying(TreeBackedAnnotatedConstruct annotatedConstruct,
AnnotatedConstruct underlyingConstruct,
Class<A> annotationType) |
public static <A extends Annotation> A createOrGetUnderlying(TreeBackedAnnotatedConstruct annotatedConstruct, AnnotatedConstruct underlyingConstruct, Class<A> annotationType)