Class ExpressionUtil

java.lang.Object
org.wickedsource.docxstamper.el.ExpressionUtil

public class ExpressionUtil extends Object
Utility class for working with expressions in a text.
Version:
${version}
Author:
Joseph Verron
  • Method Details

    • findVariableExpressions

      public static List<String> findVariableExpressions(@NonNull String text)
      Finds all variable expressions in a text and returns them as list. Example expression: "${myObject.property}".
      Parameters:
      text - the text to find expressions in.
      Returns:
      a list of expressions (including the starting "${" and trailing "}").
    • findProcessorExpressions

      public static List<String> findProcessorExpressions(@NonNull String text)
      Finds all processor expressions in a text and returns them as list. Example expression: "#{myObject.property}".
      Parameters:
      text - the text to find expressions in.
      Returns:
      a list of expressions (including the starting "#{" and trailing "}").