|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teatrove.tea.parsetree.Node
public abstract class Node
The superclass of all parse tree nodes. Every Node contains source information and can accept a NodeVisitor.
NodeVisitor,
Serialized Form| Constructor Summary | |
|---|---|
protected |
Node(SourceInfo info)
|
| Method Summary | |
|---|---|
abstract Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following: return visitor.visit(this). |
Object |
clone()
Returns a clone of this Node and all its children. |
SourceInfo |
getSourceInfo()
|
String |
toString()
Returns a String that contains the type of this Node and source information. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Node(SourceInfo info)
| Method Detail |
|---|
public final SourceInfo getSourceInfo()
public abstract Object accept(NodeVisitor visitor)
return visitor.visit(this).
visitor - A visitor of this Node
NodeVisitorpublic Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||