Package org.codehaus.groovy.classgen
Class GeneratorContext
java.lang.Object
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 SummaryConstructors Constructor Description GeneratorContext(CompileUnit compileUnit)GeneratorContext(CompileUnit compileUnit, int innerClassOffset)
- 
Method SummaryModifier and Type Method Description static java.lang.StringencodeAsValidClassName(java.lang.String name)CompileUnitgetCompileUnit()java.lang.StringgetNextClosureInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)java.lang.StringgetNextConstructorReferenceSyntheticMethodName(MethodNode enclosingMethodNode)intgetNextInnerClassIdx()java.lang.StringgetNextLambdaInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
GeneratorContext
- 
GeneratorContext
 
- 
- 
Method Details- 
getNextInnerClassIdxpublic int getNextInnerClassIdx()
- 
getCompileUnit
- 
getNextClosureInnerNamepublic java.lang.String getNextClosureInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)
- 
getNextLambdaInnerNamepublic java.lang.String getNextLambdaInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)
- 
getNextConstructorReferenceSyntheticMethodNamepublic java.lang.String getNextConstructorReferenceSyntheticMethodName(MethodNode enclosingMethodNode)
- 
encodeAsValidClassNamepublic static java.lang.String encodeAsValidClassName(java.lang.String name)
 
-