public class Scanner extends com.sun.source.util.TreePathScanner<Void,VisitorState>
Constructor and Description |
---|
Scanner() |
Modifier and Type | Method and Description |
---|---|
protected Set<Class<? extends Annotation>> |
getCustomSuppressionAnnotations()
Returns a set of all the custom suppression annotation types used by the
BugChecker s in
thisScanner . |
protected void |
handleError(Suppressible s,
Throwable t)
Handles an exception thrown by an individual check.
|
protected boolean |
isSuppressed(Suppressible suppressible,
VisitorState state)
Returns true if this checker should be suppressed on the current tree path.
|
protected <T extends com.sun.source.tree.Tree> |
reportMatch(Description description,
T match,
VisitorState state) |
Void |
scan(com.sun.source.util.TreePath path,
VisitorState state)
Scan a tree from a position identified by a TreePath.
|
Void |
scan(com.sun.source.tree.Tree tree,
VisitorState state)
Scan a single node.
|
Map<String,BugPattern.SeverityLevel> |
severityMap()
Returns a mapping between the canonical names of checks and their
BugPattern.SeverityLevel . |
reduce, scan, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard
public Void scan(com.sun.source.util.TreePath path, VisitorState state)
scan
in class com.sun.source.util.TreePathScanner<Void,VisitorState>
public Void scan(com.sun.source.tree.Tree tree, VisitorState state)
scan
in class com.sun.source.util.TreePathScanner<Void,VisitorState>
protected boolean isSuppressed(Suppressible suppressible, VisitorState state)
suppressible
- holds information about the suppressibilty of a checkerprotected Set<Class<? extends Annotation>> getCustomSuppressionAnnotations()
BugChecker
s in
thisScanner
.protected <T extends com.sun.source.tree.Tree> void reportMatch(Description description, T match, VisitorState state)
protected void handleError(Suppressible s, Throwable t)
public Map<String,BugPattern.SeverityLevel> severityMap()
BugPattern.SeverityLevel
.Copyright © 2017. All rights reserved.