public class ClosureWriter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
ClosureWriter.UseExistingReference |
Constructor and Description |
---|
ClosureWriter(WriterController wc) |
Modifier and Type | Method and Description |
---|---|
boolean |
addGeneratedClosureConstructorCall(ConstructorCallExpression call) |
protected ClassNode |
createClosureClass(ClosureExpression expression,
int mods) |
protected Parameter[] |
getClosureSharedVariables(ClosureExpression ce) |
ClassNode |
getOrAddClosureClass(ClosureExpression expression,
int mods) |
static void |
loadReference(java.lang.String name,
WriterController controller) |
void |
writeClosure(ClosureExpression expression) |
public ClosureWriter(WriterController wc)
public void writeClosure(ClosureExpression expression)
public static void loadReference(java.lang.String name, WriterController controller)
public ClassNode getOrAddClosureClass(ClosureExpression expression, int mods)
protected ClassNode createClosureClass(ClosureExpression expression, int mods)
public boolean addGeneratedClosureConstructorCall(ConstructorCallExpression call)
protected Parameter[] getClosureSharedVariables(ClosureExpression ce)