public class ClassCoverageImpl extends SourceNodeImpl implements IClassCoverage
IClassCoverage.ICoverageNode.CounterEntity, ICoverageNode.ElementTypebranchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounterUNKNOWN_LINE| Constructor and Description |
|---|
ClassCoverageImpl(String name,
long id,
boolean noMatch,
String signature,
String superName,
String[] interfaces)
Creates a class coverage data object with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
setSourceFileName(String sourceFileName)
Sets the name of the corresponding source file for this class.
|
ensureCapacity, getFirstLine, getLastLine, getLine, increment, incrementgetBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFirstLine, getLastLine, getLinegetBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopypublic ClassCoverageImpl(String name, long id, boolean noMatch, String signature, String superName, String[] interfaces)
name - vm name of the classid - class identifiernoMatch - true, if class id does not match with execution
datasignature - vm signature of the classsuperName - vm name of the superclass of this classinterfaces - vm names of interfaces of this classpublic void addMethod(IMethodCoverage method)
method - method data to addpublic void setSourceFileName(String sourceFileName)
sourceFileName - name of the source filepublic long getId()
IClassCoveragegetId in interface IClassCoveragepublic boolean isNoMatch()
IClassCoverageisNoMatch in interface IClassCoveragetrue if this class does not match to the provided
execution data.public String getSignature()
IClassCoveragegetSignature in interface IClassCoveragenull)public String getSuperName()
IClassCoveragegetSuperName in interface IClassCoveragenull, i.e.
java/lang/Object)public String[] getInterfaceNames()
IClassCoveragegetInterfaceNames in interface IClassCoveragepublic String getPackageName()
IClassCoveragegetPackageName in interface IClassCoveragepublic String getSourceFileName()
IClassCoveragegetSourceFileName in interface IClassCoveragepublic Collection<IMethodCoverage> getMethods()
IClassCoveragegetMethods in interface IClassCoverageCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.