public abstract class ClassGenerator
extends ClassCodeVisitorSupport
Abstract base class for generator of Java class versions of Groovy AST classes
| Modifiers | Name | Description |
|---|---|---|
protected LinkedList<ClassNode> |
innerClasses |
Inner classes queued while generating the current class. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public LinkedList<ClassNode> |
getInnerClasses()Returns the list of inner classes that were created during bytecode generation. |
|
protected SourceUnit |
getSourceUnit()* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
|
|
public void |
visitBytecodeSequence(BytecodeSequence bytecodeSequence)Visits a bytecode sequence during AST traversal. |
Inner classes queued while generating the current class.
Returns the list of inner classes that were created during bytecode generation.
* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
Visits a bytecode sequence during AST traversal. Subclasses should override this method to handle custom bytecode generation.
bytecodeSequence - the bytecode sequence to visit