Package io.micronaut.expressions.parser
Class SingleEvaluatedExpressionParser
java.lang.Object
io.micronaut.expressions.parser.SingleEvaluatedExpressionParser
- All Implemented Interfaces:
EvaluatedExpressionParser
@Internal
public final class SingleEvaluatedExpressionParser
extends Object
implements EvaluatedExpressionParser
Parser for building AST for single evaluated expression.
A single expression is parsed as a whole,
it cannot contain multiple expressions.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Constructor Summary
ConstructorDescriptionSingleEvaluatedExpressionParser
(String expression) Instantiates a parser for single passed expression. -
Method Summary
-
Constructor Details
-
SingleEvaluatedExpressionParser
Instantiates a parser for single passed expression. Expression string must not contain expression template wrapper like #{...}- Parameters:
expression
- expression to parse
-
-
Method Details
-
parse
Description copied from interface:EvaluatedExpressionParser
Parse expression into AST.- Specified by:
parse
in interfaceEvaluatedExpressionParser
- Returns:
- expression AST
- Throws:
ExpressionParsingException
- when expression violates syntactic rules
-