| Modifier and Type | Field and Description |
|---|---|
| protected Node[] | |
| pack-priv Token | |
| protected int | |
| public static SimpleNode | |
| pack-priv Token | |
| protected Node | |
| pack-priv String | sourceFile
the source of the text from which this was parsed |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | eval(CallStack callstack, Interpreter interpreter)
This is the general signature for evaluation of a node. |
| public SimpleNode | |
| public int | |
| public String | getSourceFile()
Get the name of the source file (or more generally source) of the text from which this node was parsed. |
| public String | |
| public void | jjtAddChild(Node n, int i)
Implements bsh. |
| public void | jjtClose()
Implements bsh. |
| public Node | |
| public int | jjtGetNumChildren()
Implements bsh. |
| public Node | |
| public void | jjtOpen()
Implements bsh. |
| public void | jjtSetParent(Node n)
Implements bsh. |
| public void | |
| public void | setSourceFile(String sourceFile)
Set the name of the source file (or more generally source) of the text from which this node was parsed. |
| public String | |
| public String |
| children | back to summary |
|---|---|
| protected Node[] children | |
| firstToken | back to summary |
|---|---|
| pack-priv Token firstToken | |
| id | back to summary |
|---|---|
| protected int id | |
| JAVACODE | back to summary |
|---|---|
| public static SimpleNode JAVACODE | |
| lastToken | back to summary |
|---|---|
| pack-priv Token lastToken | |
| parent | back to summary |
|---|---|
| protected Node parent | |
| sourceFile | back to summary |
|---|---|
| pack-priv String sourceFile the source of the text from which this was parsed | |
| SimpleNode | back to summary |
|---|---|
| public SimpleNode(int i) | |
| dump | back to summary |
|---|---|
| public void dump(String prefix) | |
| eval | back to summary |
|---|---|
| public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError This is the general signature for evaluation of a node. | |
| getChild | back to summary |
|---|---|
| public SimpleNode getChild(int i) | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Get the line number of the starting token | |
| getSourceFile | back to summary |
|---|---|
| public String getSourceFile() Get the name of the source file (or more generally source) of the text from which this node was parsed. This will recursively search up the chain of parent nodes until a source is found or return a string indicating that the source is unknown. | |
| getText | back to summary |
|---|---|
| public String getText() Get the text of the tokens comprising this node. | |
| jjtAddChild | back to summary |
|---|---|
| public void jjtAddChild(Node n, int i) Implements bsh. Doc from bsh. This method tells the node to add its argument to the node's list of children. | |
| jjtClose | back to summary |
|---|---|
| public void jjtClose() Implements bsh. Doc from bsh. This method is called after all the child nodes have been added. | |
| jjtGetChild | back to summary |
|---|---|
| public Node jjtGetChild(int i) Implements bsh. Doc from bsh. This method returns a child node. The children are numbered from zero, left to right. | |
| jjtGetNumChildren | back to summary |
|---|---|
| public int jjtGetNumChildren() Implements bsh. Doc from bsh. Return the number of children the node has. | |
| jjtGetParent | back to summary |
|---|---|
| public Node jjtGetParent() Implements bsh. | |
| jjtOpen | back to summary |
|---|---|
| public void jjtOpen() Implements bsh. Doc from bsh. This method is called after the node has been made the current node. It indicates that child nodes can now be added to it. | |
| jjtSetParent | back to summary |
|---|---|
| public void jjtSetParent(Node n) Implements bsh. Doc from bsh. This pair of methods are used to inform the node of its parent. | |
| prune | back to summary |
|---|---|
| public void prune() Detach this node from its parent. This is primarily useful in node serialization. (see BSHMethodDeclaration) | |
| setSourceFile | back to summary |
|---|---|
| public void setSourceFile(String sourceFile) Set the name of the source file (or more generally source) of the text from which this node was parsed. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| toString | back to summary |
|---|---|
| public String toString(String prefix) | |