public class ClosureWriter extends Object
Modifiers | Name | Description |
---|---|---|
protected static class |
ClosureWriter.CorrectAccessedVariableVisitor |
|
protected interface |
ClosureWriter.UseExistingReference |
Modifiers | Name | Description |
---|---|---|
static String |
OUTER_INSTANCE |
|
static String |
THIS_OBJECT |
|
protected WriterController |
controller |
Constructor and description |
---|
ClosureWriter(WriterController controller) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected ConstructorNode |
addConstructor(ClosureExpression expression, Parameter[] localVariableParams, InnerClassNode answer, BlockStatement block) |
|
protected void |
addFieldsAndGettersForLocalVariables(InnerClassNode answer, Parameter[] localVariableParams) |
|
public boolean |
addGeneratedClosureConstructorCall(ConstructorCallExpression call) |
|
protected BlockStatement |
createBlockStatementForConstructor(ClosureExpression expression, ClassNode outerClass, ClassNode thisClassNode) |
|
protected ClassNode |
createClosureClass(ClosureExpression expression, int modifiers) |
|
protected Parameter[] |
getClosureSharedVariables(ClosureExpression ce) |
|
public ClassNode |
getOrAddClosureClass(ClosureExpression expression, int modifiers) |
|
public static void |
loadReference(String name, WriterController controller) |
|
protected void |
loadThis() |
|
protected static void |
removeInitialValues(Parameter[] params) |
|
public void |
writeClosure(ClosureExpression expression) |
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.