org.apache.lucene.queryParser.precedence

Class FastCharStream

public final class FastCharStream extends Object implements CharStream

An efficient implementation of JavaCC's CharStream interface.

Note that this does not do line-number counting, but instead keeps track of the character position of the token in the input, as required by Lucene's {@link org.apache.lucene.analysis.Token} API.

Constructor Summary
FastCharStream(Reader r)
Constructs from a Reader.
Method Summary
voidbackup(int amount)
charBeginToken()
voidDone()
intgetBeginColumn()
intgetBeginLine()
intgetColumn()
intgetEndColumn()
intgetEndLine()
intgetLine()
StringGetImage()
char[]GetSuffix(int len)
charreadChar()

Constructor Detail

FastCharStream

public FastCharStream(Reader r)
Constructs from a Reader.

Method Detail

backup

public final void backup(int amount)

BeginToken

public final char BeginToken()

Done

public final void Done()

getBeginColumn

public final int getBeginColumn()

getBeginLine

public final int getBeginLine()

getColumn

public final int getColumn()

getEndColumn

public final int getEndColumn()

getEndLine

public final int getEndLine()

getLine

public final int getLine()

GetImage

public final String GetImage()

GetSuffix

public final char[] GetSuffix(int len)

readChar

public final char readChar()
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.