|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.ast.Node
public abstract class Node
Superclass of AST nodes.
| Constructor Summary | |
|---|---|
protected |
Node(int i,
int j)
Constructs a new node. |
| Method Summary | |
|---|---|
int |
getFromIndex()
Returns index in original string corresponding to the start of this node. |
String |
getString(String x)
Returns the substring represented by this node. |
int |
getToIndex()
Returns index in original string corresponding to the end (exclusive) of this node. |
abstract void |
print(String x,
StringBuilder b)
Prints this node. |
abstract void |
visitBy(NodeVisitor v)
Visits this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Node(int i,
int j)
i - from indexj - to index| Method Detail |
|---|
public int getFromIndex()
public String getString(String x)
x - original string
public int getToIndex()
public abstract void print(String x,
StringBuilder b)
x - original stringb - string buffer for outputpublic abstract void visitBy(NodeVisitor v)
v - visitor
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||