|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
public abstract class ASTNode
The abstract ASTNode class represents a generic AST node.
It contains a line number (lineNumber).
| Field Summary | |
|---|---|
protected int |
charNum
The source starting character number (within line) corresponding to this AST node |
protected int |
lineNum
The source line number corresponding to this AST node |
protected java.lang.String |
lineStr
The source starting line corresponding to this AST node |
| Constructor Summary | |
|---|---|
protected |
ASTNode(int lineNum)
ASTNode constructor |
| Method Summary | |
|---|---|
abstract java.lang.Object |
accept(Visitor v)
Visitor method |
int |
getLineNum()
Get the line number corresponding to this AST node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int lineNum
protected int charNum
protected java.lang.String lineStr
| Constructor Detail |
|---|
protected ASTNode(int lineNum)
lineNum - source line number corresponding to this AST node| Method Detail |
|---|
public int getLineNum()
public abstract java.lang.Object accept(Visitor v)
v - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||