Package org.apache.solr.parser
Class QueryParserTokenManager
- java.lang.Object
-
- org.apache.solr.parser.QueryParserTokenManager
-
- All Implemented Interfaces:
QueryParserConstants
public class QueryParserTokenManager extends Object implements QueryParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
curChar
protected org.apache.lucene.queryparser.charstream.CharStream
input_stream
static int[]
jjnewLexState
Lex State array.static String[]
jjstrLiteralImages
Token literal values.static String[]
lexStateNames
Lexer state names.-
Fields inherited from interface org.apache.solr.parser.QueryParserConstants
_ESCAPED_CHAR, _NUM_CHAR, _QUOTED_CHAR, _SQUOTED_CHAR, _TERM_CHAR, _TERM_START_CHAR, _WHITESPACE, AND, BAREOPER, Boost, CARAT, COLON, COMMENT, DEFAULT, EOF, FILTER, FUZZY_SLOP, LPARAMS, LPAREN, MINUS, NOT, NUMBER, OR, PLUS, PREFIXTERM, QUOTED, Range, RANGE_GOOP, RANGE_QUOTED, RANGE_TO, RANGEEX_END, RANGEEX_START, RANGEIN_END, RANGEIN_START, REGEXPTERM, RPAREN, STAR, TERM, tokenImage, WILDTERM
-
-
Constructor Summary
Constructors Constructor Description QueryParserTokenManager(org.apache.lucene.queryparser.charstream.CharStream stream)
Constructor.QueryParserTokenManager(org.apache.lucene.queryparser.charstream.CharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.protected Token
jjFillToken()
void
ReInit(org.apache.lucene.queryparser.charstream.CharStream stream)
Reinitialise parser.void
ReInit(org.apache.lucene.queryparser.charstream.CharStream stream, int lexState)
Reinitialise parser.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
jjstrLiteralImages
public static final String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
input_stream
protected org.apache.lucene.queryparser.charstream.CharStream input_stream
-
curChar
protected int curChar
-
-
Method Detail
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
ReInit
public void ReInit(org.apache.lucene.queryparser.charstream.CharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(org.apache.lucene.queryparser.charstream.CharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
-