Class BMLocalScopeMethodAdapter

java.lang.Object
org.objectweb.asm.MethodVisitor
org.objectweb.asm.tree.MethodNode
org.jboss.byteman.agent.adapter.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
     

    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, String name, String desc, String signature, String[] exceptions)
    creates a method node with an instruction list which notifies local var scope start and end events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    getDelegate, visitMethodInsn

    Methods inherited from class java.lang.Object

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

    • mv

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

    • BMLocalScopeMethodAdapter

      public BMLocalScopeMethodAdapter(org.objectweb.asm.MethodVisitor mv, int access, String name, String desc, String signature, 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 Details

    • 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