Package com.google.errorprone.apply
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 suppliedsourceFile
.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
Applies this difference to the suppliedsourceFile
.- Throws:
DiffNotApplicableException
- if the diff could not be applied to the source file
-