|
||||||||||
| 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,
boolean noMatch)
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. |
boolean |
isNoMatch()
Returns if the the analyzed class does match the execution data provided. |
void |
setInterfaces(String[] interfaces)
Sets the VM names of implemented/extended interfaces. |
void |
setSignature(String signature)
Sets the VM signature of the class. |
void |
setSourceFileName(String sourceFileName)
Sets the name of the corresponding source file for this class. |
void |
setSuperName(String superName)
Sets the VM name of the superclass. |
| 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,
boolean noMatch)
name - VM name of the classid - class identifiernoMatch - true, if class id does not match with execution
data| Method Detail |
|---|
public void addMethod(IMethodCoverage method)
method - method data to addpublic void setSignature(String signature)
signature - VM signature of the class (may be null)public void setSuperName(String superName)
superName - VM name of the super class (may be null, i.e.
java/lang/Object)public void setInterfaces(String[] interfaces)
interfaces - VM names of implemented/extended interfacespublic void setSourceFileName(String sourceFileName)
sourceFileName - name of the source filepublic long getId()
IClassCoverage
getId in interface IClassCoveragepublic boolean isNoMatch()
IClassCoverage
isNoMatch in interface IClassCoveragetrue if this class does not match to the provided
execution data.public 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 | |||||||||