Package io.codemodder.remediation
Class SearcherStrategyRemediator.Builder<T>
java.lang.Object
io.codemodder.remediation.SearcherStrategyRemediator.Builder<T>
- Enclosing class:
- SearcherStrategyRemediator<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withFunctions
(Predicate<com.github.javaparser.ast.Node> searcherMatcher, BiFunction<com.github.javaparser.ast.CompilationUnit, com.github.javaparser.ast.Node, SuccessOrReason> fixer) withMatchAndFixStrategyAndNodeMatcher
(MatchAndFixStrategy maf, NodePositionMatcher nodeMatcher) withSearcherStrategyPair
(FixCandidateSearcher<T> searcher, RemediationStrategy strategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withSearcherStrategyPair
public SearcherStrategyRemediator.Builder<T> withSearcherStrategyPair(FixCandidateSearcher<T> searcher, RemediationStrategy strategy) -
withMatchAndFixStrategy
-
withMatchAndFixStrategyAndNodeMatcher
public SearcherStrategyRemediator.Builder<T> withMatchAndFixStrategyAndNodeMatcher(MatchAndFixStrategy maf, NodePositionMatcher nodeMatcher) -
withFunctions
public SearcherStrategyRemediator.Builder<T> withFunctions(Predicate<com.github.javaparser.ast.Node> searcherMatcher, BiFunction<com.github.javaparser.ast.CompilationUnit, com.github.javaparser.ast.Node, SuccessOrReason> fixer) -
build
-