Class SameAnnotationValueVisitor
java.lang.Object
javax.lang.model.util.AbstractAnnotationValueVisitor6<Boolean,Object>
javax.lang.model.util.AbstractAnnotationValueVisitor7<Boolean,Object>
javax.lang.model.util.AbstractAnnotationValueVisitor8<Boolean,Object>
javax.lang.model.util.AbstractAnnotationValueVisitor9<Boolean,Object>
javax.lang.model.util.AbstractAnnotationValueVisitor14<Boolean,Object>
org.microbean.construct.element.SameAnnotationValueVisitor
- All Implemented Interfaces:
AnnotationValueVisitor<Boolean,Object>
public final class SameAnnotationValueVisitor
extends AbstractAnnotationValueVisitor14<Boolean,Object>
An
AbstractAnnotationValueVisitor14 that determines if the otherwise opaque values represented by two AnnotationValue implementations are to be considered the
same.
Unlike some other annotation-processing-related facilities, the relation represented by this SameAnnotationValueVisitor does not require that the values being logically compared originate from AnnotationValue instances from the same vendor or toolkit.
The second argument passed to AbstractAnnotationValueVisitor6.visit(AnnotationValue, Object) is expected to be either null, an
AnnotationValue, or the result of an invocation of an AnnotationValue's getValue() method.
Any two TypeElements encountered during traversal are considered equal if their qualified names have equal contents.
Any two VariableElements representing enum constants encountered during traversal are considered equal if
their simple names have equal contents.
- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanvisitAnnotation(AnnotationMirror am0, Object v1) final BooleanvisitArray(List<? extends AnnotationValue> l0, Object v1) final BooleanvisitBoolean(boolean b0, Object v1) final Booleanfinal Booleanfinal BooleanvisitDouble(double d0, Object v1) final BooleanvisitEnumConstant(VariableElement ve0, Object v1) final BooleanvisitFloat(float f0, Object v1) final Booleanfinal Booleanfinal BooleanvisitShort(short s0, Object v1) final BooleanvisitString(String s0, Object v1) final BooleanvisitType(TypeMirror t0, Object v1) final BooleanvisitUnknown(AnnotationValue av0, Object v1) Methods inherited from class AbstractAnnotationValueVisitor6
visit, visit
-
Constructor Details
-
SameAnnotationValueVisitor
public SameAnnotationValueVisitor()Creates a newSameAnnotationValueVisitor.
-
-
Method Details
-
visitAnnotation
-
visitArray
-
visitBoolean
-
visitByte
-
visitChar
-
visitDouble
-
visitEnumConstant
-
visitFloat
-
visitInt
-
visitLong
-
visitShort
-
visitString
-
visitType
-
visitUnknown
- Specified by:
visitUnknownin interfaceAnnotationValueVisitor<Boolean,Object> - Overrides:
visitUnknownin classAbstractAnnotationValueVisitor6<Boolean,Object>
-