Class RefactoringDriver

java.lang.Object
com.google.javascript.refactoring.RefactoringDriver

public final class RefactoringDriver extends Object
Primary driver of a refactoring. This class collects the inputs, runs the refactoring over the compiled input, and then collects the suggested fixes based on the refactoring.
  • Method Details

    • drive

      public List<SuggestedFix> drive(Scanner scanner, @Nullable Pattern includeFilePattern)
      Run a refactoring and return any suggested fixes as a result.
    • drive

      public List<SuggestedFix> drive(Scanner scanner)
      Run a refactoring and return any suggested fixes as a result.
    • getCompiler

      public Compiler getCompiler()
    • getCompilerOptions

      public static CompilerOptions getCompilerOptions()