Class ContractClosureWriter

java.lang.Object
org.apache.groovy.contracts.classgen.asm.ContractClosureWriter

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.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)