public static class GroovyClassLoader.ClassCollector
extends Object
implements CompilationUnitClassgenCallback
Collects classes defined during a compilation unit callback.
| Constructor and description |
|---|
protected ClassCollector(InnerLoader cl, CompilationUnit unit, SourceUnit su)Creates a class collector for the supplied compilation state. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
call(org.objectweb.asm.ClassVisitor classWriter, ClassNode classNode){@inheritDoc} |
|
protected Class |
createClass(byte[] code, ClassNode classNode)Defines a generated class from bytecode produced for a class node. |
|
public GroovyClassLoader |
getDefiningClassLoader()Returns the loader used to define generated classes. |
|
public Collection |
getLoadedClasses()Returns the classes defined during the current compilation callback. |
|
protected Class |
onClassNode(org.objectweb.asm.ClassWriter classWriter, ClassNode classNode)Converts the generated class writer output into a defined class. |
Creates a class collector for the supplied compilation state.
cl - the defining loader used for generated classesunit - the compilation unit producing classessu - the primary source unit for the compilation round{@inheritDoc}
Defines a generated class from bytecode produced for a class node.
code - the generated bytecodeclassNode - the corresponding class nodeReturns the loader used to define generated classes.
Returns the classes defined during the current compilation callback.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.