Package org.wickedsource.docxstamper.el
Class ExpressionUtil
java.lang.Object
org.wickedsource.docxstamper.el.ExpressionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds all processor expressions in a text and returns them as list.Finds all variable expressions in a text and returns them as list.stripExpression(String expression) Strips an expression of the leading "${" or "#{" and the trailing "}".
-
Constructor Details
-
ExpressionUtil
public ExpressionUtil()
-
-
Method Details
-
findVariableExpressions
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
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 "}").
-
stripExpression
Strips an expression of the leading "${" or "#{" and the trailing "}".- Parameters:
expression- the expression to strip.- Returns:
- the expression without the leading "${" or "#{" and the trailing "}".
-