frysk.hpd
Class ParseTreeNode

java.lang.Object
  extended by 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.


Field Summary
(package private)  int id
           
(package private)  ParseTreeNode leftChild
           
(package private)  ParseTreeNode parent
           
(package private)  ParseTreeNode rightChild
           
(package private)  int type
           
static int TYPE_RANGE
           
static int TYPE_REG
           
 
Constructor Summary
ParseTreeNode(int type)
           
ParseTreeNode(int id, int type)
           
ParseTreeNode(ParseTreeNode parent, int type)
           
ParseTreeNode(ParseTreeNode parent, int id, int type)
           
 
Method Summary
 int getID()
           
 ParseTreeNode getLeft()
           
 ParseTreeNode getParent()
           
 ParseTreeNode getRight()
           
 int getType()
           
 boolean isLeaf()
           
 void setLeft(ParseTreeNode leftChild)
           
 void setParent(ParseTreeNode parent)
           
 void setRight(ParseTreeNode rightChild)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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()