Class ASTHelpers.ScanThrownTypes

java.lang.Object
com.sun.source.util.TreeScanner<Void,Void>
com.google.errorprone.util.ASTHelpers.ScanThrownTypes
All Implemented Interfaces:
com.sun.source.tree.TreeVisitor<Void,Void>
Enclosing class:
ASTHelpers

public static final class ASTHelpers.ScanThrownTypes extends com.sun.source.util.TreeScanner<Void,Void>
Scanner for determining what types are thrown by a tree.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<com.sun.tools.javac.code.Type>
     
    void
    scanResources(com.sun.source.tree.TryTree tree)
     
    visitClass(com.sun.source.tree.ClassTree tree, Void unused)
     
    visitLambdaExpression(com.sun.source.tree.LambdaExpressionTree tree, Void unused)
     
    visitMethod(com.sun.source.tree.MethodTree tree, Void unused)
     
    visitMethodInvocation(com.sun.source.tree.MethodInvocationTree invocation, Void unused)
     
    visitNewClass(com.sun.source.tree.NewClassTree tree, Void unused)
     
    visitThrow(com.sun.source.tree.ThrowTree tree, Void unused)
     
    visitTry(com.sun.source.tree.TryTree tree, Void unused)
     
    visitVariable(com.sun.source.tree.VariableTree tree, Void unused)
     

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

    reduce, scan, scan, visitAnnotatedType, visitAnnotation, visitAnyPattern, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern, visitBlock, visitBreak, visitCase, visitCatch, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitConstantCaseLabel, visitContinue, visitDeconstructionPattern, visitDefaultCaseLabel, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLiteral, visitMemberReference, visitMemberSelect, visitModifiers, visitModule, visitNewArray, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPatternCaseLabel, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSwitchExpression, visitSynchronized, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitWhileLoop, visitWildcard, visitYield

    Methods inherited from class java.lang.Object

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

    • ScanThrownTypes

      public ScanThrownTypes(VisitorState state)
  • Method Details

    • getThrownTypes

      public Set<com.sun.tools.javac.code.Type> getThrownTypes()
    • visitMethodInvocation

      public Void visitMethodInvocation(com.sun.source.tree.MethodInvocationTree invocation, Void unused)
      Specified by:
      visitMethodInvocation in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitMethodInvocation in class com.sun.source.util.TreeScanner<Void,Void>
    • visitTry

      public Void visitTry(com.sun.source.tree.TryTree tree, Void unused)
      Specified by:
      visitTry in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitTry in class com.sun.source.util.TreeScanner<Void,Void>
    • scanResources

      public void scanResources(com.sun.source.tree.TryTree tree)
    • visitThrow

      public Void visitThrow(com.sun.source.tree.ThrowTree tree, Void unused)
      Specified by:
      visitThrow in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitThrow in class com.sun.source.util.TreeScanner<Void,Void>
    • visitNewClass

      public Void visitNewClass(com.sun.source.tree.NewClassTree tree, Void unused)
      Specified by:
      visitNewClass in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitNewClass in class com.sun.source.util.TreeScanner<Void,Void>
    • visitVariable

      public Void visitVariable(com.sun.source.tree.VariableTree tree, Void unused)
      Specified by:
      visitVariable in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitVariable in class com.sun.source.util.TreeScanner<Void,Void>
    • visitLambdaExpression

      public Void visitLambdaExpression(com.sun.source.tree.LambdaExpressionTree tree, Void unused)
      Specified by:
      visitLambdaExpression in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitLambdaExpression in class com.sun.source.util.TreeScanner<Void,Void>
    • visitClass

      public Void visitClass(com.sun.source.tree.ClassTree tree, Void unused)
      Specified by:
      visitClass in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitClass in class com.sun.source.util.TreeScanner<Void,Void>
    • visitMethod

      public Void visitMethod(com.sun.source.tree.MethodTree tree, Void unused)
      Specified by:
      visitMethod in interface com.sun.source.tree.TreeVisitor<Void,Void>
      Overrides:
      visitMethod in class com.sun.source.util.TreeScanner<Void,Void>