Class BugChecker.SuppressibleTreePathScanner<R,​P>

java.lang.Object
com.sun.source.util.TreeScanner<R,​P>
com.sun.source.util.TreePathScanner<R,​P>
com.google.errorprone.bugpatterns.BugChecker.SuppressibleTreePathScanner<R,​P>
Type Parameters:
R - the type returned by each scanner method
P - the type of the parameter passed to each scanner method
All Implemented Interfaces:
com.sun.source.tree.TreeVisitor<R,​P>
Enclosing class:
BugChecker

protected class BugChecker.SuppressibleTreePathScanner<R,​P>
extends com.sun.source.util.TreePathScanner<R,​P>
A TreePathScanner which skips trees which are suppressed for this check.
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected VisitorState state  
  • Constructor Summary

    Constructors
    Constructor Description
    SuppressibleTreePathScanner​(VisitorState state)  
  • Method Summary

    Modifier and Type Method Description
    R scan​(com.sun.source.tree.Tree tree, P param)  
    R scan​(com.sun.source.util.TreePath treePath, P param)  

    Methods inherited from class com.sun.source.util.TreePathScanner

    getCurrentPath

    Methods inherited from class com.sun.source.util.TreeScanner

    reduce, scan, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern, 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, visitSwitchExpression, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard, visitYield

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SuppressibleTreePathScanner

      public SuppressibleTreePathScanner​(VisitorState state)
  • Method Details

    • scan

      public R scan​(com.sun.source.tree.Tree tree, P param)
      Overrides:
      scan in class com.sun.source.util.TreePathScanner<R,​P>
    • scan

      public R scan​(com.sun.source.util.TreePath treePath, P param)
      Overrides:
      scan in class com.sun.source.util.TreePathScanner<R,​P>