public class GeneratorContext extends Object
Constructor and Description |
---|
GeneratorContext(CompileUnit compileUnit) |
GeneratorContext(CompileUnit compileUnit,
int innerClassOffset) |
Modifier and Type | Method and Description |
---|---|
static String |
encodeAsValidClassName(String name) |
CompileUnit |
getCompileUnit() |
String |
getNextClosureInnerName(ClassNode owner,
ClassNode enclosingClass,
MethodNode enclosingMethod) |
String |
getNextConstructorReferenceSyntheticMethodName(MethodNode enclosingMethodNode) |
int |
getNextInnerClassIdx() |
String |
getNextLambdaInnerName(ClassNode owner,
ClassNode enclosingClass,
MethodNode enclosingMethod) |
public GeneratorContext(CompileUnit compileUnit)
public GeneratorContext(CompileUnit compileUnit, int innerClassOffset)
public int getNextInnerClassIdx()
public CompileUnit getCompileUnit()
public String getNextClosureInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)
public String getNextLambdaInnerName(ClassNode owner, ClassNode enclosingClass, MethodNode enclosingMethod)
public String getNextConstructorReferenceSyntheticMethodName(MethodNode enclosingMethodNode)