Package org.jacoco.core.analysis
Interface IClassCoverage
- All Superinterfaces:
ICoverageNode
,ISourceNode
- All Known Implementing Classes:
ClassCoverageImpl
Coverage data of a single class containing methods. The name of this node is
the fully qualified class name in VM notation (slash separated).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jacoco.core.analysis.ICoverageNode
ICoverageNode.CounterEntity, ICoverageNode.ElementType
-
Field Summary
Fields inherited from interface org.jacoco.core.analysis.ISourceNode
UNKNOWN_LINE
-
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
Returns the identifier for this class which is the CRC64 signature of the class definition.String[]
Returns the VM names of implemented/extended interfaces.Returns the methods included in this class.Returns the VM name of the package this class belongs to.Returns the VM signature of the class.Returns the optional name of the corresponding source file.Returns the VM name of the superclass.boolean
Returns if the analyzed class does match the execution data provided.Methods inherited from interface org.jacoco.core.analysis.ICoverageNode
containsCode, getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
Methods inherited from interface org.jacoco.core.analysis.ISourceNode
getFirstLine, getLastLine, getLine
-
Method Details
-
getId
long getId()Returns the identifier for this class which is the CRC64 signature of the class definition.- Returns:
- class identifier
-
isNoMatch
boolean isNoMatch()Returns if the analyzed class does match the execution data provided. More precisely if execution data is available for a class with the same qualified name but with a different class id.- Returns:
true
if this class does not match to the provided execution data.
-
getSignature
String getSignature()Returns the VM signature of the class.- Returns:
- VM signature of the class (may be
null
)
-
getSuperName
String getSuperName()Returns the VM name of the superclass.- Returns:
- VM name of the super class (may be
null
, i.e.java/lang/Object
)
-
getInterfaceNames
String[] getInterfaceNames()Returns the VM names of implemented/extended interfaces.- Returns:
- VM names of implemented/extended interfaces
-
getPackageName
String getPackageName()Returns the VM name of the package this class belongs to.- Returns:
- VM name of the package
-
getSourceFileName
String getSourceFileName()Returns the optional name of the corresponding source file.- Returns:
- name of the corresponding source file
-
getMethods
Collection<IMethodCoverage> getMethods()Returns the methods included in this class.- Returns:
- methods of this class
-