IClassCoverage
, ICoverageNode
, ISourceNode
public class ClassCoverageImpl extends SourceNodeImpl implements IClassCoverage
IClassCoverage
.ICoverageNode.CounterEntity, ICoverageNode.ElementType
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter
UNKNOWN_LINE
Constructor | Description |
---|---|
ClassCoverageImpl(java.lang.String name,
long id,
boolean noMatch) |
Creates a class coverage data object with the given parameters.
|
Modifier and Type | Method | 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.
|
java.lang.String[] |
getInterfaceNames() |
Returns the VM names of implemented/extended interfaces.
|
java.util.Collection<IMethodCoverage> |
getMethods() |
Returns the methods included in this class.
|
java.lang.String |
getPackageName() |
Returns the VM name of the package this class belongs to.
|
java.lang.String |
getSignature() |
Returns the VM signature of the class.
|
java.lang.String |
getSourceFileName() |
Returns the optional name of the corresponding source file.
|
java.lang.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(java.lang.String[] interfaces) |
Sets the VM names of implemented/extended interfaces.
|
void |
setSignature(java.lang.String signature) |
Sets the VM signature of the class.
|
void |
setSourceFileName(java.lang.String sourceFileName) |
Sets the name of the corresponding source file for this class.
|
void |
setSuperName(java.lang.String superName) |
Sets the VM name of the superclass.
|
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toString
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
getFirstLine, getLastLine, getLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureCapacity, getFirstLine, getLastLine, getLine, increment, increment
public ClassCoverageImpl(java.lang.String name, long id, boolean noMatch)
name
- VM name of the classid
- class identifiernoMatch
- true
, if class id does not match with execution
datapublic void addMethod(IMethodCoverage method)
method
- method data to addpublic void setSignature(java.lang.String signature)
signature
- VM signature of the class (may be null
)public void setSuperName(java.lang.String superName)
superName
- VM name of the super class (may be null
, i.e.
java/lang/Object
)public void setInterfaces(java.lang.String[] interfaces)
interfaces
- VM names of implemented/extended interfacespublic void setSourceFileName(java.lang.String sourceFileName)
sourceFileName
- name of the source filepublic long getId()
IClassCoverage
getId
in interface IClassCoverage
public boolean isNoMatch()
IClassCoverage
isNoMatch
in interface IClassCoverage
true
if this class does not match to the provided
execution data.public java.lang.String getSignature()
IClassCoverage
getSignature
in interface IClassCoverage
null
)public java.lang.String getSuperName()
IClassCoverage
getSuperName
in interface IClassCoverage
null
, i.e.
java/lang/Object
)public java.lang.String[] getInterfaceNames()
IClassCoverage
getInterfaceNames
in interface IClassCoverage
public java.lang.String getPackageName()
IClassCoverage
getPackageName
in interface IClassCoverage
public java.lang.String getSourceFileName()
IClassCoverage
getSourceFileName
in interface IClassCoverage
public java.util.Collection<IMethodCoverage> getMethods()
IClassCoverage
getMethods
in interface IClassCoverage
Copyright © 2018. All rights reserved.