Package | Description |
---|---|
org.basex.io.serial | |
org.basex.query |
XQuery implementation.
|
org.basex.query.expr |
XQuery expressions.
|
org.basex.query.expr.constr |
Constructor expressions.
|
org.basex.query.func |
XQuery functions.
|
org.basex.query.up.expr | |
org.basex.query.util.collation |
Collation-specific code.
|
org.basex.query.value.item | |
org.basex.query.value.node | |
org.basex.query.value.type | |
org.basex.query.var |
Modifier and Type | Method and Description |
---|---|
void |
SerializerOptions.parse(String name,
byte[] val,
StaticContext sc,
InputInfo info)
Parses options.
|
Modifier and Type | Field and Description |
---|---|
StaticContext |
StaticScope.sc
Static context.
|
StaticContext |
QueryProcessor.sc
Static context.
|
StaticContext |
QueryModule.staticContext
Static context.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryContext.bind(String name,
Object val,
String type,
StaticContext sc)
Binds a value to a global variable.
|
void |
QueryContext.bind(String name,
Value val,
StaticContext sc)
Binds a value to a global variable.
|
void |
QueryContext.context(Object val,
String type,
StaticContext sc)
Binds the context value, using the same rules as for
binding variables . |
void |
QueryContext.context(Value val,
StaticContext sc)
Binds the context value.
|
StaticScope |
QueryContext.parse(String query,
boolean library,
String path,
StaticContext sc)
Parses the specified query.
|
StaticScope |
QueryContext.parse(String query,
String path,
StaticContext sc)
Parses the specified query.
|
LibraryModule |
QueryContext.parseLibrary(String query,
String path,
StaticContext sc)
Parses the specified module.
|
MainModule |
QueryContext.parseMain(String query,
String path,
StaticContext sc)
Parses the specified query.
|
Constructor and Description |
---|
MainModule(Expr expr,
VarScope scope,
String doc,
StaticContext sc)
Constructor.
|
QueryParser(String query,
String path,
QueryContext qc,
StaticContext sc)
Constructor.
|
StaticDecl(StaticContext sc,
AnnList anns,
QNm name,
SeqType type,
VarScope scope,
String doc,
InputInfo info)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
CmpV.OpV.eval(Item it1,
Item it2,
Collation coll,
StaticContext sc,
InputInfo ii)
Evaluates the expression.
|
Constructor and Description |
---|
Cast(StaticContext sc,
InputInfo info,
Expr expr,
SeqType seqType)
Function constructor.
|
Castable(StaticContext sc,
InputInfo info,
Expr expr,
SeqType type)
Constructor.
|
CmpG(Expr expr1,
Expr expr2,
CmpG.OpG op,
Collation coll,
StaticContext sc,
InputInfo info)
Constructor.
|
CmpV(Expr expr1,
Expr expr2,
CmpV.OpV op,
Collation coll,
StaticContext sc,
InputInfo info)
Constructor.
|
TypeCheck(StaticContext sc,
InputInfo info,
Expr expr,
SeqType seqType,
boolean promote)
Constructor.
|
Constructor and Description |
---|
CAttr(StaticContext sc,
InputInfo info,
boolean comp,
Expr name,
Expr... values)
Constructor.
|
CComm(StaticContext sc,
InputInfo info,
Expr comment)
Constructor.
|
CDoc(StaticContext sc,
InputInfo info,
Expr expr)
Constructor.
|
CElem(StaticContext sc,
InputInfo info,
Expr name,
Atts nspaces,
Expr... cont)
Constructor.
|
CNSpace(StaticContext sc,
InputInfo info,
Expr name,
Expr value)
Constructor.
|
Constr(InputInfo info,
StaticContext sc)
Creates the children of the constructor.
|
CPI(StaticContext sc,
InputInfo info,
Expr name,
Expr value)
Constructor.
|
CTxt(StaticContext sc,
InputInfo info,
Expr text)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
StaticContext |
StandardFunc.sc
Static context.
|
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.
|
StandardFunc |
Function.get(StaticContext sc,
InputInfo info,
Expr... exprs)
Creates a new instance of the function.
|
static Expr |
Functions.getLiteral(QNm name,
int arity,
QueryContext qc,
StaticContext sc,
InputInfo ii,
boolean runtime)
Gets a function literal for a known function.
|
static FuncItem |
Functions.getUser(StaticFunc sf,
QueryContext qc,
StaticContext sc,
InputInfo info)
Returns a function item for a user-defined function.
|
static Value |
JavaMapping.toValue(Object obj,
QueryContext qc,
StaticContext sc)
Converts the specified result to an XQuery value.
|
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 |
---|
Closure(InputInfo info,
SeqType ret,
Var[] args,
Expr expr,
AnnList anns,
Map<Var,Expr> nonLocal,
StaticContext sc,
VarScope scope)
Constructor.
|
DynFuncCall(InputInfo info,
StaticContext sc,
boolean updating,
Expr expr,
Expr... arg)
Function constructor.
|
PartFunc(StaticContext sc,
InputInfo info,
Expr expr,
Expr[] args,
int[] holes)
Constructor.
|
StaticFuncCall(QNm name,
Expr[] args,
StaticContext sc,
InputInfo info)
Function call constructor.
|
Constructor and Description |
---|
Delete(StaticContext sc,
InputInfo info,
Expr trg)
Constructor.
|
Insert(StaticContext sc,
InputInfo info,
Expr src,
boolean first,
boolean last,
boolean before,
boolean after,
Expr trg)
Constructor.
|
Rename(StaticContext sc,
InputInfo info,
Expr trg,
Expr name)
Constructor.
|
Replace(StaticContext sc,
InputInfo info,
Expr trg,
Expr src,
boolean value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Collation |
Collation.get(byte[] uri,
QueryContext qc,
StaticContext sc,
InputInfo info,
QueryError err)
Returns a collation instance for the specified uri.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Uln.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
QNm.eq(Item item,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Jav.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
abstract boolean |
Item.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii)
Checks the items for equality.
|
boolean |
Int.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Hex.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Flt.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
FItem.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Dur.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Dec.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Dbl.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Bln.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
B64.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
Atm.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
AStr.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
boolean |
ADate.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
static QNm |
QNm.resolve(byte[] name,
byte[] def,
StaticContext sc,
InputInfo info)
Resolves a QName string.
|
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.
|
QNm(byte[] name,
StaticContext sc)
Constructor, binding a statically known namespace.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ANode.eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii) |
Atts |
ANode.nsScope(StaticContext sc)
Returns a copy of the namespace hierarchy.
|
Modifier and Type | Method and Description |
---|---|
Value |
Type.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts the specified item to this item type.
|
Item |
NodeType.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Map |
MapType.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
ListType.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
FItem |
FuncType.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Item |
AtomType.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Array |
ArrayType.cast(Item item,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
SeqType.cast(Item it,
QueryContext qc,
StaticContext sc,
InputInfo info,
boolean error)
Tries to cast the given item to this sequence type.
|
Value |
Type.cast(Object value,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts the specified Java value to this item type.
|
Item |
NodeType.cast(Object value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
ListType.cast(Object value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Item |
FuncType.cast(Object value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Item |
AtomType.cast(Object value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
SeqType.cast(Value val,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts a sequence to this type.
|
Value |
Type.castString(String value,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Casts the specified string to this item type.
|
Item |
NodeType.castString(String value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Value |
ListType.castString(String value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Item |
FuncType.castString(String string,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
Item |
AtomType.castString(String value,
QueryContext qc,
StaticContext sc,
InputInfo ii) |
void |
SeqType.promote(QueryContext qc,
StaticContext sc,
InputInfo ii,
Item item,
boolean opt,
ValueBuilder vb)
Promotes an item to the type of this sequence type.
|
Value |
SeqType.promote(QueryContext qc,
StaticContext sc,
InputInfo ii,
Value value,
boolean opt)
Promotes a value to the type of this sequence type.
|
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.
|
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.
|
Constructor and Description |
---|
VarScope(StaticContext sc)
Constructor for a top-level module.
|
Copyright © 2005–2015 BaseX Team. All rights reserved.