Package org.codehaus.groovy.classgen.asm
Class WriterController
java.lang.Object
org.codehaus.groovy.classgen.asm.WriterController
- Direct Known Subclasses:
DelegatingController
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAcg()
int
org.objectweb.asm.ClassVisitor
org.objectweb.asm.ClassVisitor
getCv()
Deprecated.int
org.objectweb.asm.MethodVisitor
int
void
init
(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
void
setConstructorNode
(ConstructorNode constructorNode) void
void
setLineNumber
(int lineNumber) void
setMethodNode
(MethodNode methodNode) void
setMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor) boolean
void
void
void
visitLineNumber
(int lineNumber)
-
Field Details
-
optimizeForInt
public boolean optimizeForInt
-
-
Constructor Details
-
WriterController
public WriterController()
-
-
Method Details
-
init
public void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn) -
getAcg
-
getCv
Deprecated. -
getClassVisitor
public org.objectweb.asm.ClassVisitor getClassVisitor() -
getMethodVisitor
public org.objectweb.asm.MethodVisitor getMethodVisitor() -
setMethodVisitor
public void setMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor) -
getContext
-
getCompileStack
-
getOperandStack
-
getSourceUnit
-
getTypeChooser
-
getUnaryExpressionHelper
-
getBinaryExpressionHelper
-
getAssertionWriter
-
getCallSiteWriter
-
getClosureWriter
-
getLambdaWriter
-
getStatementWriter
-
getInvocationWriter
-
getMethodPointerExpressionWriter
-
getMethodReferenceExpressionWriter
-
getClassName
-
getClassNode
-
getMethodNode
-
setMethodNode
-
getConstructorNode
-
setConstructorNode
-
getThisType
-
getReturnType
-
getOutermostClass
-
getInternalClassName
-
getInternalBaseClassName
-
getSuperMethodNames
-
getInterfaceClassLoadingClass
-
setInterfaceClassLoadingClass
-
isStaticContext
public boolean isStaticContext() -
isStaticMethod
public boolean isStaticMethod() -
isNotClinit
public boolean isNotClinit() -
isStaticConstructor
public boolean isStaticConstructor() -
isConstructor
public boolean isConstructor() -
isInGeneratedFunction
public boolean isInGeneratedFunction() -
isInGeneratedFunctionConstructor
public boolean isInGeneratedFunctionConstructor() -
isInScriptBody
public boolean isInScriptBody()- Returns:
- true if we are in a script body, where all variables declared are no longer local variables but are properties
-
shouldOptimizeForInt
public boolean shouldOptimizeForInt() -
switchToFastPath
public void switchToFastPath() -
switchToSlowPath
public void switchToSlowPath() -
isFastPath
public boolean isFastPath() -
getLineNumber
public int getLineNumber() -
resetLineNumber
public void resetLineNumber() -
setLineNumber
public void setLineNumber(int lineNumber) -
visitLineNumber
public void visitLineNumber(int lineNumber) -
getBytecodeVersion
public int getBytecodeVersion() -
getNextHelperMethodIndex
public int getNextHelperMethodIndex()
-