FileDocCategorySizeDatePackage
LexerSharedInputState.javaAPI DocGlassfish v2 API1192Wed Aug 30 15:34:08 BST 2006persistence.antlr

LexerSharedInputState

public class LexerSharedInputState extends Object
This object contains the data associated with an input stream of characters. Multiple lexers share a single LexerSharedInputState to lex the same input stream.

Fields Summary
protected int
column
protected int
line
protected int
tokenStartColumn
protected int
tokenStartLine
protected InputBuffer
input
protected String
filename
What file (if known) caused the problem?
public int
guessing
Constructors Summary
public LexerSharedInputState(InputBuffer inbuf)


       
        input = inbuf;
    
public LexerSharedInputState(InputStream in)

        this(new ByteBuffer(in));
    
public LexerSharedInputState(Reader in)

        this(new CharBuffer(in));
    
Methods Summary
public voidreset()

        column = 1;
        line = 1;
        tokenStartColumn = 1;
        tokenStartLine = 1;
        guessing = 0;
        filename = null;
        input.reset();