Class WriterController

    • Field Detail

      • optimizeForInt

        public boolean optimizeForInt
    • Constructor Detail

      • WriterController

        public WriterController()
    • Method Detail

      • setMethodVisitor

        public void setMethodVisitor​(org.objectweb.asm.MethodVisitor methodVisitor)
      • getMethodVisitor

        public org.objectweb.asm.MethodVisitor getMethodVisitor()
      • getClassNode

        public ClassNode getClassNode()
      • getClassVisitor

        public org.objectweb.asm.ClassVisitor getClassVisitor()
      • getCv

        public org.objectweb.asm.ClassVisitor getCv()
      • getInternalClassName

        public String getInternalClassName()
      • getInternalBaseClassName

        public String getInternalBaseClassName()
      • getMethodNode

        public MethodNode getMethodNode()
      • setMethodNode

        public void setMethodNode​(MethodNode mn)
      • 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()
      • shouldOptimizeForInt

        public boolean shouldOptimizeForInt()
      • switchToFastPath

        public void switchToFastPath()
      • switchToSlowPath

        public void switchToSlowPath()
      • isFastPath

        public boolean isFastPath()
      • getBytecodeVersion

        public int getBytecodeVersion()
      • getLineNumber

        public int getLineNumber()
      • setLineNumber

        public void setLineNumber​(int n)
      • resetLineNumber

        public void resetLineNumber()
      • getNextHelperMethodIndex

        public int getNextHelperMethodIndex()
      • getSuperMethodNames

        public List<String> getSuperMethodNames()