Package org.codehaus.groovy.classgen.asm
Class WriterController
java.lang.Object
org.codehaus.groovy.classgen.asm.WriterController
- Direct Known Subclasses:
- DelegatingController
public class WriterController
extends java.lang.Object
- 
Field SummaryFields Modifier and Type Field Description booleanoptimizeForInt
- 
Constructor SummaryConstructors Constructor Description WriterController()
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
optimizeForIntpublic boolean optimizeForInt
 
- 
- 
Constructor Details- 
WriterControllerpublic WriterController()
 
- 
- 
Method Details- 
initpublic void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)
- 
getAcg
- 
getCv@Deprecated public org.objectweb.asm.ClassVisitor getCv()Deprecated.
- 
getClassVisitorpublic org.objectweb.asm.ClassVisitor getClassVisitor()
- 
getMethodVisitorpublic org.objectweb.asm.MethodVisitor getMethodVisitor()
- 
setMethodVisitorpublic void setMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor)
- 
getContext
- 
getCompileStack
- 
getOperandStack
- 
getSourceUnit
- 
getTypeChooser
- 
getUnaryExpressionHelper
- 
getBinaryExpressionHelper
- 
getAssertionWriter
- 
getCallSiteWriter
- 
getClosureWriter
- 
getLambdaWriter
- 
getStatementWriter
- 
getInvocationWriter
- 
getMethodPointerExpressionWriter
- 
getMethodReferenceExpressionWriter
- 
getClassNamepublic java.lang.String getClassName()
- 
getClassNode
- 
getMethodNode
- 
setMethodNode
- 
getConstructorNode
- 
setConstructorNode
- 
getReturnType
- 
getOutermostClass
- 
getInternalClassNamepublic java.lang.String getInternalClassName()
- 
getInternalBaseClassNamepublic java.lang.String getInternalBaseClassName()
- 
getSuperMethodNamespublic java.util.List<java.lang.String> getSuperMethodNames()
- 
getInterfaceClassLoadingClass
- 
setInterfaceClassLoadingClass
- 
isStaticContextpublic boolean isStaticContext()
- 
isStaticMethodpublic boolean isStaticMethod()
- 
isNotClinitpublic boolean isNotClinit()
- 
isStaticConstructorpublic boolean isStaticConstructor()
- 
isConstructorpublic boolean isConstructor()
- 
isInGeneratedFunctionpublic boolean isInGeneratedFunction()
- 
isInGeneratedFunctionConstructorpublic boolean isInGeneratedFunctionConstructor()
- 
isInScriptBodypublic boolean isInScriptBody()- Returns:
- true if we are in a script body, where all variables declared are no longer local variables but are properties
 
- 
shouldOptimizeForIntpublic boolean shouldOptimizeForInt()
- 
switchToFastPathpublic void switchToFastPath()
- 
switchToSlowPathpublic void switchToSlowPath()
- 
isFastPathpublic boolean isFastPath()
- 
getLineNumberpublic int getLineNumber()
- 
setLineNumberpublic void setLineNumber(int lineNumber)
- 
resetLineNumberpublic void resetLineNumber()
- 
getBytecodeVersionpublic int getBytecodeVersion()
- 
getNextHelperMethodIndexpublic int getNextHelperMethodIndex()
 
-