class BytecodeCollector
extends GroovyClassLoader.ClassCollector
Captures generated bytecode while delegating normal class creation.
| Constructor and description |
|---|
BytecodeCollector(GroovyClassLoader.ClassCollector delegate, Map<String, byte[]> bytecode)Creates a collector that stores generated bytecode in the supplied map. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Class |
createClass(byte[] code, ClassNode classNode)Stores generated bytecode before defining the class. |
| Methods inherited from class | Name |
|---|---|
class GroovyClassLoader.ClassCollector |
call, createClass, getDefiningClassLoader, getLoadedClasses, onClassNode |
Creates a collector that stores generated bytecode in the supplied map.
delegate - collector providing the compilation contextbytecode - destination map for generated bytecodeCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.