public interface QualifierPolymorphism
| Modifier and Type | Method and Description |
|---|---|
static javax.lang.model.element.AnnotationMirror |
getPolymorphicQualifier(javax.lang.model.element.AnnotationMirror qual) |
static javax.lang.model.element.Name |
getPolymorphicQualifierElement(javax.lang.model.element.AnnotationMirror qual)
If
qual is a polymorphic qualifier, return the class specified by the PolymorphicQualifier meta-annotation on the polymorphic qualifier is returned. |
static javax.lang.model.element.Name |
getPolymorphicQualifierTop(javax.lang.model.element.AnnotationMirror qual)
|
static boolean |
hasPolymorphicQualifier(javax.lang.model.element.AnnotationMirror qual) |
static boolean |
isPolyAll(javax.lang.model.element.AnnotationMirror qual) |
static boolean |
isPolymorphicQualified(javax.lang.model.element.AnnotationMirror qual)
|
void |
resolve(AnnotatedTypeMirror.AnnotatedExecutableType functionalInterface,
AnnotatedTypeMirror.AnnotatedExecutableType memberReference)
Resolves polymorphism annotations for the given type.
|
void |
resolve(com.sun.source.tree.MethodInvocationTree tree,
AnnotatedTypeMirror.AnnotatedExecutableType type)
Resolves polymorphism annotations for the given type.
|
void |
resolve(com.sun.source.tree.NewClassTree tree,
AnnotatedTypeMirror.AnnotatedExecutableType type)
Resolves polymorphism annotations for the given type.
|
static boolean isPolyAll(javax.lang.model.element.AnnotationMirror qual)
qual is @PolyAllstatic javax.lang.model.element.AnnotationMirror getPolymorphicQualifier(javax.lang.model.element.AnnotationMirror qual)
PolymorphicQualifier meta-annotation on qual if one exists;
otherwise return null@Deprecated static boolean isPolymorphicQualified(javax.lang.model.element.AnnotationMirror qual)
qual has the PolymorphicQualifier meta-annotationstatic boolean hasPolymorphicQualifier(javax.lang.model.element.AnnotationMirror qual)
qual has the PolymorphicQualifier meta-annotation.@Deprecated static javax.lang.model.element.Name getPolymorphicQualifierTop(javax.lang.model.element.AnnotationMirror qual)
qual is a polymorphic qualifier, return the class specified by the PolymorphicQualifier meta-annotation on the polymorphic qualifier is returned. Otherwise,
return null.
This value identifies the qualifier hierarchy to which this polymorphic qualifier belongs.
By convention, it is the top qualifier of the hierarchy. Use of PolymorphicQualifier.class is discouraged, because it can lead to ambiguity if used for
multiple type systems.
qual - an annotationPolymorphicQualifier meta-annotation on qual, if qual is a polymorphic qualifier; otherwise, null.PolymorphicQualifier.value()static javax.lang.model.element.Name getPolymorphicQualifierElement(javax.lang.model.element.AnnotationMirror qual)
qual is a polymorphic qualifier, return the class specified by the PolymorphicQualifier meta-annotation on the polymorphic qualifier is returned. Otherwise,
return null.
This value identifies the qualifier hierarchy to which this polymorphic qualifier belongs.
By convention, it is the top qualifier of the hierarchy. Use of PolymorphicQualifier.class is discouraged, because it can lead to ambiguity if used for
multiple type systems.
qual - an annotationPolymorphicQualifier meta-annotation on qual, if qual is a polymorphic qualifier; otherwise, null.PolymorphicQualifier.value()void resolve(com.sun.source.tree.MethodInvocationTree tree,
AnnotatedTypeMirror.AnnotatedExecutableType type)
tree - the tree associated with the typetype - the type to annotate; is side-effected by this methodvoid resolve(com.sun.source.tree.NewClassTree tree,
AnnotatedTypeMirror.AnnotatedExecutableType type)
tree - the tree associated with the typetype - the type to annotate; is side-effected by this methodvoid resolve(AnnotatedTypeMirror.AnnotatedExecutableType functionalInterface, AnnotatedTypeMirror.AnnotatedExecutableType memberReference)
functionalInterface - the function type of memberReferencememberReference - the type of a member reference; is side-effected by this method