Package org.jboss.byteman.agent.adapter
Class InvokeTriggerAdapter.InvokeTriggerMethodAdapter
java.lang.Object
org.objectweb.asm.MethodVisitor
org.jboss.byteman.agent.adapter.RuleMethodAdapter
org.jboss.byteman.agent.adapter.RuleGeneratorAdapter
org.jboss.byteman.agent.adapter.RuleTriggerMethodAdapter
org.jboss.byteman.agent.adapter.InvokeTriggerAdapter.InvokeTriggerMethodAdapter
- Direct Known Subclasses:
InvokeTriggerAdapter.InvokeTriggerConstructorAdapter
- Enclosing class:
InvokeTriggerAdapter
a method visitor used to add a rule event trigger call to a method
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.byteman.agent.adapter.RuleMethodAdapter
RuleMethodAdapter.LocalVar
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
flag used by subclass to avoid inserting trigger until after super constructor has been calledFields inherited from class org.jboss.byteman.agent.adapter.RuleTriggerMethodAdapter
exceptions
Fields inherited from class org.jboss.byteman.agent.adapter.RuleGeneratorAdapter
ADD, AND, DIV, EQ, GE, GT, LE, LT, MUL, NE, NEG, OR, REM, SHL, SHR, SUB, USHR, XOR
Fields inherited from class org.jboss.byteman.agent.adapter.RuleMethodAdapter
access, descriptor, localVarsByName, name, rule, transformContext
Fields inherited from class org.objectweb.asm.MethodVisitor
api, mv
-
Constructor Summary
ConstructorsConstructorDescriptionInvokeTriggerMethodAdapter
(org.objectweb.asm.MethodVisitor mv, TransformContext transformContext, int access, String name, String descriptor, String signature, String[] exceptions) -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.Type[]
method overridden by AT INVOKE method adapter allowing types for the invoked method owner, parameters and return value to be identified.org.objectweb.asm.Type
method overridden by AT INVOKE method adapter allowing the type of the $! binding to be identified.private boolean
void
visitMethodInsn
(int opcode, String owner, String name, String desc, boolean itf) Methods inherited from class org.jboss.byteman.agent.adapter.RuleTriggerMethodAdapter
getMethodName, getNewClassName, inBytemanHandler, inBytemanTrigger, injectTriggerPoint, inRethrowHandler, visitCode, visitEnd, visitFieldInsn, visitIincInsn, visitInsn, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLookupSwitchInsn, visitMaxs, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTriggerEnd, visitTriggerStart, visitTryCatchBlock, visitTypeInsn, visitVarInsn
Methods inherited from class org.jboss.byteman.agent.adapter.RuleGeneratorAdapter
arrayLength, arrayLoad, arrayStore, box, cast, catchException, checkCast, dup, dup2, dup2X1, dup2X2, dupX1, dupX2, endMethod, getField, getLocalType, getStatic, goTo, ifCmp, ifICmp, ifNonNull, ifNull, ifZCmp, iinc, instanceOf, invokeConstructor, invokeDynamic, invokeInterface, invokeStatic, invokeVirtual, loadArg, loadArgArray, loadArgs, loadArgs, loadLocal, loadThis, mark, mark, math, monitorEnter, monitorExit, newArray, newInstance, newLabel, newLocal, not, pop, pop2, popLocal, push, push, push, push, push, push, push, push, putField, putStatic, ret, returnValue, storeArg, storeLocal, swap, swap, tableSwitch, tableSwitch, throwException, throwException, unbox, visitFrame
Methods inherited from class org.jboss.byteman.agent.adapter.RuleMethodAdapter
getTriggerClassName, lookup, visitLocalVariable
Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitInsnAnnotation, visitLineNumber, visitLocalVariableAnnotation, visitMethodInsn, visitParameter, visitParameterAnnotation, visitTryCatchAnnotation, visitTypeAnnotation
-
Field Details
-
latched
protected boolean latchedflag used by subclass to avoid inserting trigger until after super constructor has been called
-
-
Constructor Details
-
InvokeTriggerMethodAdapter
InvokeTriggerMethodAdapter(org.objectweb.asm.MethodVisitor mv, TransformContext transformContext, int access, String name, String descriptor, String signature, String[] exceptions)
-
-
Method Details
-
getInvokedTypes
public org.objectweb.asm.Type[] getInvokedTypes()Description copied from class:RuleTriggerMethodAdapter
method overridden by AT INVOKE method adapter allowing types for the invoked method owner, parameters and return value to be identified. this default version should never get invoked- Overrides:
getInvokedTypes
in classRuleTriggerMethodAdapter
- Returns:
- an array containing the types of the invoked method owner, parameters and return value
-
getReturnBindingType
public org.objectweb.asm.Type getReturnBindingType()method overridden by AT INVOKE method adapter allowing the type of the $! binding to be identified. this version should only get invoked for an AFTER INVOKE rule where it returns the invoked method return type- Overrides:
getReturnBindingType
in classRuleTriggerMethodAdapter
- Returns:
- the appropriate return type
-
visitMethodInsn
- Overrides:
visitMethodInsn
in classRuleTriggerMethodAdapter
-
matchCall
-