Package io.micronaut.expressions.parser
Class CompoundEvaluatedExpressionParser
java.lang.Object
io.micronaut.expressions.parser.CompoundEvaluatedExpressionParser
- All Implemented Interfaces:
EvaluatedExpressionParser
@Internal
public final class CompoundEvaluatedExpressionParser
extends Object
implements EvaluatedExpressionParser
This parser is used to split complex expression into multiple
single expressions if necessary and delegate each atomic expression
parsing to separate instance of
SingleEvaluatedExpressionParser
,
then combining single expressions parsing results.- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Constructor Summary
ConstructorDescriptionCompoundEvaluatedExpressionParser
(@NonNull Object expression) Instantiates compound expression parser. -
Method Summary
-
Constructor Details
-
CompoundEvaluatedExpressionParser
Instantiates compound expression parser.- Parameters:
expression
- either string or string[]
-
-
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
-