|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INRLAstNode
Basic interface for all NRL constructs. Has a line and column number. To convert to a total character
position, use StringUtilities.getCharacterPosition(String, int, int).
| Field Summary | |
|---|---|
static String |
NEWLINE
Newline constant for output purposes |
| Method Summary | |
|---|---|
void |
accept(INRLAstVisitor visitor)
Accept a visitor to this node. |
String |
dump(int indent)
Dump the AST and its children for debugging purposes |
int |
getColumn()
Return the column in the input file where this node occurred. |
int |
getLine()
Return the line in the input file where this node occurred. |
Object |
getUserData(String key)
Return a named user data object associated with this AST node. |
void |
setUserData(String key,
Object data)
Associate user data with this AST node, under a given key. |
| Field Detail |
|---|
static final String NEWLINE
| Method Detail |
|---|
void accept(INRLAstVisitor visitor)
visitor - the visitorint getColumn()
int getLine()
Object getUserData(String key)
key - the key identifying the data
String dump(int indent)
indent - the indentation count, 0 on first call
void setUserData(String key,
Object data)
key - the keydata - the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||