Class WriterController

java.lang.Object
org.codehaus.groovy.classgen.asm.WriterController
Direct Known Subclasses:
DelegatingController

public class WriterController extends Object
  • 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

      public AsmClassGenerator getAcg()
    • getCv

      @Deprecated public org.objectweb.asm.ClassVisitor 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

      public GeneratorContext getContext()
    • getCompileStack

      public CompileStack getCompileStack()
    • getOperandStack

      public OperandStack getOperandStack()
    • getSourceUnit

      public SourceUnit getSourceUnit()
    • getTypeChooser

      public TypeChooser getTypeChooser()
    • getUnaryExpressionHelper

      public UnaryExpressionHelper getUnaryExpressionHelper()
    • getBinaryExpressionHelper

      public BinaryExpressionHelper getBinaryExpressionHelper()
    • getAssertionWriter

      public AssertionWriter getAssertionWriter()
    • getCallSiteWriter

      public CallSiteWriter getCallSiteWriter()
    • getClosureWriter

      public ClosureWriter getClosureWriter()
    • getLambdaWriter

      public LambdaWriter getLambdaWriter()
    • getStatementWriter

      public StatementWriter getStatementWriter()
    • getInvocationWriter

      public InvocationWriter getInvocationWriter()
    • getMethodPointerExpressionWriter

      public MethodPointerExpressionWriter getMethodPointerExpressionWriter()
    • getMethodReferenceExpressionWriter

      public MethodReferenceExpressionWriter getMethodReferenceExpressionWriter()
    • getClassName

      public String getClassName()
    • getClassNode

      public ClassNode getClassNode()
    • getMethodNode

      public MethodNode getMethodNode()
    • setMethodNode

      public void setMethodNode(MethodNode methodNode)
    • getConstructorNode

      public ConstructorNode getConstructorNode()
    • setConstructorNode

      public void setConstructorNode(ConstructorNode constructorNode)
    • getThisType

      public ClassNode getThisType()
    • getReturnType

      public ClassNode getReturnType()
    • getOutermostClass

      public ClassNode getOutermostClass()
    • getInternalClassName

      public String getInternalClassName()
    • getInternalBaseClassName

      public String getInternalBaseClassName()
    • getSuperMethodNames

      public List<String> getSuperMethodNames()
    • getInterfaceClassLoadingClass

      public InterfaceHelperClassNode getInterfaceClassLoadingClass()
    • setInterfaceClassLoadingClass

      public void setInterfaceClassLoadingClass(InterfaceHelperClassNode ihc)
    • 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()