Package | Description |
---|---|
org.apache.lucene.queryparser.surround.parser |
This package contains the QueryParser.jj source file for the Surround parser.
|
Modifier and Type | Field and Description |
---|---|
Token |
ParseException.currentToken
This is the last token that has been consumed successfully.
|
(package private) Token |
QueryParser.JJCalls.first |
private Token |
QueryParser.jj_lastpos |
Token |
QueryParser.jj_nt
Next token.
|
private Token |
QueryParser.jj_scanpos |
Token |
Token.next
A reference to the next regular (non-special) token from the input
stream.
|
Token |
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.
|
Token |
QueryParser.token
Current token.
|
Modifier and Type | Method and Description |
---|---|
Token |
QueryParserTokenManager.getNextToken()
Get the next Token.
|
Token |
QueryParser.getNextToken()
Get the next Token.
|
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 |
Token.newToken(int ofKind,
java.lang.String image)
Returns a new Token object, by default.
|
Modifier and Type | Method and Description |
---|---|
protected SrndQuery |
QueryParser.getAndQuery(java.util.List<SrndQuery> queries,
boolean infix,
Token andToken) |
protected SrndQuery |
QueryParser.getDistanceQuery(java.util.List<SrndQuery> queries,
boolean infix,
Token dToken,
boolean ordered) |
protected SrndQuery |
QueryParser.getNotQuery(java.util.List<SrndQuery> queries,
Token notToken) |
protected SrndQuery |
QueryParser.getOrQuery(java.util.List<SrndQuery> queries,
boolean infix,
Token orToken) |
private static java.lang.String |
ParseException.initialise(Token currentToken,
int[][] expectedTokenSequences,
java.lang.String[] tokenImage)
It uses "currentToken" and "expectedTokenSequences" to generate a parse
error message and returns it.
|
Constructor and Description |
---|
ParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal)
This constructor is used by the method "generateParseException"
in the generated parser.
|