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

      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.

    • getCoalescePolicy

      Replacements.CoalescePolicy getCoalescePolicy()
    • getReplacements

      com.google.common.collect.ImmutableSet<Replacement> getReplacements(com.sun.tools.javac.tree.EndPosTable endPositions)
    • getImportsToAdd

      com.google.common.collect.ImmutableSet<String> getImportsToAdd()
    • getImportsToRemove

      com.google.common.collect.ImmutableSet<String> getImportsToRemove()
    • isEmpty

      boolean isEmpty()