|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.queryParser.surround.parser.QueryParser
public class QueryParser
This class is generated by JavaCC. The only method that clients should need to call is parse().
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
QueryParserTokenManager |
token_source
Generated Token Manager. |
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 | |
---|---|
QueryParser()
|
|
QueryParser(CharStream stream)
Constructor with user supplied CharStream. |
|
QueryParser(QueryParserTokenManager tm)
Constructor with generated Token Manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public QueryParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public QueryParser()
public QueryParser(CharStream stream)
public QueryParser(QueryParserTokenManager tm)
Method Detail |
---|
public static SrndQuery parse(String query) throws ParseException
ParseException
public SrndQuery parse2(String query) throws ParseException
ParseException
protected SrndQuery getFieldsQuery(SrndQuery q, ArrayList<String> fieldNames)
protected SrndQuery getOrQuery(List<SrndQuery> queries, boolean infix, Token orToken)
protected SrndQuery getAndQuery(List<SrndQuery> queries, boolean infix, Token andToken)
protected SrndQuery getNotQuery(List<SrndQuery> queries, Token notToken)
protected static int getOpDistance(String distanceOp)
protected static void checkDistanceSubQueries(DistanceQuery distq, String opName) throws ParseException
ParseException
protected SrndQuery getDistanceQuery(List<SrndQuery> queries, boolean infix, Token dToken, boolean ordered) throws ParseException
ParseException
protected SrndQuery getTermQuery(String term, boolean quoted)
protected boolean allowedSuffix(String suffixed)
protected SrndQuery getPrefixQuery(String prefix, boolean quoted)
protected boolean allowedTruncation(String truncated)
protected SrndQuery getTruncQuery(String truncated)
public final SrndQuery TopSrndQuery() throws ParseException
ParseException
public final SrndQuery FieldsQuery() throws ParseException
ParseException
public final ArrayList<String> OptionalFields() throws ParseException
ParseException
public final SrndQuery OrQuery() throws ParseException
ParseException
public final SrndQuery AndQuery() throws ParseException
ParseException
public final SrndQuery NotQuery() throws ParseException
ParseException
public final SrndQuery NQuery() throws ParseException
ParseException
public final SrndQuery WQuery() throws ParseException
ParseException
public final SrndQuery PrimaryQuery() throws ParseException
ParseException
public final SrndQuery PrefixOperatorQuery() throws ParseException
ParseException
public final List<SrndQuery> FieldsQueryList() throws ParseException
ParseException
public final SrndQuery SimpleTerm() throws ParseException
ParseException
public final void OptionalWeights(SrndQuery q) throws ParseException
ParseException
public void ReInit(CharStream stream)
public void ReInit(QueryParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |