Interface ICCImportStatementData
- All Superinterfaces:
ICCPercentItem,ICCStatementData,ICCStatementDataBasic
- All Known Subinterfaces:
ICCImportFile,ICCImportFlowPoint
Implementors can create an
ICCImportStatement
Implementors must all add the statement to the artifact after it has been successfully created- Since:
- 9.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateStatement(int line, int... details) Creates a statement from a line number and optional details If needed the index and column and column end can be set later If the statement does not exist it will be added.booleansetStatementHit(int testID, int line, int index) Set the statement as being hit by a specific test case idMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCPercentItem
getPercentCoverageMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCStatementData
getHitStatements, getLastStatement, getStatement, getStatement, getStatements, getStatements, getTestcases, isHitMethods inherited from interface com.ibm.debug.pdt.codecoverage.core.results.ICCStatementDataBasic
getNumExecutableStatements, getNumHitStatements, hasStatements
-
Method Details
-
createStatement
Creates a statement from a line number and optional details If needed the index and column and column end can be set later If the statement does not exist it will be added. If the statement already exists it will not be updated and the existing one will be returned. The returned statement (new or existing) can be used to update other fields- Parameters:
line- 1 based line numberdetails- 0 or more details for the statement. The details must be supplied in the following order:- index
- column start
- column end
- Returns:
- created statement or existing statement
-
setStatementHit
boolean setStatementHit(int testID, int line, int index) Set the statement as being hit by a specific test case id- Parameters:
testID- testcase idline- line numberindex- statement index on line- Returns:
- true if line existed and testid was set else false
-