ContractClosureWriter (Groovy 5.0.6)
Description: declaration: package: org.apache.groovy.contracts.classgen.asm, class: ContractClosureWriter

Package org.apache.groovy.contracts.classgen.asm

# 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
  `ContractClosureWriter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ClassNode`
  `createClosureClass(ClassNode classNode, MethodNode methodNode, 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 ClassNode createClosureClass(ClassNode classNode, MethodNode methodNode, ClosureExpression expression, boolean addOldVariable, boolean addResultVariable, int mods)