|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.parser.ParserContext
The class ParserContext is a
support class for the class BaseParser.
The class allows the critical "state"
variables to be saved and restored in case the
parse method of BaseParser
is called recursively.
Currently the "state" variables are:
data: the string being parsednext: the current position in the string being parsedlet_variables: the current "let" variablesWe reserve the right to change this support class in the future without a guarantee of backward compatibility. This class should not be used directly by clients of Java Power Tools.
| Field Summary | |
private String |
data
The string being parsed. |
private Hashtable |
let_variables
The current "let" variables. |
private int |
next
The current position in the string being parsed. |
| Constructor Summary | |
ParserContext(String data,
int next,
Hashtable let_variables)
The constructor that saves the parser context. |
|
| Method Summary | |
String |
data()
Returns the string being parsed. |
Hashtable |
let_variables()
Returns the current "let" variables. |
int |
next()
Returns the current position in the string being parsed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private String data
private int next
private Hashtable let_variables
| Constructor Detail |
public ParserContext(String data,
int next,
Hashtable let_variables)
| Method Detail |
public String data()
public int next()
public Hashtable let_variables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||