Class GeneratorContext


  • public class GeneratorContext
    extends java.lang.Object
    A context shared across generations of a class and its inner classes
    • Constructor Detail

      • GeneratorContext

        public GeneratorContext​(CompileUnit compileUnit)
      • GeneratorContext

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

      • getNextInnerClassIdx

        public int getNextInnerClassIdx()
      • getNextClosureInnerName

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

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