public class StaticTypesLambdaWriter
extends LambdaWriter
implements AbstractFunctionalInterfaceWriter
Writer responsible for generating lambda classes in statically compiled mode.
| Fields inherited from class | Fields |
|---|---|
class ClosureWriter |
OUTER_INSTANCE, THIS_OBJECT, controller |
| Constructor and description |
|---|
StaticTypesLambdaWriter(WriterController controller)Creates a lambda writer for statically compiled code generation. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected ClassNode |
createClosureClass(ClosureExpression expression, int modifiers)* Creates a new inner class node representing the compiled form of a closure expression. * *
|
|
protected ClassNode |
createLambdaClass(LambdaExpression expression, int modifiers, MethodNode abstractMethod)Creates the synthetic inner class that backs a statically compiled lambda expression. |
|
public void |
writeLambda(LambdaExpression expression)* Generates bytecode for a lambda expression. * *
|
| Methods inherited from class | Name |
|---|---|
class LambdaWriter |
getLambdaSharedVariables, writeLambda |
class ClosureWriter |
addConstructor, addFieldsForLocalVariables, addGeneratedClosureConstructorCall, addSerialVersionUIDField, createBlockStatementForConstructor, createClosureClass, getClosureSharedVariables, getOrAddClosureClass, loadReference, loadThis, removeInitialValues, writeClosure |
Creates a lambda writer for statically compiled code generation.
* Creates a new inner class node representing the compiled form of a closure expression. * *
expression - the closure expression to compile
*modifiers - the access modifiers for the generated class
*Creates the synthetic inner class that backs a statically compiled lambda expression.
* Generates bytecode for a lambda expression. * *
expression - the lambda expression to generate bytecode forCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.