Uses of Class
org.apache.lucene.queryparser.classic.Token
Packages that use Token
Package
Description
A simple query parser implemented with JavaCC.
-
Uses of Token in org.apache.lucene.queryparser.classic
Fields in org.apache.lucene.queryparser.classic declared as TokenModifier and TypeFieldDescriptionParseException.currentToken
This is the last token that has been consumed successfully.(package private) Token
QueryParser.JJCalls.first
private Token
QueryParser.jj_lastpos
QueryParser.jj_nt
Next token.private Token
QueryParser.jj_scanpos
Token.next
A reference to the next regular (non-special) token from the input stream.Token.specialToken
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.QueryParser.token
Current token.Methods in org.apache.lucene.queryparser.classic that return TokenModifier and TypeMethodDescriptionfinal Token
QueryParser.getNextToken()
Get the next Token.QueryParserTokenManager.getNextToken()
Get the next Token.final Token
QueryParser.getToken
(int index) Get the specific Token.private Token
QueryParser.jj_consume_token
(int kind) protected Token
QueryParserTokenManager.jjFillToken()
static Token
Token.newToken
(int ofKind) static Token
Returns a new Token object, by default.Methods in org.apache.lucene.queryparser.classic with parameters of type TokenModifier and TypeMethodDescriptionprotected float
QueryParserBase.getFuzzyDistance
(Token fuzzyToken, String termStr) Determines the similarity distance for the given fuzzy token and term string.(package private) Query
QueryParserBase.handleBareFuzzy
(String qfield, Token fuzzySlop, String termImage) (package private) Query
QueryParserBase.handleBareTokenQuery
(String qfield, Token term, Token fuzzySlop, boolean prefix, boolean wildcard, boolean fuzzy, boolean regexp) (package private) Query
QueryParserBase.handleBoost
(Query q, Token boost) (package private) Query
QueryParserBase.handleQuotedTerm
(String qfield, Token term, Token fuzzySlop) private static String
ParseException.initialise
(Token currentToken, int[][] expectedTokenSequences, String[] tokenImage) It uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it.(package private) void
QueryParserTokenManager.SkipLexicalActions
(Token matchedToken) (package private) void
QueryParserTokenManager.TokenLexicalActions
(Token matchedToken) Constructors in org.apache.lucene.queryparser.classic with parameters of type TokenModifierConstructorDescriptionParseException
(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal) This constructor is used by the method "generateParseException" in the generated parser.