Package io.micronaut.expressions.parser
Class SingleEvaluatedEvaluatedExpressionParser
java.lang.Object
io.micronaut.expressions.parser.SingleEvaluatedEvaluatedExpressionParser
- All Implemented Interfaces:
EvaluatedExpressionParser
@Internal
public final class SingleEvaluatedEvaluatedExpressionParser
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
ConstructorDescriptionSingleEvaluatedEvaluatedExpressionParser
(String expression) Instantiates a parser for single passed expression. -
Method Summary
-
Constructor Details
-
SingleEvaluatedEvaluatedExpressionParser
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
-