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.static CodemodFileScanningResult
from
(List<CodemodChange> changes, List<io.codemodder.codetf.UnfixedFinding> unfixedFindings) Creates a new instance ofCodemodFileScanningResult
from the given values.static CodemodFileScanningResult
from
(List<CodemodChange> changes, List<io.codemodder.codetf.UnfixedFinding> unfixedFindings, io.codemodder.codetf.CodeTFAiMetadata codeTFAiMetadata) Creates a new instance ofCodemodFileScanningResult
from the given values, including AI usage metadatastatic CodemodFileScanningResult
none()
Creates an empty instance ofCodemodFileScanningResult
.List<io.codemodder.codetf.UnfixedFinding>
Returns the results of the findings that were hoping to be addressed.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.UnfixedFinding> unfixedFindings) Creates a new instance ofCodemodFileScanningResult
from the given values. -
from
static CodemodFileScanningResult from(List<CodemodChange> changes, List<io.codemodder.codetf.UnfixedFinding> unfixedFindings, io.codemodder.codetf.CodeTFAiMetadata codeTFAiMetadata) Creates a new instance ofCodemodFileScanningResult
from the given values, including AI usage metadata -
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. -
unfixedFindings
List<io.codemodder.codetf.UnfixedFinding> unfixedFindings()Returns the results of the findings that were hoping to be addressed.
-