public abstract class AnnotatedTypeComparer<R> extends AnnotatedTypeScanner<R,AnnotatedTypeMirror>
AnnotatedTypeScannervisitedNodes| Constructor and Description |
|---|
AnnotatedTypeComparer() |
reset, scan, visit, visit, visitNoType, visitNull, visitPrimitiveprotected abstract R compare(AnnotatedTypeMirror type, AnnotatedTypeMirror p)
protected abstract R combineRs(R r1, R r2)
protected R scan(Iterable<? extends AnnotatedTypeMirror> types, Iterable<? extends AnnotatedTypeMirror> p)
protected R reduce(R r1, R r2)
reduce in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>protected R scanAndReduce(Iterable<? extends AnnotatedTypeMirror> types, 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.public R scanAndReduce(AnnotatedTypeMirror type, AnnotatedTypeMirror p, R r)
scanAndReduce in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>protected R scanAndReduce(Iterable<? extends AnnotatedTypeMirror> types, AnnotatedTypeMirror p, R r)
scanAndReduce in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>protected R scan(AnnotatedTypeMirror type, AnnotatedTypeMirror p)
AnnotatedTypeScannerscan in class AnnotatedTypeScanner<R,AnnotatedTypeMirror>typepublic 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