Interface Fix

All Known Implementing Classes:
SuggestedFix

public interface Fix
Represents a source code transformation, usually used to fix a bug detected by error-prone.
Author:
eaftan@google.com (Eddie Aftandilian)
  • Method Details

    • toString

      String toString​(com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit)
    • getShortDescription

      default String getShortDescription()
      A short description which can be attached to the Fix to differentiate multiple fixes provided to the user.

      Empty string generates the default description.

    • getReplacements

      Set<Replacement> getReplacements​(com.sun.tools.javac.tree.EndPosTable endPositions)
    • getImportsToAdd

      Collection<String> getImportsToAdd()
    • getImportsToRemove

      Collection<String> getImportsToRemove()
    • isEmpty

      boolean isEmpty()