Interface ValueExpressionParser
public interface ValueExpressionParser
Parses expression strings into expressions that can be evaluated. Supports parsing expression, configuration
templates as well as literal strings.
- Since:
- 3.3
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValueExpressionParser
create
(ValueParserConfiguration configuration) Creates a new parser to parse expression strings.Parses the expression string and return an Expression object you can use for repeated evaluation.
-
Method Details
-
create
Creates a new parser to parse expression strings.- Parameters:
configuration
- the parser context configuration.- Returns:
- the parser instance.
-
parse
Parses the expression string and return an Expression object you can use for repeated evaluation.Some examples:
#{3 + 4} #{name.firstName} ${key.one} #{name.lastName}-${key.one}
- Parameters:
expressionString
- the raw expression string to parse.- Returns:
- an evaluator for the parsed expression.
- Throws:
ParseException
- an exception occurred during parsing.
-