Class SameAnnotationValueVisitor

All Implemented Interfaces:
AnnotationValueVisitor<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: