public class IrrelevantTypeAnnotator extends TypeAnnotator
RelevantJavaTypes on a
checker.typeFactoryvisitedNodes| Constructor and Description |
|---|
IrrelevantTypeAnnotator(AnnotatedTypeFactory typeFactory,
Set<? extends AnnotationMirror> annotations,
Class<?>[] relevantClasses)
Annotate every type with the annotationMirror except for those whose underlying Java type is
one of (or a subtype of) a class in relevantClasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected Void |
scan(AnnotatedTypeMirror type,
Void aVoid)
Processes an element by calling e.accept(this, p); this method may be overridden by
subclasses.
|
Void |
visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType t,
Void p)
Visits an executable type.
|
reduce, reset, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitIntersection, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitUnion, visitWildcardpublic IrrelevantTypeAnnotator(AnnotatedTypeFactory typeFactory, Set<? extends AnnotationMirror> annotations, Class<?>[] relevantClasses)
typeFactory - AnnotatedTypeFactoryannotations - annotations to addrelevantClasses - types that should not be annotated with annotationMirrorprotected Void scan(AnnotatedTypeMirror type, Void aVoid)
AnnotatedTypeScannerscan in class AnnotatedTypeScanner<Void,Void>typepublic Void visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType t, Void p)
AnnotatedTypeVisitorvisitExecutable in interface AnnotatedTypeVisitor<Void,Void>visitExecutable in class TypeAnnotatort - the type to visitp - a visitor-specified parameter