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 voidaccept(ITreeVisitor<T> visitor)voidaddChild(TreeNode<T> node)Add a child node.voiddetach()Detach this node from its parent.java.util.List<ITreeNode<T>>getChildren()IQuantitygetEndTime()ITreeNode<T>getParent()IQuantitygetStartTime()IMCThreadgetThread()TgetValue()booleanhasDuration()(package private) voidremoveChild(TreeNode<T> node)Remove a child node.java.lang.StringtoString()
-
-
-
Method Detail
-
getChildren
public java.util.List<ITreeNode<T>> getChildren()
- Specified by:
getChildrenin 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
-
removeChild
void removeChild(TreeNode<T> node)
Remove a child node.- Parameters:
node- child node to remove
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
detach
public void detach()
Detach this node from its parent.
-
-