Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
adalogo.lang.SimpleNode
Nested Class Summary |
Field Summary | |
protected Node[] | |
protected int | |
protected int | |
protected int | |
protected Node | |
protected Lang | |
protected String |
Constructor Summary | |
| |
|
Method Summary | |
Object |
|
void |
|
int | |
int |
|
int |
|
String |
|
Object |
|
void |
|
void |
|
static Node | |
static Node |
|
Node |
|
int |
|
Node |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
String |
|
String |
|
public SimpleNode(Lang p, int i)
Constructor of SimpleNode. For in-parameter see LangTreeConstants.
public SimpleNode(int i)
Constructor of SimpleNode. For in-parameter see LangTreeConstants.
public void dump(String prefix)
Dump the parse tree with param prefix
public int getColumn()
- Returns:
- the beginColumn of the node, where you can find in the editor window.
public int getId()
This is for getting the type of the node. For example SequenceOfStatement, see LangTreeConstants.java
public int getLine()
- Returns:
- the beginLine of the node, where you can find in the editor window.
public String getValue() throws SimpleNode.SimpleNodeGetValueException
return the value of the node.
public void jjtAddChild(Node n, int i)
AddChild n to the position i.
- Specified by:
- jjtAddChild in interface Node
public static Node jjtCreate(Lang p, int id)
Constructor of Node. For in-parameter see LangTreeConstants.
public static Node jjtCreate(int id)
Constructor of Node. For in-parameter see LangTreeConstants.
public Node jjtGetChild(int i)
return child at position i
- Specified by:
- jjtGetChild in interface Node
public int jjtGetNumChildren()
return the number of children.
- Specified by:
- jjtGetNumChildren in interface Node
public void setColumn(int column)
set beginColumn, where you can find the node. this should only use by Lang.jjt
public void setId(int i)
This is for setting the type of the node. For example SequenceOfStatement, see LangTreeConstants.java
public void setLine(int line)
set beginLine, where you can find the node. this should only use by Lang.jjt
public void setValue(String value)
set the value for the node.
public String toString()
Get the name of the node, for exmaple SequenceOfStatement etc. see LangConstants
public String toString(String prefix)
Get the name of the node with prefix, for exmaple xxSequenceOfStatement etc. see LangConstants