Module jakarta.el
Package jakarta.el

Class LambdaExpression

java.lang.Object
jakarta.el.LambdaExpression

public class LambdaExpression extends Object
Encapsulates a parameterized ValueExpression.

A LambdaExpression is a representation of the Jakarta Expression Language Lambda expression syntax. It consists of a list of the formal parameters and a body, represented by a ValueExpression. The body can be any valid Expression, including another LambdaExpression.

A LambdaExpression is created when an Jakarta Expression Language expression containing a Lambda expression is evaluated.

A LambdaExpression can be invoked by calling invoke(jakarta.el.ELContext, java.lang.Object...), with an ELContext and a list of the actual arguments. Alternately, a LambdaExpression can be invoked without passing a ELContext, in which case the ELContext previously set by calling setELContext(jakarta.el.ELContext) will be used. The evaluation of the ValueExpression in the body uses the ELContext to resolve references to the parameters, and to evaluate the lambda expression. The result of the evaluation is returned.

See Also: