public class ContractClosureWriter extends Object
Replaces annotation closures with closure implementation classes.
Attention: large parts of this class have been backported from Groovy 1.8 and customized for usage in groovy-contracts.
Type Params | Return Type | Name and description |
---|---|---|
|
public ClassNode |
createClosureClass(ClassNode classNode, MethodNode methodNode, ClosureExpression expression, boolean addOldVariable, boolean addResultVariable, int mods) |
|
public void |
visitVariableExpression(VariableExpression expression) |