Interface JavaParserTransformer.ExpressionWrapper

Enclosing class:
JavaParserTransformer

public static interface JavaParserTransformer.ExpressionWrapper
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Performs the actual transformation of wrapping the given expression with the given scopeless method (e.g., a local method).
    boolean
    withStaticMethod(String className, String methodName, boolean isStaticImport)
    Performs the actual transformation of wrapping the given expression with the given static method.
  • Method Details

    • withStaticMethod

      boolean withStaticMethod(String className, String methodName, boolean isStaticImport)
      Performs the actual transformation of wrapping the given expression with the given static method.
      Parameters:
      className - the class name of the static method
      methodName - the method name
      isStaticImport - whether the static method should be imported and referenced in an unqualified way
      Returns:
      true if the transformation was successful, false otherwise
    • withScopelessMethod

      boolean withScopelessMethod(String methodName)
      Performs the actual transformation of wrapping the given expression with the given scopeless method (e.g., a local method).
      Parameters:
      methodName - the method name
      Returns:
      true if the transformation was successful, false otherwise