org.jacoco.core.instr
Interface IBlockMethodVisitor

All Superinterfaces:
MethodVisitor
All Known Implementing Classes:
MethodAnalyzer, MethodInstrumenter

public interface IBlockMethodVisitor
extends MethodVisitor

A method visitor with additional notifications for block boundaries.

Version:
$Revision: $
Author:
Marc R. Hoffmann

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.
 
Methods inherited from interface org.objectweb.asm.MethodVisitor
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 

Method Detail

visitBlockEndBeforeJump

void visitBlockEndBeforeJump(int id)
This method is called at the end of a block. If the last instruction of the block may interrupt the control flow (e.g. jump or return) this method is called right before this statement is visited.

Parameters:
id - identifier of the block within the method

visitBlockEnd

void visitBlockEnd(int id)
This method is always called after the last instruction of a block.

Parameters:
id - identifier of the block within the method