|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.core.analysis.CoverageNodeImpl
org.jacoco.core.internal.analysis.SourceNodeImpl
org.jacoco.core.internal.analysis.ClassCoverageImpl
public class ClassCoverageImpl
Implementation of IClassCoverage.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jacoco.core.analysis.ICoverageNode |
|---|
ICoverageNode.CounterEntity, ICoverageNode.ElementType |
| Field Summary |
|---|
| Fields inherited from class org.jacoco.core.analysis.CoverageNodeImpl |
|---|
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter |
| Fields inherited from interface org.jacoco.core.analysis.ISourceNode |
|---|
UNKNOWN_LINE |
| Constructor Summary | |
|---|---|
ClassCoverageImpl(String name,
long id,
String signature,
String superName,
String[] interfaces)
Creates a class coverage data object with the given parameters. |
|
| Method Summary | |
|---|---|
void |
addMethod(IMethodCoverage method)
Add a method to this class. |
long |
getId()
Returns the identifier for this class which is the CRC64 signature of the class definition. |
String[] |
getInterfaceNames()
Returns the VM names of implemented/extended interfaces |
Collection<IMethodCoverage> |
getMethods()
Returns the methods included in this class. |
String |
getPackageName()
Returns the VM name of the package this class belongs to. |
String |
getSignature()
Returns the VM signature of the class. |
String |
getSourceFileName()
Returns the optional name of the corresponding source file. |
String |
getSuperName()
Returns the VM name of the superclass. |
void |
setSourceFileName(String sourceFileName)
Sets the name of the corresponding source file for this class. |
| Methods inherited from class org.jacoco.core.internal.analysis.SourceNodeImpl |
|---|
ensureCapacity, getFirstLine, getLastLine, getLine, increment, increment |
| Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl |
|---|
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jacoco.core.analysis.ISourceNode |
|---|
getFirstLine, getLastLine, getLine |
| Methods inherited from interface org.jacoco.core.analysis.ICoverageNode |
|---|
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy |
| Constructor Detail |
|---|
public ClassCoverageImpl(String name,
long id,
String signature,
String superName,
String[] interfaces)
name - vm name of the classid - class identifiersignature - vm signature of the classsuperName - vm name of the superclass of this classinterfaces - vm names of interfaces of this class| Method Detail |
|---|
public void addMethod(IMethodCoverage method)
method - method data to addpublic void setSourceFileName(String sourceFileName)
sourceFileName - name of the source filepublic long getId()
IClassCoverage
getId in interface IClassCoveragepublic String getSignature()
IClassCoverage
getSignature in interface IClassCoveragenull)public String getSuperName()
IClassCoverage
getSuperName in interface IClassCoveragenull, i.e.
java/lang/Object)public String[] getInterfaceNames()
IClassCoverage
getInterfaceNames in interface IClassCoveragepublic String getPackageName()
IClassCoverage
getPackageName in interface IClassCoveragepublic String getSourceFileName()
IClassCoverage
getSourceFileName in interface IClassCoveragepublic Collection<IMethodCoverage> getMethods()
IClassCoverage
getMethods in interface IClassCoverage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||