org.basex.core
Class CommandParser
java.lang.Object
org.basex.util.InputParser
org.basex.core.CommandParser
public final class CommandParser
- extends InputParser
This is a parser for command strings, creating Process instances.
Several commands can be formulated in one string and separated by semicolons.
- Author:
- Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen
|
Constructor Summary |
CommandParser(java.lang.String in,
Context c)
Constructor, parsing the input queries. |
CommandParser(java.lang.String in,
Context c,
boolean i)
Constructor, parsing internal commands. |
|
Method Summary |
void |
error(StringList comp,
java.lang.String m,
java.lang.Object... e)
Throws an error. |
Process[] |
parse()
Parses the input and returns a command list. |
| Methods inherited from class org.basex.util.InputParser |
consume, consume, consumeWS, curr, curr, ent, found, init, invalidEnt, mark, more, next, quote, rest, valid |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandParser
public CommandParser(java.lang.String in,
Context c)
- Constructor, parsing the input queries.
- Parameters:
in - query inputc - context
CommandParser
public CommandParser(java.lang.String in,
Context c,
boolean i)
- Constructor, parsing internal commands.
- Parameters:
in - query inputc - contexti - flag for including the parsing of internal commands
parse
public Process[] parse()
throws QueryException
- Parses the input and returns a command list.
- Returns:
- commands
- Throws:
QueryException - query exception
error
public void error(StringList comp,
java.lang.String m,
java.lang.Object... e)
throws QueryException
- Throws an error.
- Parameters:
comp - input completionsm - messagee - extension
- Throws:
QueryException - query exception