Package org.wickedsource.docxstamper.el
Class ExpressionUtil
- java.lang.Object
-
- org.wickedsource.docxstamper.el.ExpressionUtil
-
public class ExpressionUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ExpressionUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>findProcessorExpressions(String text)Finds all processor expressions in a text and returns them as list.List<String>findVariableExpressions(String text)Finds all variable expressions in a text and returns them as list.StringstripExpression(String expression)Strips an expression of the leading "${" or "#{" and the trailing "}".
-
-
-
Method Detail
-
findVariableExpressions
public List<String> findVariableExpressions(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 List<String> findProcessorExpressions(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 "}").
-
-