com.jcoverage.coverage
Interface Conditional

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ConditionalImpl

interface Conditional
extends java.io.Serializable

A conditional records the position of a conditional branch instruction, and the position of the branch target. Conditionals are used internally by the instrumentation to determine branch coverage.


Method Summary
 int getLineNumber()
          The line number of this conditional branch.
 int getTargetLineNumber()
          The target line number of this conditional branch.
 

Method Detail

getLineNumber

public int getLineNumber()
The line number of this conditional branch. (Actually, its the source line immediately after the conditional branch, so that instrumentation can determine whether the "fall-through" branch has been executed).


getTargetLineNumber

public int getTargetLineNumber()
The target line number of this conditional branch.