Package org.basex.core.parse
Class CommandParser
java.lang.Object
org.basex.core.parse.CommandParser
This is a parser for command strings, creating
Command instances.
Several commands can be formulated in one string and separated by semicolons.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptionfinal CommandParserAttaches a base URI.static CommandParserConstructor.final Command[]parse()Parses the input and returns a command list.protected abstract voidParses the input and fills the command list.final CommandRestricts parsing to a single command.final CommandParserAttaches a password reader.final CommandParsersuggest()XQuery suggestions.
-
Method Details
-
get
Constructor.- Parameters:
input- inputctx- context- Returns:
- command parser
-
pwReader
Attaches a password reader.- Parameters:
pr- password reader- Returns:
- self reference
-
baseURI
Attaches a base URI.- Parameters:
base- base URI- Returns:
- self reference
-
suggest
XQuery suggestions.- Returns:
- self reference
-
parseSingle
Restricts parsing to a single command.- Returns:
- self reference
- Throws:
QueryException- query exception
-
parse
Parses the input and returns a command list.- Returns:
- commands
- Throws:
QueryException- query exception
-
parse
Parses the input and fills the command list.- Parameters:
cmds- container for created commands- Throws:
QueryException- query exception
-