|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.asm.MethodAdapter
org.objectweb.asm.commons.LocalVariablesSorter
org.objectweb.asm.commons.GeneratorAdapter
org.jacoco.core.instr.MethodInstrumenter
public class MethodInstrumenter
This method adapter instruments a method to record every block that gets fully executed.
Field Summary |
---|
Fields inherited from class org.objectweb.asm.commons.GeneratorAdapter |
---|
ADD, AND, DIV, EQ, GE, GT, LE, LT, MUL, NE, NEG, OR, REM, SHL, SHR, SUB, USHR, XOR |
Fields inherited from class org.objectweb.asm.commons.LocalVariablesSorter |
---|
firstLocal, nextLocal |
Fields inherited from class org.objectweb.asm.MethodAdapter |
---|
mv |
Constructor Summary | |
---|---|
MethodInstrumenter(MethodVisitor mv,
int access,
String name,
String desc,
String enclosingType)
Create a new instrumenter instance for the given method. |
Method Summary | |
---|---|
void |
visitBlockEnd(int id)
This method is always called after the last instruction of a block. |
void |
visitBlockEndBeforeJump(int id)
This method is called at the end of a block. |
void |
visitCode()
|
void |
visitMaxs(int maxStack,
int maxLocals)
|
Methods inherited from class org.objectweb.asm.commons.GeneratorAdapter |
---|
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, invokeInterface, invokeStatic, invokeVirtual, loadArg, loadArgArray, loadArgs, loadArgs, loadLocal, loadLocal, loadThis, mark, mark, math, monitorEnter, monitorExit, newArray, newInstance, newLabel, not, pop, pop2, push, push, push, push, push, push, push, putField, putStatic, ret, returnValue, setLocalType, storeArg, storeLocal, storeLocal, swap, swap, tableSwitch, tableSwitch, throwException, throwException, unbox |
Methods inherited from class org.objectweb.asm.commons.LocalVariablesSorter |
---|
newLocal, newLocalMapping, visitFrame, visitIincInsn, visitLocalVariable, visitVarInsn |
Methods inherited from class org.objectweb.asm.MethodAdapter |
---|
visitAnnotation, visitAnnotationDefault, visitAttribute, visitEnd, visitFieldInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLookupSwitchInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.asm.MethodVisitor |
---|
visitAnnotation, visitAnnotationDefault, visitAttribute, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn |
Constructor Detail |
---|
public MethodInstrumenter(MethodVisitor mv, int access, String name, String desc, String enclosingType)
mv
- next method visitor in the chainaccess
- access flags for the methodname
- name of the methoddesc
- description of the methodenclosingType
- type enclosing this methodMethod Detail |
---|
public void visitCode()
visitCode
in interface MethodVisitor
visitCode
in class MethodAdapter
public void visitMaxs(int maxStack, int maxLocals)
visitMaxs
in interface MethodVisitor
visitMaxs
in class LocalVariablesSorter
public void visitBlockEndBeforeJump(int id)
IBlockMethodVisitor
visitBlockEndBeforeJump
in interface IBlockMethodVisitor
id
- identifier of the block within the methodpublic void visitBlockEnd(int id)
IBlockMethodVisitor
visitBlockEnd
in interface IBlockMethodVisitor
id
- identifier of the block within the method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |