public class IrrelevantTypeAnnotator extends TypeAnnotator
RelevantJavaTypes
on a
checker.typeFactory
visitedNodes
Constructor and Description |
---|
IrrelevantTypeAnnotator(AnnotatedTypeFactory typeFactory,
java.util.Set<? extends javax.lang.model.element.AnnotationMirror> annotations,
java.lang.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 java.lang.Void |
scan(AnnotatedTypeMirror type,
java.lang.Void aVoid)
Scan
type by calling type.accept(this, p) ; this method may be overridden by
subclasses. |
java.lang.Void |
visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType t,
java.lang.Void p)
Visits an executable type.
|
reduce, reset, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitIntersection, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitUnion, visitWildcard
public IrrelevantTypeAnnotator(AnnotatedTypeFactory typeFactory, java.util.Set<? extends javax.lang.model.element.AnnotationMirror> annotations, java.lang.Class<?>[] relevantClasses)
typeFactory
- AnnotatedTypeFactoryannotations
- annotations to addrelevantClasses
- types that should not be annotated with annotationMirrorprotected java.lang.Void scan(AnnotatedTypeMirror type, java.lang.Void aVoid)
AnnotatedTypeScanner
type
by calling type.accept(this, p)
; this method may be overridden by
subclasses.scan
in class AnnotatedTypeScanner<java.lang.Void,java.lang.Void>
type
- type to scanaVoid
- the parameter to usetype
public java.lang.Void visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType t, java.lang.Void p)
AnnotatedTypeVisitor
visitExecutable
in interface AnnotatedTypeVisitor<java.lang.Void,java.lang.Void>
visitExecutable
in class TypeAnnotator
t
- the type to visitp
- a visitor-specified parameter