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) |
|
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) |
|
ClassNode |
getOrAddClosureClass(ClosureExpression expression, int modifiers) |
|
static void |
loadReference(String name, WriterController controller) |
|
protected void |
loadThis() |
|
protected static void |
removeInitialValues(Parameter[] params) |
|
void |
writeClosure(ClosureExpression expression) |
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.