|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.ast.AST
public class AST
Abstract syntax tree (AST).
| Constructor Summary | |
|---|---|
AST(BranchNode root,
String x)
Constructs a new AST. |
|
| Method Summary | |
|---|---|
String |
getOriginalString()
Returns the original string. |
BranchNode |
getRoot()
Returns the root node. |
String |
toString()
Returns string representation of this AST. |
void |
traverse(NodeVisitor v)
Traverses this AST bottom-up and applies the visitor to all nodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AST(BranchNode root,
String x)
root - root nodex - original string| Method Detail |
|---|
public String getOriginalString()
public BranchNode getRoot()
public String toString()
toString in class Objectpublic void traverse(NodeVisitor v)
v - AST visitor
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||