Class RefasterRuleBuilderScanner

java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Void,Void>
com.google.errorprone.refaster.RefasterRuleBuilderScanner
All Implemented Interfaces:
com.sun.source.tree.TreeVisitor<Void,Void>

public final class RefasterRuleBuilderScanner extends com.sun.source.util.SimpleTreeVisitor<Void,Void>
Scanner implementation to extract a single Refaster rule from a ClassTree.
Author:
lowasser@google.com (Louis Wasserman)
  • Field Summary

    Fields inherited from class com.sun.source.util.SimpleTreeVisitor

    DEFAULT_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    static Collection<? extends CodeTransformer>
    extractRules(com.sun.source.tree.ClassTree tree, com.sun.tools.javac.util.Context context)
     
    visitMethod(com.sun.source.tree.MethodTree tree, Void v)
     

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

    defaultAction, visit, visit, visitAnnotatedType, visitAnnotation, visitAnyPattern, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitConstantCaseLabel, visitContinue, visitDeconstructionPattern, visitDefaultCaseLabel, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPatternCaseLabel, 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
  • Method Details

    • extractRules

      public static Collection<? extends CodeTransformer> extractRules(com.sun.source.tree.ClassTree tree, com.sun.tools.javac.util.Context context)
    • visitMethod

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