Class WriterController

  • Direct Known Subclasses:
    DelegatingController

    public class WriterController
    extends java.lang.Object
    • Field Detail

      • optimizeForInt

        public boolean optimizeForInt
    • Constructor Detail

      • WriterController

        public WriterController()
    • Method Detail

      • 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)
      • getSourceUnit

        public SourceUnit getSourceUnit()
      • getClassName

        public java.lang.String getClassName()
      • getClassNode

        public ClassNode getClassNode()
      • getMethodNode

        public MethodNode getMethodNode()
      • setMethodNode

        public void setMethodNode​(MethodNode methodNode)
      • setConstructorNode

        public void setConstructorNode​(ConstructorNode constructorNode)
      • getReturnType

        public ClassNode getReturnType()
      • getOutermostClass

        public ClassNode getOutermostClass()
      • getInternalClassName

        public java.lang.String getInternalClassName()
      • getInternalBaseClassName

        public java.lang.String getInternalBaseClassName()
      • getSuperMethodNames

        public java.util.List<java.lang.String> getSuperMethodNames()
      • isStaticContext

        public boolean isStaticContext()
      • isStaticMethod

        public boolean isStaticMethod()
      • isNotClinit

        public boolean isNotClinit()
      • isStaticConstructor

        public boolean isStaticConstructor()
      • isConstructor

        public boolean isConstructor()
      • isInClosure

        public boolean isInClosure()
      • isInClosureConstructor

        public boolean isInClosureConstructor()
      • isNotExplicitThisInClosure

        @Deprecated
        public boolean isNotExplicitThisInClosure​(boolean implicitThis)
        Deprecated.
      • 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()
      • setLineNumber

        public void setLineNumber​(int lineNumber)
      • resetLineNumber

        public void resetLineNumber()
      • getBytecodeVersion

        public int getBytecodeVersion()
      • getNextHelperMethodIndex

        public int getNextHelperMethodIndex()