edu.buffalo.nsf.xmlcqa.tree
Class TreeNode

java.lang.Object
  extended byedu.buffalo.nsf.xmlcqa.tree.TreeNode

public final class TreeNode
extends java.lang.Object

Author:
staworko TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
protected  int hash
           
protected  TreeNode parent
           
protected  int pos
           
protected  int realm
           
protected static int realmCounter
           
protected  Token t
           
 
Constructor Summary
protected TreeNode(int realm, Token t)
           
  TreeNode(Token t)
           
protected TreeNode(TreeNode parent, int pos, Token t)
           
 
Method Summary
 TreeNode getChild(int pos, Token t)
           
 TreeNode getParent()
           
 int getPosition()
           
 Tag getTag()
           
 java.lang.String getText()
           
 int hashCode()
           
 boolean isNode()
           
 boolean isRoot()
           
 boolean isText()
           
 TreeNode substitute(TreeNode root)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

hash

protected int hash

parent

protected TreeNode parent

pos

protected int pos

realm

protected int realm

realmCounter

protected static int realmCounter

t

protected Token t
Constructor Detail

TreeNode

protected TreeNode(int realm,
                   Token t)

TreeNode

public TreeNode(Token t)

TreeNode

protected TreeNode(TreeNode parent,
                   int pos,
                   Token t)
Method Detail

getChild

public TreeNode getChild(int pos,
                         Token t)

getParent

public TreeNode getParent()

getPosition

public int getPosition()

getTag

public Tag getTag()

getText

public java.lang.String getText()

hashCode

public int hashCode()

isNode

public boolean isNode()

isRoot

public boolean isRoot()

isText

public boolean isText()

substitute

public TreeNode substitute(TreeNode root)

toString

public java.lang.String toString()