spring-framework / org.springframework.context.expression / MethodBasedEvaluationContext

MethodBasedEvaluationContext

open class MethodBasedEvaluationContext : StandardEvaluationContext

A method-based org.springframework.expression.EvaluationContext that provides explicit support for method-based invocations.

Expose the actual method arguments using the following aliases:

  1. pX where X is the index of the argument (p0 for the first argument)
  2. aX where X is the index of the argument (a1 for the second argument)
  3. the name of the parameter as discovered by a configurable ParameterNameDiscoverer

Author
Stephane Nicoll

Author
Juergen Hoeller

Since
4.2

Constructors

<init>

MethodBasedEvaluationContext(rootObject: Any, method: Method, arguments: Array<Any>, parameterNameDiscoverer: ParameterNameDiscoverer)

Functions

lookupVariable

open fun lookupVariable(name: String): Any