Class ContractClosureWriter
java.lang.Object
org.apache.groovy.contracts.classgen.asm.ContractClosureWriter
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.groovy.ast.ClassNodecreateClosureClass(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode, org.codehaus.groovy.ast.expr.ClosureExpression expression, boolean addOldVariable, boolean addResultVariable, int mods)
-
Constructor Details
-
ContractClosureWriter
public ContractClosureWriter()
-
-
Method Details
-
createClosureClass
public org.codehaus.groovy.ast.ClassNode createClosureClass(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode, org.codehaus.groovy.ast.expr.ClosureExpression expression, boolean addOldVariable, boolean addResultVariable, int mods)
-