public abstract class AnnotatedTypeComparer<R> extends AnnotatedTypeScanner<R,AnnotatedTypeMirror>
AnnotatedTypeScanner
visitedNodes
Constructor and Description |
---|
AnnotatedTypeComparer() |
reset, scan, visit, visit
protected abstract R compare(AnnotatedTypeMirror type, AnnotatedTypeMirror p)
type
- p
- protected abstract R combineRs(R r1, R r2)
r1
- r2
- protected R scan(java.lang.Iterable<? extends AnnotatedTypeMirror> types, java.lang.Iterable<? extends AnnotatedTypeMirror> p)
protected R reduce(R r1, R r2)
reduce
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
protected R scanAndReduce(java.lang.Iterable<? extends AnnotatedTypeMirror> types, java.lang.Iterable<? extends AnnotatedTypeMirror> p, R r)
public R scanAndReduce(AnnotatedTypeMirror type, AnnotatedTypeMirror p, R r)
scanAndReduce
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
protected R scanAndReduce(java.lang.Iterable<? extends AnnotatedTypeMirror> types, AnnotatedTypeMirror p, R r)
scanAndReduce
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
protected R scan(AnnotatedTypeMirror type, AnnotatedTypeMirror p)
AnnotatedTypeScanner
scan
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
public final R visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitDeclared
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitDeclared
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic final R visitArray(AnnotatedTypeMirror.AnnotatedArrayType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitArray
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitArray
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic final R visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitExecutable
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitExecutable
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic R visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitTypeVariable
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitTypeVariable
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic final R visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitWildcard
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitWildcard
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic R visitIntersection(AnnotatedTypeMirror.AnnotatedIntersectionType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitIntersection
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitIntersection
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic R visitNoType(AnnotatedTypeMirror.AnnotatedNoType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitNoType
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitNoType
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic R visitNull(AnnotatedTypeMirror.AnnotatedNullType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
null
type.visitNull
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitNull
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic R visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitPrimitive
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitPrimitive
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameterpublic R visitUnion(AnnotatedTypeMirror.AnnotatedUnionType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitor
visitUnion
in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>
visitUnion
in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>
type
- the type to visitp
- a visitor-specified parameter