public interface QualifierPolymorphism
Modifier and Type | Method and Description |
---|---|
void |
annotate(AnnotatedTypeMirror.AnnotatedExecutableType functionalInterface,
AnnotatedTypeMirror.AnnotatedExecutableType memberReference)
Resolves polymorphism annotations for the given type.
|
void |
annotate(MethodInvocationTree tree,
AnnotatedTypeMirror.AnnotatedExecutableType type)
Resolves polymorphism annotations for the given type.
|
void |
annotate(NewClassTree tree,
AnnotatedTypeMirror.AnnotatedExecutableType type)
Resolves polymorphism annotations for the given type.
|
static AnnotationMirror |
getPolymorphicQualifier(AnnotationMirror qual) |
static Class<? extends Annotation> |
getPolymorphicQualifierTop(AnnotationMirror qual)
If
qual is a polymorphic qualifier, then the class specified by the the PolymorphicQualifier meta-annotation on the polymorphic qualifier is returned. |
static boolean |
isPolyAll(AnnotationMirror qual) |
static boolean |
isPolymorphicQualified(AnnotationMirror qual) |
static boolean isPolyAll(AnnotationMirror qual)
qual
is @PolyAlly
static AnnotationMirror getPolymorphicQualifier(AnnotationMirror qual)
PolymorphicQualifier
meta-annotation on qual
if one exists;
otherwise return null.static boolean isPolymorphicQualified(AnnotationMirror qual)
qual
has the PolymorphicQualifier
meta-annotation.static Class<? extends Annotation> getPolymorphicQualifierTop(AnnotationMirror qual)
qual
is a polymorphic qualifier, then the class specified by the the PolymorphicQualifier
meta-annotation on the polymorphic qualifier is returned. Otherwise,
null is returned.qual
- PolymorphicQualifier
meta-annotation on qual
, if qual
is a polymorphich qualifier; otherwise, null.void annotate(MethodInvocationTree tree, AnnotatedTypeMirror.AnnotatedExecutableType type)
tree
- the tree associated with the typetype
- the type to annotatevoid annotate(NewClassTree tree, AnnotatedTypeMirror.AnnotatedExecutableType type)
tree
- the tree associated with the typetype
- the type to annotatevoid annotate(AnnotatedTypeMirror.AnnotatedExecutableType functionalInterface, AnnotatedTypeMirror.AnnotatedExecutableType memberReference)
functionalInterface
- the function type of memberReference
memberReference
- the type of a member reference