at.dms.compiler.antlr.extra
Class InputBufferState

java.lang.Object
  extended by at.dms.compiler.antlr.extra.InputBufferState

public class InputBufferState
extends Object

Acts as communication object between different scanners.


Field Summary
 boolean atEOF
           
 char[] buffer
           
 int currentPos
           
 int endRead
           
 int markedPos
           
 int pushbackPos
           
 int startRead
           
 
Constructor Summary
InputBufferState(char[] buffer, int startRead, int endRead, int currentPos, int markedPos, int pushbackPos, boolean atEOF)
          Constructs a new input buffer state object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

public char[] buffer

startRead

public int startRead

endRead

public int endRead

currentPos

public int currentPos

markedPos

public int markedPos

pushbackPos

public int pushbackPos

atEOF

public boolean atEOF
Constructor Detail

InputBufferState

public InputBufferState(char[] buffer,
                        int startRead,
                        int endRead,
                        int currentPos,
                        int markedPos,
                        int pushbackPos,
                        boolean atEOF)
Constructs a new input buffer state object.

Parameters:
buffer - contains the current text to be matched
startRead - the beginning of the yytext() string
endRead - the last character in the buffer
currentPos - the the current text position in the buffer
markedPos - the position at the last accepting state
pushbackPos - the position at the last state to be included in yytext
atEOF - is the scanner at the EOF ?