Package io.micronaut.context.expressions
Class AbstractEvaluatedExpression
java.lang.Object
io.micronaut.context.expressions.AbstractEvaluatedExpression
- All Implemented Interfaces:
EvaluatedExpression
@Internal
public abstract class AbstractEvaluatedExpression
extends Object
implements EvaluatedExpression
Default implementation for evaluated expressions. This class is subclassed
by evaluated expressions classes at compilation time.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
doEvaluate
(ExpressionEvaluationContext evaluationContext) This method is overridden by expression classes generated at compilation time and contains concrete expression evaluation logic.final Object
evaluate
(ExpressionEvaluationContext evaluationContext) Evaluate expression to obtain evaluation result.toString()
-
Constructor Details
-
AbstractEvaluatedExpression
-
-
Method Details
-
evaluate
Description copied from interface:EvaluatedExpression
Evaluate expression to obtain evaluation result.- Specified by:
evaluate
in interfaceEvaluatedExpression
- Parameters:
evaluationContext
- context that expression might need for evaluation.- Returns:
- evaluation result
-
doEvaluate
This method is overridden by expression classes generated at compilation time and contains concrete expression evaluation logic.- Parameters:
evaluationContext
- context used for expression evaluation- Returns:
- evaluation result
-
toString
-