net.sourceforge.cobertura.instrument
Class FirstPassMethodInstrumenter
public
class
FirstPassMethodInstrumenter
extends MethodAdapter
implements Opcodes
Method Summary |
protected Collection | getIgnoreRegexs() |
protected Map | getJumpTargetLabels() |
protected Map | getLineLabels() |
protected int | getMyAccess() |
protected String | getMyDescriptor() |
protected String | getMyName() |
protected String | getOwnerClass() |
protected Map | getSwitchTargetLabels() |
protected MethodVisitor | getWriterMethodVisitor() |
protected void | removeLine(int lineNumber) |
void | visitEnd() |
void | visitJumpInsn(int opcode, Label label) |
void | visitLineNumber(int line, Label start) |
void | visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) |
void | visitMethodInsn(int opcode, String owner, String name, String desc) |
void | visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) |
private int currentJump
private int currentLine
private int currentSwitch
private Collection ignoreBranchesRegexs
private Collection ignoreRegexs
private Map jumpTargetLabels
private Map lineLabels
private MethodNode methodNode
private int myAccess
private String myDescriptor
private String myName
private final String ownerClass
private Map switchTargetLabels
private MethodVisitor writerMethodVisitor
public FirstPassMethodInstrumenter(
ClassData classData, MethodVisitor mv, String owner, int access, String name, String desc, String signature, String[] exceptions, Collection ignoreRegexs, Collection ignoreBranchesRegexs)
protected Collection getIgnoreRegexs()
protected Map getJumpTargetLabels()
protected Map getLineLabels()
protected int getMyAccess()
protected String getMyDescriptor()
protected String getMyName()
protected String getOwnerClass()
protected Map getSwitchTargetLabels()
protected MethodVisitor getWriterMethodVisitor()
protected void removeLine(int lineNumber)
public void visitEnd()
public void visitJumpInsn(int opcode, Label label)
public void visitLineNumber(int line, Label start)
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
public void visitMethodInsn(int opcode, String owner, String name, String desc)
public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels)