Package | Description |
---|---|
org.basex.query |
XQuery implementation.
|
org.basex.query.ann | |
org.basex.query.expr |
XQuery expressions.
|
org.basex.query.expr.path |
XQuery path expressions.
|
org.basex.query.func |
XQuery functions.
|
org.basex.query.func.http |
HTTP Functions.
|
org.basex.query.up | |
org.basex.query.up.primitives.node | |
org.basex.query.util.hash |
Query processor, hash structures.
|
org.basex.query.value.array | |
org.basex.query.value.item | |
org.basex.query.value.map | |
org.basex.query.value.node | |
org.basex.query.value.type | |
org.basex.query.var |
Modifier and Type | Field and Description |
---|---|
QNm |
StaticDecl.name
This declaration's name.
|
QNm |
LibraryModule.name
Library name.
|
Modifier and Type | Method and Description |
---|---|
QNm |
QueryException.qname()
Returns the error name.
|
QNm |
QueryError.qname()
Returns the namespace URI of this error.
|
Modifier and Type | Method and Description |
---|---|
boolean |
QueryError.eq(QNm name)
Checks if the error code equals the specified QName.
|
Constructor and Description |
---|
QueryException(InputInfo info,
QNm name,
String message,
Object... ext)
Constructor, specifying the error code and message as string.
|
StaticDecl(StaticContext sc,
AnnList anns,
QNm name,
SeqType type,
VarScope scope,
String doc,
InputInfo info)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Annotation |
Annotation.get(QNm name)
Returns an annotation with the specified name.
|
Modifier and Type | Field and Description |
---|---|
static QNm[] |
Catch.NAMES
Error QNames.
|
Modifier and Type | Method and Description |
---|---|
QNm |
XQFunctionExpr.argName(int pos)
Name of the argument at the given position.
|
QNm |
XQFunctionExpr.funcName()
Name of this function,
null means anonymous function. |
protected QNm |
ParseExpr.toQNm(Expr ex,
QueryContext qc,
boolean empty)
Checks if the specified expression yields a QName.
|
protected QNm |
ParseExpr.toQNm(Item it,
boolean empty)
Checks if the specified item is a QName.
|
Constructor and Description |
---|
DBPragma(QNm n,
Option<?> o,
byte[] v)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
QNm |
Test.name
Name test.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NameTest.eq(QNm nm)
Checks if the specified name matches the test.
|
Constructor and Description |
---|
NameTest(QNm name,
Test.Kind kind,
boolean attr,
byte[] elemNS)
Constructor.
|
NodeTest(NodeType nt,
QNm nm)
Constructor.
|
NodeTest(NodeType type,
QNm name,
Type ext,
boolean strip)
Constructor.
|
NodeTest(QNm nm)
Convenience constructor for element tests.
|
Modifier and Type | Field and Description |
---|---|
static QNm |
FuncOptions.Q_SPARAM
QName.
|
Modifier and Type | Method and Description |
---|---|
QNm |
StaticFunc.argName(int pos) |
QNm |
Closure.argName(int pos) |
QNm |
StaticFunc.funcName() |
QNm |
Closure.funcName() |
Modifier and Type | Method and Description |
---|---|
StaticFunc |
StaticFuncs.declare(AnnList anns,
QNm nm,
Var[] args,
SeqType type,
Expr expr,
StaticContext sc,
VarScope scope,
String doc,
InputInfo ii)
Declares a new user-defined function.
|
static TypedFunc |
Functions.get(QNm name,
Expr[] args,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Returns a function with the specified name and number of arguments,
or
null . |
StandardFunc |
Functions.get(QNm name,
Expr[] args,
StaticContext sc,
InputInfo ii)
Returns the specified function.
|
StaticFunc |
StaticFuncs.get(QNm name,
int arity,
InputInfo ii,
boolean error)
Returns the function with the given name and arity.
|
static Expr |
Functions.getLiteral(QNm name,
int arity,
QueryContext qc,
StaticContext sc,
InputInfo ii,
boolean runtime)
Gets a function literal for a known function.
|
QueryException |
StaticFuncs.similarError(QNm name,
InputInfo ii)
Throws an exception if the name of a function is similar to the specified function name.
|
protected <E extends Options> |
StandardFunc.toOptions(int i,
QNm qnm,
E opts,
QueryContext qc)
Parses the options at the specified index.
|
static Closure |
Closure.unknownLit(QNm name,
int arity,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Creates a function literal for a function that was not yet encountered while parsing.
|
Constructor and Description |
---|
StaticFuncCall(QNm name,
Expr[] args,
StaticContext sc,
InputInfo info)
Function call constructor.
|
Modifier and Type | Field and Description |
---|---|
static QNm |
HttpText.Q_BODY
QName.
|
static QNm |
HttpText.Q_HEADER
QName.
|
static QNm |
HttpText.Q_MULTIPART
QName.
|
static QNm |
HttpText.Q_RESPONSE
QName.
|
Modifier and Type | Method and Description |
---|---|
void |
NamePool.add(QNm name,
NodeType type)
Adds an entry to the pool and increases its number of occurrence.
|
Constructor and Description |
---|
RenameNode(int pre,
Data data,
InputInfo ii,
QNm name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
QNm |
QNmMap.index(byte[] prefix,
byte[] local,
byte[] uri)
Creates a QName for the specified key, or returns an existing one.
|
Modifier and Type | Method and Description |
---|---|
QNm |
Array.argName(int pos) |
QNm |
Array.funcName() |
Modifier and Type | Method and Description |
---|---|
QNm |
FuncItem.argName(int ps) |
QNm |
FuncItem.funcName() |
static QNm |
QNm.get(byte[] local)
Returns a cached QName with the specified local name.
|
static QNm |
QNm.get(byte[] local,
byte[] uri)
Returns a cached QName with the specified local name and uri.
|
static QNm |
QNm.get(byte[] prefix,
byte[] local,
byte[] uri)
Returns a cached QName with the specified prefix, local name and uri.
|
static QNm |
QNm.get(byte[] prefix,
String local,
byte[] uri)
Returns a cached QName with the specified prefix, local name and uri.
|
static QNm |
QNm.get(String local)
Returns a cached QName with the specified local name.
|
static QNm |
QNm.get(String local,
byte[] uri)
Returns a cached QName with the specified local name and uri.
|
static QNm |
QNm.get(String prefix,
String local,
String uri)
Returns a cached QName with the specified prefix, local name and uri.
|
static QNm |
QNm.resolve(byte[] name,
byte[] def,
StaticContext sc,
InputInfo info)
Resolves a QName string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
QNm.eq(QNm n)
Compares the specified item.
|
Constructor and Description |
---|
FuncItem(StaticContext sc,
AnnList anns,
QNm name,
Var[] params,
FuncType type,
Expr expr,
int stackSize)
Constructor.
|
FuncItem(StaticContext sc,
AnnList anns,
QNm name,
Var[] params,
FuncType type,
Expr expr,
Value ctxValue,
long pos,
long size,
int stackSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
QNm |
Map.argName(int pos) |
QNm |
Map.funcName() |
Modifier and Type | Method and Description |
---|---|
QNm |
FPI.qname() |
QNm |
FNames.qname() |
QNm |
FElem.qname() |
QNm |
FAttr.qname() |
QNm |
DBNode.qname() |
QNm |
ANode.qname()
Returns the QName of the node.
|
QNm |
FNode.qname(QNm nm) |
QNm |
DBNode.qname(QNm name) |
abstract QNm |
ANode.qname(QNm nm)
Updates the specified with the information of the current node.
|
Modifier and Type | Method and Description |
---|---|
FElem |
FElem.add(QNm nm,
byte[] val)
Adds an attribute and updates its parent reference.
|
FElem |
FElem.add(QNm nm,
String val)
Adds an attribute and updates its parent reference.
|
byte[] |
ANode.attribute(QNm name)
Returns the value of the specified attribute or
null . |
QNm |
FNode.qname(QNm nm) |
QNm |
DBNode.qname(QNm name) |
abstract QNm |
ANode.qname(QNm nm)
Updates the specified with the information of the current node.
|
Constructor and Description |
---|
FAttr(QNm name,
byte[] value)
Default constructor.
|
FElem(QNm name)
Constructor for creating an element.
|
FElem(QNm name,
Atts ns,
ANodeList children,
ANodeList atts)
Constructor for creating an element with nodes, attributes and
namespace declarations.
|
FPI(QNm name,
byte[] value)
Constructor for creating a processing instruction.
|
Modifier and Type | Field and Description |
---|---|
QNm |
AtomType.name
Name.
|
Modifier and Type | Method and Description |
---|---|
static NodeType |
NodeType.find(QNm type)
Finds and returns the specified node type.
|
static ListType |
ListType.find(QNm type)
Finds and returns the specified type.
|
static Type |
FuncType.find(QNm type)
Finds and returns the specified function type.
|
static AtomType |
AtomType.find(QNm type,
boolean all)
Finds and returns the specified type.
|
Modifier and Type | Field and Description |
---|---|
QNm |
Var.name
Variable name.
|
Modifier and Type | Method and Description |
---|---|
StaticVar |
Variables.declare(QNm nm,
SeqType type,
AnnList anns,
Expr expr,
boolean ext,
StaticContext sc,
VarScope scope,
String doc,
InputInfo ii)
Declares a new static variable.
|
Var |
VarStack.get(QNm name)
Returns a variable with the specified name; should only be
used while parsing because it ignores ids of variables.
|
Var |
VarScope.newLocal(QueryContext qc,
QNm name,
SeqType typ,
boolean param)
Creates a new local variable in this scope.
|
org.basex.query.var.StaticVarRef |
Variables.newRef(QNm nm,
StaticContext sc,
InputInfo ii)
Returns a new reference to the (possibly not yet declared) variable with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
Variables.bindExternal(QueryContext qc,
HashMap<QNm,Value> bindings)
Binds all external variables.
|
Copyright © 2005–2015 BaseX Team. All rights reserved.