Package io.codemodder.codemods.semgrep
Class SemgrepXXECodemod.SemgrepXXEDocumentBuilderFactoryCodemod
java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.codemods.semgrep.SemgrepJavaParserChanger
io.codemodder.codemods.semgrep.SemgrepXXECodemod.SemgrepXXEDocumentBuilderFactoryCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
,io.codemodder.FixOnlyCodeChanger
- Enclosing class:
- SemgrepXXECodemod
public static class SemgrepXXECodemod.SemgrepXXEDocumentBuilderFactoryCodemod
extends SemgrepJavaParserChanger
-
Field Summary
Fields inherited from class io.codemodder.codemods.semgrep.SemgrepJavaParserChanger
ruleSarif
Fields inherited from class io.codemodder.javaparser.JavaParserChanger
reporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.codemodder.codetf.DetectorRule
io.codemodder.CodemodFileScanningResult
visit
(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu) Methods inherited from class io.codemodder.codemods.semgrep.SemgrepJavaParserChanger
shouldRun, vendorName
Methods inherited from class io.codemodder.javaparser.JavaParserChanger
getDescription, getIncludesExcludesPattern, getIndividualChangeDescription, getReferences, getSummary, supports
-
Constructor Details
-
SemgrepXXEDocumentBuilderFactoryCodemod
@Inject public SemgrepXXEDocumentBuilderFactoryCodemod(@ProvidedSemgrepScan(ruleId="java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-missing.documentbuilderfactory-disallow-doctype-decl-missing") io.codemodder.RuleSarif sarif)
-
-
Method Details
-
detectorRule
public io.codemodder.codetf.DetectorRule detectorRule() -
visit
public io.codemodder.CodemodFileScanningResult visit(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu) - Specified by:
visit
in classio.codemodder.javaparser.JavaParserChanger
-