org.codehaus.groovy.classgen
Class GeneratorContext

java.lang.Object
  extended by org.codehaus.groovy.classgen.GeneratorContext

public class GeneratorContext
extends java.lang.Object

A context shared across generations of a class and its inner classes


Constructor Summary
GeneratorContext(CompileUnit compileUnit)
           
GeneratorContext(CompileUnit compileUnit, int innerClassOffset)
           
 
Method Summary
 CompileUnit getCompileUnit()
           
 java.lang.String getNextClosureInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)
           
 int getNextInnerClassIdx()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorContext

public GeneratorContext(CompileUnit compileUnit)

GeneratorContext

public GeneratorContext(CompileUnit compileUnit,
                        int innerClassOffset)
Method Detail

getNextInnerClassIdx

public int getNextInnerClassIdx()

getCompileUnit

public CompileUnit getCompileUnit()

getNextClosureInnerName

public java.lang.String getNextClosureInnerName(ClassNode owner,
                                                ClassNode enclosingClass,
                                                MethodNode enclosingMethod)