Class Node
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.stacktrace.tree.Node
-
public final class Node extends java.lang.ObjectA node in the graph of aggregated stack traces.
-
-
Constructor Summary
Constructors Constructor Description Node(Node parent, AggregatableFrame frame)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<Node>getChildren()doublegetCumulativeWeight()AggregatableFramegetFrame()java.lang.IntegergetNodeId()NodegetParent()doublegetWeight()inthashCode()booleanisLeaf()booleanisRoot()static NodenewRootNode(AggregatableFrame rootFrame)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Node
public Node(Node parent, AggregatableFrame frame)
-
-
Method Detail
-
newRootNode
public static Node newRootNode(AggregatableFrame rootFrame)
-
getNodeId
public java.lang.Integer getNodeId()
- Returns:
- the unique identifier associated with this node.
-
getWeight
public double getWeight()
- Returns:
- the weight of this node.
-
getCumulativeWeight
public double getCumulativeWeight()
- Returns:
- the cumulative weight of this node.
-
getFrame
public AggregatableFrame getFrame()
- Returns:
- the frame corresponding to this node.
-
getChildren
public java.util.List<Node> getChildren()
- Returns:
- the list of child nodes, in order of appearance.
-
getParent
public Node getParent()
- Returns:
- the parent node or null when root.
-
isRoot
public boolean isRoot()
-
isLeaf
public boolean isLeaf()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-