Interface ExtensibleExpressionEvaluationContext

All Superinterfaces:
ExpressionEvaluationContext
All Known Implementing Classes:
DefaultExpressionEvaluationContext

@Internal public interface ExtensibleExpressionEvaluationContext extends ExpressionEvaluationContext
Expression compilation context that can be extended with extra elements.
Since:
4.0.0
Author:
Sergey Gavrilov
  • Method Details

    • withThis

      ExtensibleExpressionEvaluationContext withThis(@NonNull ClassElement classElement)
      Parameters:
      classElement - The type that represents this.
      Returns:
      extended context
    • extendWith

      @NonNull ExtensibleExpressionEvaluationContext extendWith(@NonNull MethodElement methodElement)
      Extends compilation context with method element. Compilation context can only include one method at the same time, so this method will return the context which will replace previous context method element if it was set.
      Parameters:
      methodElement - extending method
      Returns:
      extended context
    • extendWith

      @NonNull ExtensibleExpressionEvaluationContext extendWith(@NonNull ClassElement classElement)
      Extends compilation context with class element. Compilation context can include multiple class elements at the same time.
      Parameters:
      classElement - extending class
      Returns:
      extended context