public abstract class AnnotatedTypeComparer<R> extends AnnotatedTypeScanner<R,AnnotatedTypeMirror>
AnnotatedTypeScannervisitedNodes| Constructor and Description |
|---|
AnnotatedTypeComparer() |
reset, scan, scanAndReduce, visit, visit, visitNoType, visitNull, visitPrimitiveprotected abstract R compare(AnnotatedTypeMirror type, AnnotatedTypeMirror p)
protected abstract R combineRs(R r1, R r2)
protected R scan(java.lang.Iterable<? extends AnnotatedTypeMirror> types, java.lang.Iterable<? extends AnnotatedTypeMirror> p)
protected R reduce(R r1, R r2)
AnnotatedTypeScannerr1 and r2 and returns the result. The default implementation returns
r1 if it is not null; otherwise, it returns r2.reduce in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>r1 - a result of scanr2 - a result of scanr1 and r2protected R scanAndReduce(java.lang.Iterable<? extends AnnotatedTypeMirror> types, java.lang.Iterable<? extends AnnotatedTypeMirror> p, R r)
scan(java.lang.Iterable<? extends org.checkerframework.framework.type.AnnotatedTypeMirror>, java.lang.Iterable<? extends org.checkerframework.framework.type.AnnotatedTypeMirror>) on types and p, then run reduce(R, R) on the result (plus r) to return a
single element.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)
AnnotatedTypeScannertype by calling type.accept(this, p); this method may be overridden by
subclasses.scan in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>type - type to scanp - the parameter to usetypepublic final R visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitorvisitDeclared 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)
AnnotatedTypeVisitorvisitArray 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)
AnnotatedTypeVisitorvisitExecutable 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)
AnnotatedTypeVisitorvisitTypeVariable in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>visitTypeVariable in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>type - the type to visitp - a visitor-specified parameterpublic R visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitorvisitWildcard 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)
AnnotatedTypeVisitorvisitIntersection in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>visitIntersection in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>type - the type to visitp - a visitor-specified parameterpublic R visitUnion(AnnotatedTypeMirror.AnnotatedUnionType type, AnnotatedTypeMirror p)
AnnotatedTypeVisitorvisitUnion in interface AnnotatedTypeVisitor<R,AnnotatedTypeMirror>visitUnion in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>type - the type to visitp - a visitor-specified parameter