Class QueryParserTokenManager
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.parser.QueryParserTokenManager
-
- All Implemented Interfaces:
QueryParserConstants
public class QueryParserTokenManager extends java.lang.Object implements QueryParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description java.io.PrintStream
debugStream
Debug output.static int[]
jjnewLexState
Lex State array.static java.lang.String[]
jjstrLiteralImages
Token literal values.static java.lang.String[]
lexStateNames
Lexer state names.-
Fields inherited from interface org.apache.lucene.queryparser.surround.parser.QueryParserConstants
_DISTOP_NUM, _NUM_CHAR, _ONE_CHAR, _STAR, _TERM_CHAR, _WHITESPACE, AND, Boost, CARAT, COLON, COMMA, DEFAULT, EOF, LPAREN, N, NOT, NUMBER, OR, QUOTED, RPAREN, SUFFIXTERM, TERM, tokenImage, TRUNCQUOTED, TRUNCTERM, W
-
-
Constructor Summary
Constructors Constructor Description QueryParserTokenManager(CharStream stream)
Constructor.QueryParserTokenManager(CharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.void
ReInit(CharStream stream)
Reinitialise parser.void
ReInit(CharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(java.io.PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final java.lang.String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final java.lang.String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
-
Constructor Detail
-
QueryParserTokenManager
public QueryParserTokenManager(CharStream stream)
Constructor.
-
QueryParserTokenManager
public QueryParserTokenManager(CharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
ReInit
public void ReInit(CharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(CharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
getNextToken
public Token getNextToken()
Get the next Token.
-
-