|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.InputParser
org.basex.core.CommandParser
public final class CommandParser
This is a parser for command strings, creating Proc
instances.
Several commands can be formulated in one string and separated by semicolons.
Field Summary |
---|
Fields inherited from class org.basex.util.InputParser |
---|
file, ql, qm, qp, qu |
Constructor Summary | |
---|---|
CommandParser(String in,
Context c)
Constructor, parsing the input queries. |
|
CommandParser(String in,
Context c,
boolean i)
Constructor, parsing internal commands. |
Method Summary | |
---|---|
void |
error(StringList comp,
String m,
Object... e)
Throws an error. |
StringList |
list(Enum<?>[] comp)
Converts the specified commands into a string list. |
Proc[] |
parse()
Parses the input and returns a command list. |
Methods inherited from class org.basex.util.InputParser |
---|
init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandParser(String in, Context c)
in
- query inputc
- contextpublic CommandParser(String in, Context c, boolean i)
in
- query inputc
- contexti
- internal flagMethod Detail |
---|
public Proc[] parse() throws QueryException
QueryException
- query exceptionpublic void error(StringList comp, String m, Object... e) throws QueryException
comp
- input completionsm
- messagee
- extension
QueryException
- query exceptionpublic StringList list(Enum<?>[] comp)
comp
- input completions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |