|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.search.SimpleNode
public class SimpleNode
Generated by the JavaCC tool JJTree. Not abstract but used as the abstract class of all parser nodes (with name prefix "Node").
| Field Summary | |
|---|---|
java.lang.String |
image
|
| Constructor Summary | |
|---|---|
SimpleNode(int i)
|
|
SimpleNode(net.sourceforge.nite.search.Parser p,
int i)
|
|
| Method Summary | |
|---|---|
java.lang.String |
dump(java.lang.String prefix)
|
Node[] |
getChildren()
New method for use in rewriter. |
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()
This method and Node.jjtSetParent(net.sourceforge.nite.search.Node) are used to inform the node of its parent. |
void |
jjtOpen()
This method is called after the node has been made the current node. |
void |
jjtSetParent(Node n)
This method and Node.jjtGetParent() 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String image
| Constructor Detail |
|---|
public SimpleNode(int i)
public SimpleNode(net.sourceforge.nite.search.Parser p,
int i)
| Method Detail |
|---|
public void jjtOpen()
Node
jjtOpen in interface Nodepublic void jjtClose()
Node
jjtClose in interface Nodepublic void jjtSetParent(Node n)
Node
jjtSetParent in interface Noden - parentpublic Node jjtGetParent()
Node
jjtGetParent in interface Node
public void jjtAddChild(Node n,
int i)
Node
jjtAddChild in interface Noden - the child node to be addi - position to insertpublic Node jjtGetChild(int i)
Node
jjtGetChild in interface Nodei - number of the child
public int jjtGetNumChildren()
Node
jjtGetNumChildren in interface Nodepublic Node[] getChildren()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String prefix)
public java.lang.String dump(java.lang.String prefix)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||