Class BMLocalScopeMethodAdapter


  • public class BMLocalScopeMethodAdapter
    extends org.objectweb.asm.tree.MethodNode
    a subclass of JSRInlinerAdapter which pushes local variable info through to the next adapter inline during code generation if it wants it
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.objectweb.asm.MethodVisitor mv  
      • Fields inherited from class org.objectweb.asm.tree.MethodNode

        access, annotationDefault, attrs, desc, exceptions, instructions, invisibleAnnotableParameterCount, invisibleAnnotations, invisibleLocalVariableAnnotations, invisibleParameterAnnotations, invisibleTypeAnnotations, localVariables, maxLocals, maxStack, name, parameters, signature, tryCatchBlocks, visibleAnnotableParameterCount, visibleAnnotations, visibleLocalVariableAnnotations, visibleParameterAnnotations, visibleTypeAnnotations
      • Fields inherited from class org.objectweb.asm.MethodVisitor

        api
    • Constructor Summary

      Constructors 
      Constructor Description
      BMLocalScopeMethodAdapter​(org.objectweb.asm.MethodVisitor mv, int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
      creates a method node with an instruction list which notifies local var scope start and end events.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visitEnd()
      once we have seen all the opcodes we can push the stored method tree through the next visitor in line
      • Methods inherited from class org.objectweb.asm.tree.MethodNode

        accept, accept, check, getLabelNode, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
      • Methods inherited from class org.objectweb.asm.MethodVisitor

        visitMethodInsn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mv

        private org.objectweb.asm.MethodVisitor mv
    • Constructor Detail

      • BMLocalScopeMethodAdapter

        public BMLocalScopeMethodAdapter​(org.objectweb.asm.MethodVisitor mv,
                                         int access,
                                         java.lang.String name,
                                         java.lang.String desc,
                                         java.lang.String signature,
                                         java.lang.String[] exceptions)
        creates a method node with an instruction list which notifies local var scope start and end events. should only be called with a method visitor which is an instance of LocalScopeMethodVisitor
        Parameters:
        mv - the current method visitor
        access - bitmask of method access permissions
        name - the method name
        desc - the method descriptor
        signature - the unerased method type signature
        exceptions - names of exceptions thrown by the method
    • Method Detail

      • visitEnd

        public void visitEnd()
        once we have seen all the opcodes we can push the stored method tree through the next visitor in line
        Overrides:
        visitEnd in class org.objectweb.asm.tree.MethodNode