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 Details

    • AbstractEvaluatedExpression

      public AbstractEvaluatedExpression(Object initialAnnotationValue)
  • Method Details

    • evaluate

      public final Object evaluate(ExpressionEvaluationContext evaluationContext)
      Description copied from interface: EvaluatedExpression
      Evaluate expression to obtain evaluation result.
      Specified by:
      evaluate in interface EvaluatedExpression
      Parameters:
      evaluationContext - context that expression might need for evaluation.
      Returns:
      evaluation result
    • doEvaluate

      protected Object doEvaluate(ExpressionEvaluationContext evaluationContext)
      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

      public String toString()
      Overrides:
      toString in class Object