Interface QualifierPolymorphism
- All Known Implementing Classes:
AbstractQualifierPolymorphism,DefaultQualifierPolymorphism
public interface QualifierPolymorphism
Interface to implement qualifier polymorphism.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true iftypehas any polymorphic qualifiersvoidResolves polymorphism annotations for the given type.voidResolves polymorphism annotations for the given type.voidresolve(VariableElement field, AnnotatedTypeMirror owner, AnnotatedTypeMirror type) Resolves polymorphism annotations for the given field type.voidresolve(AnnotatedTypeMirror.AnnotatedExecutableType functionalInterface, AnnotatedTypeMirror.AnnotatedExecutableType memberReference) Resolves polymorphism annotations for the given type.
-
Method Details
-
hasPolymorphicQualifiers
Returns true iftypehas any polymorphic qualifiers- Parameters:
type- a type that might have polymorphic qualifiers- Returns:
- true if
typehas any polymorphic qualifiers
-
resolve
Resolves polymorphism annotations for the given type.- Parameters:
tree- the tree associated with the typetype- the type to annotate; is side-effected by this method
-
resolve
Resolves polymorphism annotations for the given type.- Parameters:
tree- the tree associated with the typetype- the type to annotate; is side-effected by this method
-
resolve
void resolve(AnnotatedTypeMirror.AnnotatedExecutableType functionalInterface, AnnotatedTypeMirror.AnnotatedExecutableType memberReference) Resolves polymorphism annotations for the given type.- Parameters:
functionalInterface- the function type ofmemberReferencememberReference- the type of a member reference; is side-effected by this method
-
resolve
Resolves polymorphism annotations for the given field type.- Parameters:
field- field element to whose poly annotation must be resolvedowner- the type of the object whose field is being typedtype- type of the field which still has poly annotations
-