Interface Fix

All Known Implementing Classes:

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

    • toString

      String toString​( 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​( endPositions)
    • getImportsToAdd

      Collection<String> getImportsToAdd()
    • getImportsToRemove

      Collection<String> getImportsToRemove()
    • isEmpty

      boolean isEmpty()