Package io.codemodder.javaparser
Interface CallReplacer
public interface CallReplacer
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidwithExpression(com.github.javaparser.ast.expr.Expression expression) Performs the actual transformation of replacing the given expression another arbitrary expression.withStaticMethod(String className, String methodName) Performs the actual transformation of replacing the given expression a static method call.
-
Method Details
-
withStaticMethod
Performs the actual transformation of replacing the given expression a static method call.- Parameters:
className- the class name of the static methodmethodName- the method name- Returns:
- a builder for the replacement
-
withExpression
void withExpression(com.github.javaparser.ast.expr.Expression expression) Performs the actual transformation of replacing the given expression another arbitrary expression.- Parameters:
expression- the expression to replace with
-