public final class CommandParser extends InputParser
Command instances.
Several commands can be formulated in one string and separated by semicolons.| Constructor and Description |
|---|
CommandParser(java.lang.String in,
Context c)
Constructor, parsing the input queries.
|
| Modifier and Type | Method and Description |
|---|---|
Command[] |
parse()
Parses the input and returns a command list.
|
Command[] |
parse(boolean s)
Parses the input and returns a command list.
|
Command |
parseSingle()
Parses the input as single command and returns the result.
|
CommandParser |
password(PasswordReader pr)
Attaches a password reader.
|
public CommandParser(java.lang.String in,
Context c)
in - query inputc - contextpublic CommandParser password(PasswordReader pr)
pr - password readerpublic Command parseSingle() throws QueryException
QueryException - query exceptionpublic Command[] parse() throws QueryException
QueryException - query exceptionpublic Command[] parse(boolean s) throws QueryException
s - suggest flagQueryException - query exception