edu.neu.ccs.parser
Class ParserContext

java.lang.Object
  extended byedu.neu.ccs.parser.ParserContext

public class ParserContext
extends Object

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:

We 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

data

private String data
The string being parsed.


next

private int next
The current position in the string being parsed.


let_variables

private Hashtable let_variables
The current "let" variables.

Constructor Detail

ParserContext

public ParserContext(String data,
                     int next,
                     Hashtable let_variables)
The constructor that saves the parser context.

Method Detail

data

public String data()
Returns the string being parsed.


next

public int next()
Returns the current position in the string being parsed.


let_variables

public Hashtable let_variables()
Returns the current "let" variables.