TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.llc.core.report
Interface ICoverageClass


public interface ICoverageClass

This interface defines what is visible to a visitor of coverage classes.
See ICoverageVisitor.


Method Summary
 ICoverageMethod getCoverageMethod(int index, ICoverageMethod data)
           
 int getCoveredLines()
           
 int getCoveredMethods()
           
 java.lang.String getIssue()
           
 java.util.HashMap getLineInfo()
           
 IComponent getParent()
           
 java.lang.String getQualifiedName()
           
 java.lang.String getSourceFile()
           
 int getTotalLines()
           
 int getTotalMethods()
           
 int getUncoveredLines()
           
 int getUncoveredMethods()
           
 boolean isMergeIncompatibility()
           
 

Method Detail

getQualifiedName

java.lang.String getQualifiedName()
Returns:
the qualified name of the class (notation using slashes, not dots)

getSourceFile

java.lang.String getSourceFile()
Returns:
the source file of this class (as found in the .class file, usually without its directory)

getCoveredMethods

int getCoveredMethods()
Returns:
the number of covered methods in this class

getUncoveredMethods

int getUncoveredMethods()
Returns:
the number of not covered methods in this class

getTotalMethods

int getTotalMethods()
Returns:
the total number of methods in this class

getCoveredLines

int getCoveredLines()
Returns:
the number of covered lines (actually coverage units) in this class

getUncoveredLines

int getUncoveredLines()
Returns:
the number of not covered lines (actually coverage units) in this class

getTotalLines

int getTotalLines()
Returns:
the total number of lines (actually coverage units) in this class

getParent

IComponent getParent()
Returns:
the parent component of this class

getIssue

java.lang.String getIssue()
Returns:
the issue found while instrumenting this class, if any

getCoverageMethod

ICoverageMethod getCoverageMethod(int index,
                                  ICoverageMethod data)
Parameters:
index - index of the method of this class, bounded by 0 (index of first method) and getTotalMethods()-1
data - if not null, reused and filled in with the data of the method at index index
Returns:
a filled in ICoverageMethod for the method at this index or null if unbounded index

getLineInfo

java.util.HashMap getLineInfo()
Returns:
a collection of ILineInfo representing the coverage information of the source lines containing at least one coverage units
A source line not mentionned in this collection simply contains no coverage unit

isMergeIncompatibility

boolean isMergeIncompatibility()
Returns:
true if the merge failed due to an incompatibility of class description

TPTP 4.6.0 Platform Project
Public API Specification