|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.queryParser.standard.parser.StandardSyntaxParser
public class StandardSyntaxParser
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
StandardSyntaxParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.apache.lucene.queryParser.standard.parser.StandardSyntaxParserConstants |
---|
_ESCAPED_CHAR, _NUM_CHAR, _QUOTED_CHAR, _TERM_CHAR, _TERM_START_CHAR, _WHITESPACE, AND, Boost, CARAT, COLON, DEFAULT, EOF, FUZZY_SLOP, LPAREN, MINUS, NOT, NUMBER, OR, PLUS, QUOTED, RangeEx, RANGEEX_END, RANGEEX_GOOP, RANGEEX_QUOTED, RANGEEX_START, RANGEEX_TO, RangeIn, RANGEIN_END, RANGEIN_GOOP, RANGEIN_QUOTED, RANGEIN_START, RANGEIN_TO, RPAREN, TERM, tokenImage |
Constructor Summary | |
---|---|
StandardSyntaxParser()
|
|
StandardSyntaxParser(InputStream stream)
Constructor with InputStream. |
|
StandardSyntaxParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
StandardSyntaxParser(Reader stream)
Constructor. |
|
StandardSyntaxParser(StandardSyntaxParserTokenManager tm)
Constructor with generated Token Manager. |
Method Summary | |
---|---|
QueryNode |
Clause(CharSequence field)
|
QueryNode |
ConjQuery(CharSequence field)
|
int |
Conjunction()
|
void |
disable_tracing()
Disable tracing. |
QueryNode |
DisjQuery(CharSequence field)
|
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
QueryNode |
ModClause(CharSequence field)
|
ModifierQueryNode.Modifier |
Modifiers()
|
QueryNode |
parse(CharSequence query,
CharSequence field)
Parses a query string, returning a QueryNode . |
QueryNode |
Query(CharSequence field)
|
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
void |
ReInit(StandardSyntaxParserTokenManager tm)
Reinitialise. |
QueryNode |
Term(CharSequence field)
|
QueryNode |
TopLevelQuery(CharSequence field)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public StandardSyntaxParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public StandardSyntaxParser()
public StandardSyntaxParser(InputStream stream)
public StandardSyntaxParser(InputStream stream, String encoding)
public StandardSyntaxParser(Reader stream)
public StandardSyntaxParser(StandardSyntaxParserTokenManager tm)
Method Detail |
---|
public QueryNode parse(CharSequence query, CharSequence field) throws QueryNodeParseException
QueryNode
.
parse
in interface SyntaxParser
query
- the query string to be parsed.field
- - default field name
ParseException
- if the parsing fails
QueryNodeParseException
public final int Conjunction() throws ParseException
ParseException
public final ModifierQueryNode.Modifier Modifiers() throws ParseException
ParseException
public final QueryNode TopLevelQuery(CharSequence field) throws ParseException
ParseException
public final QueryNode Query(CharSequence field) throws ParseException
ParseException
public final QueryNode DisjQuery(CharSequence field) throws ParseException
ParseException
public final QueryNode ConjQuery(CharSequence field) throws ParseException
ParseException
public final QueryNode ModClause(CharSequence field) throws ParseException
ParseException
public final QueryNode Clause(CharSequence field) throws ParseException
ParseException
public final QueryNode Term(CharSequence field) throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(StandardSyntaxParserTokenManager 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 |