Package io.codemodder
Interface CodemodFileScanningResult
public interface CodemodFileScanningResult
Represents the result of scanning a file for changes.
-
Method Summary
Modifier and TypeMethodDescriptionchanges()
Returns the changes that were made to the file.List<io.codemodder.codetf.DetectorFinding>
findings()
Returns the results of the findings that were hoping to be addressed.static CodemodFileScanningResult
from
(List<CodemodChange> changes, List<io.codemodder.codetf.DetectorFinding> findings) Creates a new instance ofCodemodFileScanningResult
from the given values.static CodemodFileScanningResult
none()
Creates an empty instance ofCodemodFileScanningResult
.static CodemodFileScanningResult
withOnlyChanges
(List<CodemodChange> changes) Creates an instance ofCodemodFileScanningResult
with only changes.
-
Method Details
-
from
static CodemodFileScanningResult from(List<CodemodChange> changes, List<io.codemodder.codetf.DetectorFinding> findings) Creates a new instance ofCodemodFileScanningResult
from the given values. -
none
Creates an empty instance ofCodemodFileScanningResult
. -
withOnlyChanges
Creates an instance ofCodemodFileScanningResult
with only changes. -
changes
List<CodemodChange> changes()Returns the changes that were made to the file. -
findings
List<io.codemodder.codetf.DetectorFinding> findings()Returns the results of the findings that were hoping to be addressed.
-