Package org.codehaus.groovy.classgen
Class GeneratorContext
java.lang.Object
org.codehaus.groovy.classgen.GeneratorContext
A context shared across generations of a class and its inner classes
-
Constructor Summary
ConstructorDescriptionGeneratorContext
(CompileUnit compileUnit) GeneratorContext
(CompileUnit compileUnit, int innerClassOffset) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
encodeAsValidClassName
(String name) getNextClosureInnerName
(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod) getNextConstructorReferenceSyntheticMethodName
(MethodNode enclosingMethodNode) int
getNextLambdaInnerName
(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)
-
Constructor Details
-
GeneratorContext
-
GeneratorContext
-
-
Method Details
-
getNextInnerClassIdx
public int getNextInnerClassIdx() -
getCompileUnit
-
getNextClosureInnerName
public String getNextClosureInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod) -
getNextLambdaInnerName
public String getNextLambdaInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod) -
getNextConstructorReferenceSyntheticMethodName
-
encodeAsValidClassName
-