Interface QualifierPolymorphism
- All Known Implementing Classes:
AbstractQualifierPolymorphism
,DefaultQualifierPolymorphism
public interface QualifierPolymorphism
Interface to implement qualifier polymorphism.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true iftype
has any polymorphic qualifiersvoid
Resolves polymorphism annotations for the given type.void
Resolves polymorphism annotations for the given type.void
resolve
(VariableElement field, AnnotatedTypeMirror owner, AnnotatedTypeMirror type) Resolves polymorphism annotations for the given field type.void
resolve
(AnnotatedTypeMirror.AnnotatedExecutableType functionalInterface, AnnotatedTypeMirror.AnnotatedExecutableType memberReference) Resolves polymorphism annotations for the given type.
-
Method Details
-
hasPolymorphicQualifiers
Returns true iftype
has any polymorphic qualifiers- Parameters:
type
- a type that might have polymorphic qualifiers- Returns:
- true if
type
has 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 ofmemberReference
memberReference
- 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
-