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
FieldsFields 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
ConstructorsConstructorDescriptionBMLocalScopeMethodAdapter
(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 TypeMethodDescriptionvoid
visitEnd()
once we have seen all the opcodes we can push the stored method tree through the next visitor in lineMethods 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
-
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 visitoraccess
- bitmask of method access permissionsname
- the method namedesc
- the method descriptorsignature
- the unerased method type signatureexceptions
- 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 classorg.objectweb.asm.tree.MethodNode
-