Class TreeNode<T>
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.tree.TreeNode<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ITreeVisitor<T> visitor)
void
addChild(TreeNode<T> node)
Add a child node.void
detach()
Detach this node from its parent.List<ITreeNode<T>>
getChildren()
IQuantity
getEndTime()
ITreeNode<T>
getParent()
IQuantity
getStartTime()
IMCThread
getThread()
T
getValue()
boolean
hasDuration()
String
toString()
-
-
-
Method Detail
-
getChildren
public List<ITreeNode<T>> getChildren()
- Specified by:
getChildren
in interfaceITreeNode<T>
- Returns:
- the children of the the node, or the empty list if there are no children
-
getValue
public T getValue()
-
hasDuration
public boolean hasDuration()
-
getStartTime
public IQuantity getStartTime()
-
getEndTime
public IQuantity getEndTime()
-
getThread
public IMCThread getThread()
-
accept
public void accept(ITreeVisitor<T> visitor)
-
addChild
public void addChild(TreeNode<T> node)
Add a child node.- Parameters:
node
- child node to add
-
detach
public void detach()
Detach this node from its parent.
-
-