|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.ast.Node
public abstract class Node
Top level class for any AST class.
| Field Summary | |
|---|---|
static char |
ILLEGAL_LOCAL_ID_CHAR
Character which no identifier admitted by the parser will contain. |
| Constructor Summary | |
|---|---|
Node()
Default constructor. |
|
| Method Summary | |
|---|---|
abstract Node |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes locInfo. |
LocationInfo |
getLocationInfo()
Gets the location information of this object. |
Object |
getProperty(int key)
Gets a property on this node. |
void |
putProperty(int key,
Object value)
Puts a property on this node. |
void |
setLocationInfo(LocationInfo newLocInfo)
Sets the location information of this object. |
abstract String |
toString()
|
abstract void |
visit(ASTVisitor visitor)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char ILLEGAL_LOCAL_ID_CHAR
| Constructor Detail |
|---|
public Node()
| Method Detail |
|---|
public abstract Node clone()
clone in class Objectpublic final void setLocationInfo(LocationInfo newLocInfo)
newLocInfo - The new location info. Must be non-null.public final LocationInfo getLocationInfo()
public Object getProperty(int key)
key - The key of the property.
public void dispose()
dispose in interface Disposable
public void putProperty(int key,
Object value)
key - The key of the property.value - The value of the property. Must be non-null.public abstract void visit(ASTVisitor visitor)
public abstract String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||