public final class QuerySuggest extends QueryParser
| Constructor and Description |
|---|
QuerySuggest(java.lang.String q,
QueryContext c,
Data d)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAxis(Axis axis)
Performs an optional axis check.
|
protected void |
checkInit()
Performs an optional check init.
|
protected void |
checkPred(boolean open)
Checks a predicate.
|
protected void |
checkTest(Test test,
boolean attr)
Performs an optional test check.
|
StringList |
complete()
Sorts and returns the query suggestions.
|
QueryException |
error(Err err,
java.lang.Object... arg)
Throws the specified error.
|
module, parsepublic QuerySuggest(java.lang.String q,
QueryContext c,
Data d)
throws QueryException
q - queryc - query contextd - data referenceQueryException - query exceptionpublic StringList complete()
protected void checkInit()
QueryParsercheckInit in class QueryParserprotected void checkAxis(Axis axis)
QueryParsercheckAxis in class QueryParseraxis - axisprotected void checkTest(Test test, boolean attr)
QueryParsercheckTest in class QueryParsertest - node testattr - attribute flagprotected void checkPred(boolean open)
QueryParsercheckPred in class QueryParseropen - open flagpublic QueryException error(Err err, java.lang.Object... arg) throws QueryException
QueryParsererror in class QueryParsererr - error to be thrownarg - error argumentsQueryException - query exception