|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.InputParser
org.basex.query.QueryParser
org.basex.query.QuerySuggest
public final class QuerySuggest
This class analyzes the current path and gives suggestions for code completions.
Field Summary |
---|
Fields inherited from class org.basex.query.QueryParser |
---|
funcs, modules, namespaces, vars |
Fields inherited from class org.basex.util.InputParser |
---|
file, input, length, mark, pos |
Constructor Summary | |
---|---|
QuerySuggest(java.lang.String q,
QueryContext c,
Data d)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.basex.query.QueryParser |
---|
module, parseLibrary, parseMain |
Methods inherited from class org.basex.util.InputParser |
---|
consume, consume, consume, curr, curr, file, found, info, mark, more, next, quote, rest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuerySuggest(java.lang.String q, QueryContext c, Data d) throws QueryException
q
- queryc
- query contextd
- data reference
QueryException
- query exceptionMethod Detail |
---|
public StringList complete()
protected void checkInit()
QueryParser
checkInit
in class QueryParser
protected void checkAxis(Axis axis)
QueryParser
checkAxis
in class QueryParser
axis
- axisprotected void checkTest(Test test, boolean attr)
QueryParser
checkTest
in class QueryParser
test
- node testattr
- attribute flagprotected void checkPred(boolean open)
QueryParser
checkPred
in class QueryParser
open
- open flagpublic QueryException error(Err err, java.lang.Object... arg) throws QueryException
QueryParser
error
in class QueryParser
err
- error to be thrownarg
- error arguments
QueryException
- query exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |