Interface ICCBranchPoint
- All Superinterfaces:
Comparable<ICCBranchPoint>,ICCBase,ICCBranchData,ICCCoverageDataBasic,ICCPercentItem,ICCTreeItem
- All Known Subinterfaces:
ICCImportBranchPoint
public interface ICCBranchPoint
extends ICCTreeItem, ICCCoverageDataBasic, ICCBranchData, Comparable<ICCBranchPoint>
Represents a branch point.
Branch points have an origin and 1 or more targets
Use
ICCPercentItem.getPercentCoverage() to get the overall % coverage for the branch and its targets- Since:
- 9.0
-
Field Summary
FieldsFields inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCCoverageDataBasic
EMPTYTESTCASES -
Method Summary
Modifier and TypeMethodDescriptionintReturns line that is the origin of the branchReturns statement that is the origin of the branchgetTargets(boolean hit) Returns a List of lines that are the targets of the branchgetTargetStatements(boolean hit) Targets are returned in the order they were added Note: only returns statements if the coverage data supported statements usegetTargets(boolean)getTestcases(int targetLine) Returns testcases that hit the target linegetTestcases(ICCStatement targetStatement) Return testcases that hit the targe statementbooleanReturns true if this branch point is populated with statement informationMethods 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.ICCCoverageDataBasic
getNumExecutableLines, getNumFlowPoints, getNumHitFlowPoints, getNumHitLines, getTestcases, isHitMethods 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
-
Field Details
-
BASENAME
- See Also:
-
-
Method Details
-
getOrigin
int getOrigin()Returns line that is the origin of the branch- Returns:
- origin line number of branchpoint
-
getOriginStatement
ICCStatement getOriginStatement()Returns statement that is the origin of the branch- Returns:
- origin statement of branchpoint
-
getTargets
Returns a List of lines that are the targets of the branch- Parameters:
hit- if true, only hit targets are returned, if false all targets are returned- Returns:
- list of line targets of branchpoint or empty list
-
getTargetStatements
Targets are returned in the order they were added Note: only returns statements if the coverage data supported statements usegetTargets(boolean)- Parameters:
hit- if true, only hit targets are returned, if false all targets are returned- Returns:
- list of statement targets of branchpoint or empty list
-
getTestcases
Returns testcases that hit the target line- Parameters:
targetLine- testcases that hit this line of the branchpoint- Returns:
- list of testcases that hit the requested target line
-
getTestcases
Return testcases that hit the targe statement- Parameters:
targetStatement- testcases that hit this statement of the branchpoint- Returns:
- list of testcases that hit the requested target statement
-
hasStatements
boolean hasStatements()Returns true if this branch point is populated with statement information- Returns:
- true of branchpoint has statements
-