Package org.codehaus.groovy.classgen.asm
Class WriterController
java.lang.Object
org.codehaus.groovy.classgen.asm.WriterController
- Direct Known Subclasses:
DelegatingController
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAcg()
int
org.objectweb.asm.ClassVisitor
org.objectweb.asm.ClassVisitor
getCv()
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
isNotExplicitThisInClosure
(boolean implicitThis) boolean
boolean
boolean
void
void
void
void
setLineNumber
(int n) void
void
setMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor) boolean
void
void
-
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
-
setMethodVisitor
public void setMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor) -
getMethodVisitor
public org.objectweb.asm.MethodVisitor getMethodVisitor() -
getCompileStack
-
getOperandStack
-
getClassNode
-
getCallSiteWriter
-
getClassVisitor
public org.objectweb.asm.ClassVisitor getClassVisitor() -
getClosureWriter
-
getCv
public org.objectweb.asm.ClassVisitor getCv() -
getInternalClassName
-
getInvocationWriter
-
getBinaryExpressionHelper
-
getUnaryExpressionHelper
-
getAssertionWriter
-
getTypeChooser
-
getInternalBaseClassName
-
getMethodNode
-
setMethodNode
-
getConstructorNode
-
setConstructorNode
-
isNotClinit
public boolean isNotClinit() -
getSourceUnit
-
isStaticContext
public boolean isStaticContext() -
isInClosure
public boolean isInClosure() -
isInClosureConstructor
public boolean isInClosureConstructor() -
isNotExplicitThisInClosure
public boolean isNotExplicitThisInClosure(boolean implicitThis) -
isStaticMethod
public boolean isStaticMethod() -
getReturnType
-
isStaticConstructor
public boolean isStaticConstructor() -
isConstructor
public boolean isConstructor() -
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
-
getClassName
-
getOutermostClass
-
getContext
-
setInterfaceClassLoadingClass
-
getInterfaceClassLoadingClass
-
shouldOptimizeForInt
public boolean shouldOptimizeForInt() -
getStatementWriter
-
switchToFastPath
public void switchToFastPath() -
switchToSlowPath
public void switchToSlowPath() -
isFastPath
public boolean isFastPath() -
getBytecodeVersion
public int getBytecodeVersion() -
getLineNumber
public int getLineNumber() -
setLineNumber
public void setLineNumber(int n) -
resetLineNumber
public void resetLineNumber() -
getNextHelperMethodIndex
public int getNextHelperMethodIndex() -
getSuperMethodNames
-