Interface CallReplacer


public interface CallReplacer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builder for CallReplacer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    withExpression(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

      CallReplacer.CallReplacerBuilder withStaticMethod(String className, String methodName)
      Performs the actual transformation of replacing the given expression a static method call.
      Parameters:
      className - the class name of the static method
      methodName - 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