public interface ScalafixFileEvaluation
| Modifier and Type | Method and Description |
|---|---|
ScalafixError[] |
applyPatches() |
ScalafixError[] |
applyPatches(ScalafixPatch[] patches) |
ScalafixDiagnostic[] |
getDiagnostics() |
java.util.Optional<ScalafixFileEvaluationError> |
getError() |
java.util.Optional<java.lang.String> |
getErrorMessage() |
ScalafixError[] |
getErrors()
Deprecated.
replaced by
getError() |
java.nio.file.Path |
getEvaluatedFile() |
ScalafixRule[] |
getEvaluatedRules() |
ScalafixPatch[] |
getPatches() |
boolean |
isSuccessful() |
java.util.Optional<java.lang.String> |
previewPatches() |
java.util.Optional<java.lang.String> |
previewPatches(ScalafixPatch[] patches) |
java.util.Optional<java.lang.String> |
previewPatchesAsUnifiedDiff() |
boolean isSuccessful()
java.nio.file.Path getEvaluatedFile()
ScalafixRule[] getEvaluatedRules()
java.util.Optional<java.lang.String> getErrorMessage()
java.util.Optional<ScalafixFileEvaluationError> getError()
@Deprecated ScalafixError[] getErrors()
getError()ScalafixDiagnostic[] getDiagnostics()
java.util.Optional<java.lang.String> previewPatchesAsUnifiedDiff()
ScalafixPatch[] getPatches()
java.util.Optional<java.lang.String> previewPatches()
ScalafixError[] applyPatches()
java.util.Optional<java.lang.String> previewPatches(ScalafixPatch[] patches)
ScalafixError[] applyPatches(ScalafixPatch[] patches)
patches - the patches should belong to this scalafixFileEvaluation's patches.
If you apply patches that result from another ScalafixFileEvaluation,
no patch will be applied to the file.