Class MethodNode
java.lang.Object
com.parasoft.findings.jenkins.coverage.model.Node
com.parasoft.findings.jenkins.coverage.model.MethodNode
- All Implemented Interfaces:
Serializable
A
Node
for a specific method.- Author:
- Florian Orendi
- See Also:
-
Constructor Summary
ConstructorDescriptionMethodNode
(String name, String signature) Creates a new method node with the given name.MethodNode
(String name, String signature, int lineNumber) Creates a new item node with the given name. -
Method Summary
Methods inherited from class com.parasoft.findings.jenkins.coverage.model.Node
addAllChildren, addAllValues, addChild, addValue, aggregateValues, computeDelta, containsMetric, copyNode, copyTree, copyTree, filterByIndirectChanges, filterByModifiedFiles, filterByModifiedLines, filterTreeByIndirectChanges, filterTreeByModifiedFiles, filterTreeByModifiedLines, find, findByHashCode, findClass, findFile, findMethod, findPackage, getAll, getAllFileNodes, getAllMethodNodes, getChildren, getFiles, getMetric, getMetrics, getName, getParasoftToolName, getParent, getParentName, getSourceFolders, getTypedValue, getValue, getValueMetrics, getValues, hasChildren, hasModifiedLines, hasParent, isEmpty, isRoot, matches, matches, merge, merge, removeChild, replaceValue, setParasoftToolName
-
Constructor Details
-
MethodNode
Creates a new method node with the given name. The line number will be set to 0.- Parameters:
name
- The human-readable name of the nodesignature
- The signature of the method
-
MethodNode
Creates a new item node with the given name.- Parameters:
name
- The human-readable name of the nodesignature
- The signature of the methodlineNumber
- The line number where the method begins (not including the method head)
-
-
Method Details
-
copy
Description copied from class:Node
Creates a copy of this instance that has no children and no parent yet. Node properties from the parent classNode
must not be copied. All other immutable properties need to be copied one by one. -
hasValidLineNumber
public boolean hasValidLineNumber()Checks whether the line number is valid.- Returns:
true
if the line number is valid, elsefalse
-
getLineNumber
public int getLineNumber() -
getSignature
-
equals
-
hashCode
public int hashCode() -
toString
-