org.codehaus.groovy.classgen.asm
Class WriterController
java.lang.Object
org.codehaus.groovy.classgen.asm.WriterController
public class WriterController
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
optimizeForInt
public boolean optimizeForInt
WriterController
public WriterController()
init
public void init(AsmClassGenerator asmClassGenerator,
GeneratorContext gcon,
org.objectweb.asm.ClassVisitor cv,
ClassNode cn)
getAcg
public AsmClassGenerator getAcg()
setMethodVisitor
public void setMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor)
getMethodVisitor
public org.objectweb.asm.MethodVisitor getMethodVisitor()
getCompileStack
public CompileStack getCompileStack()
getOperandStack
public OperandStack getOperandStack()
getClassNode
public ClassNode getClassNode()
getCallSiteWriter
public CallSiteWriter getCallSiteWriter()
getClassVisitor
public org.objectweb.asm.ClassVisitor getClassVisitor()
getClosureWriter
public ClosureWriter getClosureWriter()
getCv
public org.objectweb.asm.ClassVisitor getCv()
getInternalClassName
public String getInternalClassName()
getInvocationWriter
public InvocationWriter getInvocationWriter()
getBinaryExpHelper
public BinaryExpressionHelper getBinaryExpHelper()
getAssertionWriter
public AssertionWriter getAssertionWriter()
getTypeChooser
public TypeChooser getTypeChooser()
getInternalBaseClassName
public String getInternalBaseClassName()
getMethodNode
public MethodNode getMethodNode()
setMethodNode
public void setMethodNode(MethodNode mn)
getConstructorNode
public ConstructorNode getConstructorNode()
setConstructorNode
public void setConstructorNode(ConstructorNode cn)
isNotClinit
public boolean isNotClinit()
getSourceUnit
public SourceUnit getSourceUnit()
isStaticContext
public boolean isStaticContext()
isInClosure
public boolean isInClosure()
isInClosureConstructor
public boolean isInClosureConstructor()
isNotExplicitThisInClosure
public boolean isNotExplicitThisInClosure(boolean implicitThis)
isStaticMethod
public boolean isStaticMethod()
getReturnType
public ClassNode 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
public String getClassName()
getOutermostClass
public ClassNode getOutermostClass()
getContext
public GeneratorContext getContext()
setInterfaceClassLoadingClass
public void setInterfaceClassLoadingClass(InterfaceHelperClassNode ihc)
getInterfaceClassLoadingClass
public InterfaceHelperClassNode getInterfaceClassLoadingClass()
shouldOptimizeForInt
public boolean shouldOptimizeForInt()
getStatementWriter
public StatementWriter getStatementWriter()
switchToFastPath
public void switchToFastPath()
switchToSlowPath
public void switchToSlowPath()
isFastPath
public boolean isFastPath()
getLineNumber
public int getLineNumber()
setLineNumber
public void setLineNumber(int n)
resetLineNumber
public void resetLineNumber()