Package org.jboss.byteman.agent.adapter
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
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
-
-
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
-
-
-
-
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 visitoraccess
- bitmask of method access permissionsname
- the method namedesc
- the method descriptorsignature
- the unerased method type signatureexceptions
- names of exceptions thrown by the method
-
-