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 Details

    • GeneratorContext

      public GeneratorContext​(CompileUnit compileUnit)
    • GeneratorContext

      public GeneratorContext​(CompileUnit compileUnit, int innerClassOffset)
  • Method Details

    • getNextInnerClassIdx

      public int getNextInnerClassIdx()
    • getCompileUnit

      public CompileUnit getCompileUnit()
    • getNextClosureInnerName

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

      public java.lang.String getNextLambdaInnerName​(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)
    • getNextConstructorReferenceSyntheticMethodName

      public java.lang.String getNextConstructorReferenceSyntheticMethodName​(MethodNode enclosingMethodNode)
    • encodeAsValidClassName

      public static java.lang.String encodeAsValidClassName​(java.lang.String name)