public class QueryParser extends InputParser
Modifier and Type | Field and Description |
---|---|
ArrayList<StaticFunc> |
funcs
Parsed functions.
|
ArrayList<org.basex.query.QueryParser.ModInfo> |
mods
List of modules to be parsed.
|
TokenSet |
modules
Modules loaded by the current file.
|
TokenMap |
namespaces
Namespaces.
|
ArrayList<StaticVar> |
vars
Parsed variables.
|
Constructor and Description |
---|
QueryParser(String query,
String path,
QueryContext qc,
StaticContext sc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
module(byte[] path,
byte[] uri)
Parses the specified module, checking function and variable references at the end.
|
LibraryModule |
parseLibrary(boolean check)
Parses a library module.
|
MainModule |
parseMain()
Parses a main module.
|
public final TokenSet modules
public final ArrayList<org.basex.query.QueryParser.ModInfo> mods
public final ArrayList<StaticFunc> funcs
public final TokenMap namespaces
public QueryParser(String query, String path, QueryContext qc, StaticContext sc) throws QueryException
query
- query stringpath
- file path (if null
, MainOptions.QUERYPATH
will be assigned)qc
- query contextsc
- static contextQueryException
- query exceptionpublic final MainModule parseMain() throws QueryException
QueryException
- query exceptionpublic final LibraryModule parseLibrary(boolean check) throws QueryException
check
- if functions and variables should be checkedQueryException
- query exceptionpublic void module(byte[] path, byte[] uri) throws QueryException
path
- file pathuri
- module uriQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.