public class RuleTriggerMethodAdapter extends RuleGeneratorAdapter
RuleMethodAdapter.LocalVar| Modifier and Type | Field and Description |
|---|---|
protected String[] |
exceptions |
ADD, AND, DIV, EQ, GE, GT, LE, LT, MUL, NE, NEG, OR, REM, SHL, SHR, SUB, USHR, XORaccess, descriptor, name, rule, transformContext| Modifier and Type | Method and Description |
|---|---|
org.objectweb.asm.Type[] |
getInvokedTypes()
method overridden by AT INVOKE method adapter allowing types for the invoked method owner,
parameters and return value to be identified.
|
protected String |
getMethodName() |
org.objectweb.asm.Type |
getReturnBindingType()
method overridden by AT INVOKE method adapter allowing the type of the $! binding to be identified.
|
protected boolean |
inBytemanHandler()
return true if the current block is a handler which catches a byteman exception thrown by the byteman runtime
|
protected boolean |
inBytemanTrigger()
return true if the current block is in a trigger block injected by Byteman
|
protected void |
injectTriggerPoint()
inject the rule trigger code
|
protected boolean |
inRethrowHandler()
return true if the current block is handler which catches a thrown exception within the scope
of a monitor enter in order to be able exit the monitor and rethrow the exception
|
void |
visitCode() |
void |
visitEnd() |
void |
visitFieldInsn(int opcode,
String owner,
String name,
String desc) |
void |
visitIincInsn(int var,
int increment) |
void |
visitInsn(int opcode) |
void |
visitIntInsn(int opcode,
int operand) |
void |
visitInvokeDynamicInsn(String name,
String desc,
org.objectweb.asm.Handle bsm,
Object... bsmArgs) |
void |
visitJumpInsn(int opcode,
org.objectweb.asm.Label label) |
void |
visitLabel(org.objectweb.asm.Label label) |
void |
visitLdcInsn(Object cst) |
void |
visitLookupSwitchInsn(org.objectweb.asm.Label dflt,
int[] keys,
org.objectweb.asm.Label[] labels) |
void |
visitMaxs(int maxStack,
int maxLocals)
ensure we allow enough room for any extra locals on the stack
|
void |
visitMethodInsn(int opcode,
String owner,
String name,
String desc,
boolean itf) |
void |
visitMultiANewArrayInsn(String desc,
int dims) |
void |
visitTableSwitchInsn(int min,
int max,
org.objectweb.asm.Label dflt,
org.objectweb.asm.Label[] labels) |
void |
visitTriggerEnd(org.objectweb.asm.Label label) |
void |
visitTriggerStart(org.objectweb.asm.Label label) |
void |
visitTryCatchBlock(org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
org.objectweb.asm.Label handler,
String type) |
void |
visitTypeInsn(int opcode,
String desc) |
void |
visitVarInsn(int opcode,
int var)
override this so we can see track which local var slots are in use and avoid overwriting them
|
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, visitFramegetTriggerClassName, lookup, visitLocalVariableprotected String[] exceptions
public org.objectweb.asm.Type[] getInvokedTypes()
public org.objectweb.asm.Type getReturnBindingType()
protected boolean inBytemanHandler()
protected boolean inBytemanTrigger()
protected boolean inRethrowHandler()
protected String getMethodName()
public void visitCode()
visitCode in class org.objectweb.asm.MethodVisitorpublic void visitInsn(int opcode)
visitInsn in class org.objectweb.asm.MethodVisitorpublic void visitIincInsn(int var,
int increment)
visitIincInsn in class org.objectweb.asm.MethodVisitorpublic void visitIntInsn(int opcode,
int operand)
visitIntInsn in class org.objectweb.asm.MethodVisitorpublic void visitLdcInsn(Object cst)
visitLdcInsn in class org.objectweb.asm.MethodVisitorpublic void visitVarInsn(int opcode,
int var)
RuleGeneratorAdaptervisitVarInsn in class RuleGeneratorAdapteropcode - the bytecode operationvar - local variable indexpublic void visitTypeInsn(int opcode,
String desc)
visitTypeInsn in class org.objectweb.asm.MethodVisitorpublic void visitFieldInsn(int opcode,
String owner,
String name,
String desc)
visitFieldInsn in class org.objectweb.asm.MethodVisitorpublic void visitMethodInsn(int opcode,
String owner,
String name,
String desc,
boolean itf)
visitMethodInsn in class org.objectweb.asm.MethodVisitorpublic void visitInvokeDynamicInsn(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs)
visitInvokeDynamicInsn in class org.objectweb.asm.MethodVisitorpublic void visitJumpInsn(int opcode,
org.objectweb.asm.Label label)
visitJumpInsn in class org.objectweb.asm.MethodVisitorpublic void visitLabel(org.objectweb.asm.Label label)
visitLabel in class org.objectweb.asm.MethodVisitorpublic void visitTriggerStart(org.objectweb.asm.Label label)
public void visitTriggerEnd(org.objectweb.asm.Label label)
public void visitTableSwitchInsn(int min,
int max,
org.objectweb.asm.Label dflt,
org.objectweb.asm.Label[] labels)
visitTableSwitchInsn in class org.objectweb.asm.MethodVisitorpublic void visitLookupSwitchInsn(org.objectweb.asm.Label dflt,
int[] keys,
org.objectweb.asm.Label[] labels)
visitLookupSwitchInsn in class org.objectweb.asm.MethodVisitorpublic void visitMultiANewArrayInsn(String desc, int dims)
visitMultiANewArrayInsn in class org.objectweb.asm.MethodVisitorpublic void visitTryCatchBlock(org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
org.objectweb.asm.Label handler,
String type)
visitTryCatchBlock in class org.objectweb.asm.MethodVisitorpublic void visitMaxs(int maxStack,
int maxLocals)
RuleGeneratorAdaptervisitMaxs in class RuleGeneratorAdaptermaxStack - the maximum stack depthmaxLocals - the maximum local countpublic void visitEnd()
visitEnd in class org.objectweb.asm.MethodVisitorprotected void injectTriggerPoint()
Copyright © 2016. All rights reserved.