Package org.codehaus.groovy.control

# Interface CompilationUnit.ClassgenCallback

All Known Implementing Classes:
  `GroovyClassLoader.ClassCollector`

Enclosing class:
  CompilationUnit

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CompilationUnit.ClassgenCallback
A callback interface you can use during the `classgen` phase of compilation as the compiler traverses the ClassNode tree. You will be called-back for each primary and inner class. Use setClassgenCallback() before running compile() to set your callback.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `call(org.objectweb.asm.ClassVisitor writer, ClassNode node)`
  Called after bytecode has been generated for a class.

- ## Method Details

  - ### call

    void call(org.objectweb.asm.ClassVisitor writer, ClassNode node) throws CompilationFailedException
    Called after bytecode has been generated for a class.
    Parameters:
      `writer` - the ASM visitor used to emit the class
      `node` - the generated class node
    Throws:
      `CompilationFailedException` - if callback processing fails