Interface Diff

All Known Implementing Classes:
DescriptionBasedDiff

public interface Diff
All the differences to be applied to a source file to be applied in a refactoring.
Author:
sjnickerson@google.com (Simon Nickerson)
  • Method Summary

    Modifier and Type Method Description
    void applyDifferences​(SourceFile sourceFile)
    Applies this difference to the supplied sourceFile.
    String getRelevantFileName()
    Gets the name of the file this difference applies to
  • Method Details

    • getRelevantFileName

      String getRelevantFileName()
      Gets the name of the file this difference applies to
    • applyDifferences

      void applyDifferences​(SourceFile sourceFile)
      Applies this difference to the supplied sourceFile.
      Throws:
      DiffNotApplicableException - if the diff could not be applied to the source file