com.sun.labs.minion.retrieval.parser
Class SimpleNode

java.lang.Object
  extended by com.sun.labs.minion.retrieval.parser.SimpleNode
All Implemented Interfaces:
Node, java.lang.Cloneable
Direct Known Subclasses:
LuceneASTAND, LuceneASTdoParse, LuceneASTfield, LuceneASTgroup, LuceneASTOR, LuceneASTq, LuceneASTrange, LuceneASTterm, LuceneASTUND, StrictASTdoParse, StrictASTfieldname, StrictASTindexed_fieldoperator, StrictASTq, StrictASTqe, StrictASTqeparen, StrictASTqiAND, StrictASTqif, StrictASTqiOR, StrictASTqp, StrictASTqpAND, StrictASTqpOR, StrictASTqpPASS, StrictASTqUND, StrictASTsaved_fieldoperator, StrictASTsaved_fieldvalue, StrictASTterm, WebASTdoParse, WebASTpassageTerm, WebASTphraseTerm, WebASTq, WebASTterm

public class SimpleNode
extends java.lang.Object
implements Node, java.lang.Cloneable


Field Summary
protected  java.util.ArrayList children
           
protected  boolean doExact
           
protected  boolean doExpand
           
protected  boolean doMorph
           
protected  boolean doStem
           
protected  boolean doWild
           
protected  int id
           
protected  boolean incLower
           
protected  boolean incUpper
           
static int INVALID
           
protected  java.lang.String lower
           
protected  boolean matchCase
           
protected  int operator
           
protected  Node parent
           
protected  Parser parser
           
protected  int unary
           
protected  java.lang.String upper
           
protected  java.lang.String value
           
 
Constructor Summary
SimpleNode(int i)
           
SimpleNode(Parser p, int i)
           
 
Method Summary
 java.lang.Object clone()
          A copy constructor that copies the values, but not anything related to this node's place in the tree.
 void dump(java.lang.String prefix)
           
 java.util.ArrayList getChildren()
           
 void jjtAddChild(Node n, int i)
          This method tells the node to add its argument to the node's list of children.
 void jjtClose()
          This method is called after all the child nodes have been added.
 Node jjtGetChild(int i)
          This method returns a child node.
 int jjtGetNumChildren()
          Return the number of children the node has.
 Node jjtGetParent()
           
 void jjtOpen()
          This method is called after the node has been made the current node.
 void jjtSetParent(Node n)
          This pair of methods are used to inform the node of its parent.
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected Node parent

children

protected java.util.ArrayList children

id

protected int id

parser

protected Parser parser

INVALID

public static int INVALID

operator

protected int operator

value

protected java.lang.String value

unary

protected int unary

matchCase

protected boolean matchCase

doExact

protected boolean doExact

doMorph

protected boolean doMorph

doStem

protected boolean doStem

doWild

protected boolean doWild

doExpand

protected boolean doExpand

incLower

protected boolean incLower

incUpper

protected boolean incUpper

lower

protected java.lang.String lower

upper

protected java.lang.String upper
Constructor Detail

SimpleNode

public SimpleNode(int i)

SimpleNode

public SimpleNode(Parser p,
                  int i)
Method Detail

clone

public java.lang.Object clone()
A copy constructor that copies the values, but not anything related to this node's place in the tree.

Overrides:
clone in class java.lang.Object

jjtOpen

public void jjtOpen()
Description copied from interface: Node
This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.

Specified by:
jjtOpen in interface Node

jjtClose

public void jjtClose()
Description copied from interface: Node
This method is called after all the child nodes have been added.

Specified by:
jjtClose in interface Node

jjtSetParent

public void jjtSetParent(Node n)
Description copied from interface: Node
This pair of methods are used to inform the node of its parent.

Specified by:
jjtSetParent in interface Node

jjtGetParent

public Node jjtGetParent()
Specified by:
jjtGetParent in interface Node

jjtAddChild

public void jjtAddChild(Node n,
                        int i)
Description copied from interface: Node
This method tells the node to add its argument to the node's list of children.

Specified by:
jjtAddChild in interface Node

jjtGetChild

public Node jjtGetChild(int i)
Description copied from interface: Node
This method returns a child node. The children are numbered from zero, left to right.

Specified by:
jjtGetChild in interface Node

getChildren

public java.util.ArrayList getChildren()

jjtGetNumChildren

public int jjtGetNumChildren()
Description copied from interface: Node
Return the number of children the node has.

Specified by:
jjtGetNumChildren in interface Node

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String prefix)

dump

public void dump(java.lang.String prefix)