public class EqualityAtmComparer extends EquivalentAtmComboScanner<Boolean,Void>
This class is used by AnnotatedTypeMirror#equals
This class should be kept synchronized with HashcodeAtmVisitor.
EquivalentAtmComboScanner.Visited
visited
Constructor and Description |
---|
EqualityAtmComparer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
arePrimeAnnosEqual(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2)
Return true if type1 and type2 have equivalent sets of annotations.
|
protected boolean |
compare(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2) |
protected String |
defaultErrorMessage(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2,
Void v)
Called when a visit method is called on two types that do not have the same class, i.e.
|
protected Boolean |
reduce(Boolean r1,
Boolean r2)
Used to combine the results from component types or a type and its component types
|
protected Boolean |
scan(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2,
Void v) |
protected Boolean |
scanWithNull(AnnotatedTypeMirror type1,
AnnotatedTypeMirror type2,
Void aVoid)
In an AnnotatedTypeScanner a null type is encounter than null is returned.
|
scan, scanAndReduce, scanAndReduce, visit, visitArray_Array, visitDeclared_Declared, visitExecutable_Executable, visitIntersection_Intersection, visitNone_None, visitNull_Null, visitPrimitive_Primitive, visitTypevar_Typevar, visitUnion_Union, visitWildcard_Wildcard
defaultAction, visitArray_Declared, visitArray_Executable, visitArray_Intersection, visitArray_None, visitArray_Null, visitArray_Primitive, visitArray_Typevar, visitArray_Union, visitArray_Wildcard, visitDeclared_Array, visitDeclared_Executable, visitDeclared_Intersection, visitDeclared_None, visitDeclared_Null, visitDeclared_Primitive, visitDeclared_Typevar, visitDeclared_Union, visitDeclared_Wildcard, visitExecutable_Array, visitExecutable_Declared, visitExecutable_Intersection, visitExecutable_None, visitExecutable_Null, visitExecutable_Primitive, visitExecutable_Typevar, visitExecutable_Union, visitExecutable_Wildcard, visitIntersection_Array, visitIntersection_Declared, visitIntersection_Executable, visitIntersection_None, visitIntersection_Null, visitIntersection_Primitive, visitIntersection_Typevar, visitIntersection_Union, visitIntersection_Wildcard, visitNone_Array, visitNone_Declared, visitNone_Executable, visitNone_Intersection, visitNone_Null, visitNone_Primitive, visitNone_Union, visitNone_Wildcard, visitNull_Array, visitNull_Declared, visitNull_Executable, visitNull_Intersection, visitNull_None, visitNull_Primitive, visitNull_Typevar, visitNull_Union, visitNull_Wildcard, visitPrimitive_Array, visitPrimitive_Declared, visitPrimitive_Executable, visitPrimitive_Intersection, visitPrimitive_None, visitPrimitive_Null, visitPrimitive_Typevar, visitPrimitive_Union, visitPrimitive_Wildcard, visitTypevar_Array, visitTypevar_Declared, visitTypevar_Executable, visitTypevar_Intersection, visitTypevar_None, visitTypevar_Null, visitTypevar_Primitive, visitTypevar_Union, visitTypevar_Wildcard, visitUnion_Array, visitUnion_Declared, visitUnion_Executable, visitUnion_Intersection, visitUnion_None, visitUnion_Null, visitUnion_Primitive, visitUnion_Typevar, visitUnion_Wildcard, visitWildcard_Array, visitWildcard_Declared, visitWildcard_Executable, visitWildcard_Intersection, visitWildcard_None, visitWildcard_Null, visitWildcard_Primitive, visitWildcard_Typevar, visitWildcard_Union
protected String defaultErrorMessage(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2, Void v)
defaultErrorMessage
in class AbstractAtmComboVisitor<Boolean,Void>
type1
- the first AnnotatedTypeMirror parameter to the visit method calledtype2
- the second AnnotatedTypeMirror parameter to the visit method calledv
- subtype specific parameter passed to every visit methodprotected boolean arePrimeAnnosEqual(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2)
protected boolean compare(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2)
protected Boolean scanWithNull(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2, Void aVoid)
EquivalentAtmComboScanner
scanWithNull
in class EquivalentAtmComboScanner<Boolean,Void>
type1
- a nullable AnnotatedTypeMirrortype2
- a nullable AnnotatedTypeMirroraVoid
- the visitor paramprotected Boolean scan(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2, Void v)
scan
in class EquivalentAtmComboScanner<Boolean,Void>