Package io.codemodder
Class RawFileChanger
java.lang.Object
io.codemodder.RawFileChanger
- All Implemented Interfaces:
CodeChanger
- Direct Known Subclasses:
RegexFileChanger,SarifPluginRawFileChanger
Gives access to raw files for performing arbitrary changes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA deep description of what this codemod's changes.getIndividualChangeDescription(Path filePath, CodemodChange change) A description of an individual change made by this codemod.List<io.codemodder.codetf.CodeTFReference>A list of references for further reading on the issues this codemod addresses or other supplementary information.The headline for this codemod's changes.abstract CodemodFileScanningResultvisitFile(CodemodInvocationContext context) Visit a file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.codemodder.CodeChanger
getIncludesExcludesPattern, shouldRun, supports
-
Field Details
-
reporter
-
-
Constructor Details
-
RawFileChanger
public RawFileChanger() -
RawFileChanger
-
-
Method Details
-
visitFile
public abstract CodemodFileScanningResult visitFile(CodemodInvocationContext context) throws IOException Visit a file. It is up to the subtype to make sure the file is something to be changed and perform all the changing.- Returns:
- a list of changes that were made to the file
- Throws:
IOException
-
getSummary
Description copied from interface:CodeChangerThe headline for this codemod's changes.- Specified by:
getSummaryin interfaceCodeChanger
-
getDescription
Description copied from interface:CodeChangerA deep description of what this codemod's changes.- Specified by:
getDescriptionin interfaceCodeChanger
-
getIndividualChangeDescription
Description copied from interface:CodeChangerA description of an individual change made by this codemod.- Specified by:
getIndividualChangeDescriptionin interfaceCodeChanger
-
getReferences
Description copied from interface:CodeChangerA list of references for further reading on the issues this codemod addresses or other supplementary information.- Specified by:
getReferencesin interfaceCodeChanger
-