Interface ICCImportBranchPoint
- All Superinterfaces:
Comparable<ICCBranchPoint>,ICCBase,ICCBranchData,ICCBranchPoint,ICCCoverageDataBasic,ICCImportBranchData,ICCPercentItem,ICCTreeItem
Represents a branch point
e.g. if ( ) else
switch()
Use createBranchPoint to create the source location of the branch
- Since:
- 9.0
-
Field Summary
Fields inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCBranchPoint
BASENAMEFields inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCCoverageDataBasic
EMPTYTESTCASES -
Method Summary
Modifier and TypeMethodDescriptionintaddTarget(int line) Adds a target of the branch's source The order the targets is significant and *should* match the appearance in the sourceintaddTarget(ICCStatement statement) Adds a target of the branch's source The order the targets is significant and *should* match the appearance in the sourcevoidsetTargetHit(int targetIndex, ICCTestcase testcase) Indicates that the target at the index was hit, if there are multiple sources then this will be tied to the first source The index is based on the order that the targets were added to this artifact zero basedMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCBase
addEncodedMessage, addMessage, addMessage, getDecodedMessages, getDecodedMessages, getID, getMessages, getName, getProperties, getProperty, getProperty, isMessage, isProperty, setName, setProperty, updatePropertyMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCBranchData
getBranchPoint, getBranchPoint, getBranchPoints, getEncodedFormatMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCBranchPoint
getOrigin, getOriginStatement, getTargets, getTargetStatements, getTestcases, getTestcases, hasStatementsMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCCoverageDataBasic
getNumExecutableLines, getNumFlowPoints, getNumHitFlowPoints, getNumHitLines, getTestcases, isHitMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCImportBranchData
createBranchPoint, createBranchPoint, createBranchPointMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCPercentItem
getPercentCoverageMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCTreeItem
addChild, addChildren, getChild, getChildren, getNumChildren, getParent, getQualifiedName, getUniqueID, getUUID, isRoot, refresh, setParent, setUUID, supportsUUID
-
Method Details
-
addTarget
int addTarget(int line) Adds a target of the branch's source The order the targets is significant and *should* match the appearance in the source- Parameters:
line- target line number- Returns:
- index of the added target. Use later when marking a target as hit
-
addTarget
Adds a target of the branch's source The order the targets is significant and *should* match the appearance in the source- Parameters:
statement- target statement- Returns:
- index of the added target. Use later when marking a target as hit
-
setTargetHit
Indicates that the target at the index was hit, if there are multiple sources then this will be tied to the first source The index is based on the order that the targets were added to this artifact zero based- Parameters:
targetIndex- branchpoint target indextestcase- testcase that hit the target
-