Class CompiledLambdaExpression
java.lang.Object
jakarta.el.LambdaExpression
io.micronaut.el.runtime.CompiledLambdaExpression
@Internal
public final class CompiledLambdaExpression
extends jakarta.el.LambdaExpression
A lambda expression whose body is compiled.
The invocation hands the arguments to the body directly: the body reads its parameters as Java locals, so
the lambda scope of the context, a map of the arguments by name pushed for every invocation by
LambdaExpression.invoke(ELContext, Object...), is not needed. The nested lambda expressions capture the
parameters of the enclosing ones the way Java lambdas do, which is what the scope otherwise provides.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledLambdaExpression(jakarta.el.ELContext context, String[] parameters, ELLambdaBody body) -
Method Summary
-
Constructor Details
-
CompiledLambdaExpression
public CompiledLambdaExpression(jakarta.el.ELContext context, String[] parameters, ELLambdaBody body) - Parameters:
context- The context the lambda expression is created inparameters- The formal parametersbody- The compiled body
-
-
Method Details
-
setELContext
public void setELContext(jakarta.el.ELContext context) - Overrides:
setELContextin classjakarta.el.LambdaExpression
-
invoke
-
invoke
-