public class DominatorNode<N>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<DominatorNode<N>> |
children |
protected N |
gode |
protected DominatorNode<N> |
parent |
Modifier | Constructor and Description |
---|---|
protected |
DominatorNode(N gode) |
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(DominatorNode<N> child)
Adds a child to the internal list of children of this node in
tree.
|
java.util.List<DominatorNode<N>> |
getChildren()
Returns a backed list of the children of this node in the
DominatorTree.
|
N |
getGode()
Returns the node (from the original DirectedGraph) encapsulated
by this DominatorNode.
|
DominatorNode<N> |
getParent()
Returns the parent of the node in the DominatorTree.
|
boolean |
isHead()
Returns true if this node is the head of its DominatorTree.
|
boolean |
isTail()
Returns true if this node is a tail of its DominatorTree.
|
void |
setParent(DominatorNode<N> parent)
Sets the parent of this node in the DominatorTree.
|
java.lang.String |
toString() |
protected N gode
protected DominatorNode<N> parent
protected java.util.List<DominatorNode<N>> children
protected DominatorNode(N gode)
public void setParent(DominatorNode<N> parent)
public boolean addChild(DominatorNode<N> child)
public N getGode()
public DominatorNode<N> getParent()
public java.util.List<DominatorNode<N>> getChildren()
public boolean isHead()
public boolean isTail()
public java.lang.String toString()
toString
in class java.lang.Object