protected class BaseTypeVisitor.TypeValidator extends AnnotatedTypeScanner<Void,Tree>
Modifier and Type | Field and Description |
---|---|
boolean |
isValid |
visitedNodes
Modifier | Constructor and Description |
---|---|
protected |
BaseTypeVisitor.TypeValidator() |
Modifier and Type | Method and Description |
---|---|
protected void |
reportError(AnnotatedTypeMirror type,
Tree p) |
protected void |
reportValidityResult(String errorType,
AnnotatedTypeMirror type,
Tree p) |
Void |
visitArray(AnnotatedTypeMirror.AnnotatedArrayType type,
Tree tree)
Visits an array type.
|
Void |
visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type,
Tree tree)
Visits a declared type.
|
protected Void |
visitParameterizedType(AnnotatedTypeMirror.AnnotatedDeclaredType type,
ParameterizedTypeTree tree)
Checks that the annotations on the type arguments supplied to a
type or a method invocation are within the bounds of the type
variables as declared, and issues the "generic.argument.invalid"
error if they are not.
|
Void |
visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type,
Tree tree)
Visits a primitive type.
|
Void |
visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type,
Tree tree)
Visits a type variable.
|
Void |
visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type,
Tree tree)
Visits a wildcard type.
|
reduce, scan, scan, scanAndReduce, scanAndReduce, visit, visit, visitExecutable, visitIntersection, visitNoType, visitNull
protected void reportValidityResult(String errorType, AnnotatedTypeMirror type, Tree p)
protected void reportError(AnnotatedTypeMirror type, Tree p)
public Void visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type, Tree tree)
AnnotatedTypeVisitor
visitDeclared
in interface AnnotatedTypeVisitor<Void,Tree>
visitDeclared
in class AnnotatedTypeScanner<Void,Tree>
type
- the type to visittree
- a visitor-specified parameterpublic Void visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type, Tree tree)
AnnotatedTypeVisitor
visitPrimitive
in interface AnnotatedTypeVisitor<Void,Tree>
visitPrimitive
in class AnnotatedTypeScanner<Void,Tree>
type
- the type to visittree
- a visitor-specified parameterpublic Void visitArray(AnnotatedTypeMirror.AnnotatedArrayType type, Tree tree)
AnnotatedTypeVisitor
visitArray
in interface AnnotatedTypeVisitor<Void,Tree>
visitArray
in class AnnotatedTypeScanner<Void,Tree>
type
- the type to visittree
- a visitor-specified parameterprotected Void visitParameterizedType(AnnotatedTypeMirror.AnnotatedDeclaredType type, ParameterizedTypeTree tree)
public Void visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type, Tree tree)
AnnotatedTypeVisitor
visitTypeVariable
in interface AnnotatedTypeVisitor<Void,Tree>
visitTypeVariable
in class AnnotatedTypeScanner<Void,Tree>
type
- the type to visittree
- a visitor-specified parameterpublic Void visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type, Tree tree)
AnnotatedTypeVisitor
visitWildcard
in interface AnnotatedTypeVisitor<Void,Tree>
visitWildcard
in class AnnotatedTypeScanner<Void,Tree>
type
- the type to visittree
- a visitor-specified parameter