frysk.hpd
Class ParseTreeNode
java.lang.Object
frysk.hpd.ParseTreeNode
class ParseTreeNode
- extends Object
A node of a tree representation of a process/thread set in hpdf notation.
On creation sets takes a parent reference, but when you add it to a real parent, the refence get repointed to that parent,
just in case, might change depending on implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_RANGE
public static final int TYPE_RANGE
- See Also:
- Constant Field Values
TYPE_REG
public static final int TYPE_REG
- See Also:
- Constant Field Values
parent
ParseTreeNode parent
leftChild
ParseTreeNode leftChild
rightChild
ParseTreeNode rightChild
id
int id
type
int type
ParseTreeNode
public ParseTreeNode(ParseTreeNode parent,
int type)
ParseTreeNode
public ParseTreeNode(ParseTreeNode parent,
int id,
int type)
ParseTreeNode
public ParseTreeNode(int type)
ParseTreeNode
public ParseTreeNode(int id,
int type)
isLeaf
public boolean isLeaf()
setParent
public void setParent(ParseTreeNode parent)
setLeft
public void setLeft(ParseTreeNode leftChild)
setRight
public void setRight(ParseTreeNode rightChild)
getParent
public ParseTreeNode getParent()
getLeft
public ParseTreeNode getLeft()
getRight
public ParseTreeNode getRight()
getID
public int getID()
getType
public int getType()