public class WriterController extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
optimizeForInt |
Constructor and Description |
---|
WriterController() |
public void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)
public AsmClassGenerator getAcg()
public void setMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor)
public org.objectweb.asm.MethodVisitor getMethodVisitor()
public CompileStack getCompileStack()
public OperandStack getOperandStack()
public ClassNode getClassNode()
public CallSiteWriter getCallSiteWriter()
public org.objectweb.asm.ClassVisitor getClassVisitor()
public ClosureWriter getClosureWriter()
public org.objectweb.asm.ClassVisitor getCv()
public String getInternalClassName()
public InvocationWriter getInvocationWriter()
public BinaryExpressionHelper getBinaryExpressionHelper()
public UnaryExpressionHelper getUnaryExpressionHelper()
public AssertionWriter getAssertionWriter()
public TypeChooser getTypeChooser()
public String getInternalBaseClassName()
public MethodNode getMethodNode()
public void setMethodNode(MethodNode mn)
public ConstructorNode getConstructorNode()
public void setConstructorNode(ConstructorNode cn)
public boolean isNotClinit()
public SourceUnit getSourceUnit()
public boolean isStaticContext()
public boolean isInClosure()
public boolean isInClosureConstructor()
public boolean isNotExplicitThisInClosure(boolean implicitThis)
public boolean isStaticMethod()
public ClassNode getReturnType()
public boolean isStaticConstructor()
public boolean isConstructor()
public boolean isInScriptBody()
public String getClassName()
public ClassNode getOutermostClass()
public GeneratorContext getContext()
public void setInterfaceClassLoadingClass(InterfaceHelperClassNode ihc)
public InterfaceHelperClassNode getInterfaceClassLoadingClass()
public boolean shouldOptimizeForInt()
public StatementWriter getStatementWriter()
public void switchToFastPath()
public void switchToSlowPath()
public boolean isFastPath()
public int getBytecodeVersion()
public int getLineNumber()
public void setLineNumber(int n)
public void resetLineNumber()