|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kmy.jint.tree.BasicNode
This is a base class representing parsing tree node; all other nodes are derived from it.
Field Summary | |
java.lang.Object |
attachment
Attachment is a general-purpose field that can hold some useful information generated by some kind of parsing tree processing (like semantic analysis). |
private int |
filePos
|
Constructor Summary | |
BasicNode(int filePos)
Initialize BasicNode that represents something at position filePos is the input file. |
Method Summary | |
abstract java.lang.Object |
eval(Context context)
Calls corresponding eval* method in the given Context. |
java.lang.Object |
getAttachment()
Returns this node attachment. |
int |
getFilePos()
Returns file position where the element what this node represents was located. |
int |
getLine()
Returns line where the element what this node represents was located. |
void |
setAttachment(java.lang.Object obj)
Assigns this node attachment. |
void |
setFilePos(int filePos)
Returns line's column where the element what this node represents was located. |
java.lang.String |
toString()
Returns string representation of this node. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int filePos
public java.lang.Object attachment
Constructor Detail |
public BasicNode(int filePos)
Method Detail |
public int getFilePos()
public int getLine()
public void setFilePos(int filePos)
public void setAttachment(java.lang.Object obj)
public java.lang.Object getAttachment()
public java.lang.String toString()
public abstract java.lang.Object eval(Context context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |