Interface ExpressionEvaluationContext

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
ConfigurableExpressionEvaluationContext
All Known Implementing Classes:
DefaultExpressionEvaluationContext

@Internal public interface ExpressionEvaluationContext extends AutoCloseable
Context that can be used by evaluated expression to obtain objects required for evaluation process.
Since:
4.0.0
Author:
Sergey Gavrilov
  • Method Details

    • getThis

      Expressions that are evaluated in non-static contexts can reference "this".

      The object returned here is a reference to this.

      Returns:
      The object that represents this.
    • getArgument

      Object getArgument(int index)
      Provides method argument by index.
      Parameters:
      index - argument index
      Returns:
      argument value
    • getBean

      <T> T getBean(Class<T> type)
      Provides bean by type.
      Type Parameters:
      T - type of required bean
      Parameters:
      type - required bean class object
      Returns:
      bean instance
    • getProperty

      @Nullable @Nullable String getProperty(String name)
      Provides property by name.
      Parameters:
      name - property name
      Returns:
      property value or null