|
||||||||||
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.parse.CommandParser
public final class CommandParser
This is a parser for command strings, creating Command
instances.
Several commands can be formulated in one string and separated by semicolons.
Field Summary | |
---|---|
org.basex.core.parse.CmdParser |
parser
Context. |
Fields inherited from class org.basex.util.InputParser |
---|
file, input, length, mark, pos |
Constructor Summary | |
---|---|
CommandParser(java.lang.String in,
Context c)
Constructor. |
Method Summary | |
---|---|
Command[] |
parse()
Parses the input and returns a command list. |
Command |
parseSingle()
Parses the input as single command and returns the resulting command. |
CommandParser |
pwReader(PasswordReader pr)
Attaches a password reader. |
Command[] |
suggest()
Parses the input and creates command completions on the way. |
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 |
Field Detail |
---|
public final org.basex.core.parse.CmdParser parser
Constructor Detail |
---|
public CommandParser(java.lang.String in, Context c)
in
- inputc
- contextMethod Detail |
---|
public CommandParser pwReader(PasswordReader pr)
pr
- password reader
public Command parseSingle() throws QueryException
QueryException
- query exceptionpublic Command[] parse() throws QueryException
QueryException
- query exceptionpublic Command[] suggest() throws QueryException
QueryException
- query exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |