Class MethodNode
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.model.Node
-
- com.parasoft.findings.jenkins.coverage.model.MethodNode
-
- All Implemented Interfaces:
Serializable
public final class MethodNode extends Node
ANode
for a specific method.- Author:
- Florian Orendi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodNode(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
copy()
Creates a copy of this instance that has no children and no parent yet.boolean
equals(Object o)
int
getLineNumber()
String
getSignature()
int
hashCode()
boolean
hasValidLineNumber()
Checks whether the line number is valid.String
toString()
-
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 Detail
-
MethodNode
public MethodNode(String name, String signature)
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
public MethodNode(String name, String signature, int lineNumber)
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 Detail
-
copy
public Node 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
public String getSignature()
-
-