| Package | Description |
|---|---|
| org.basex.query |
XQuery implementation.
|
| org.basex.query.expr |
XQuery expressions.
|
| org.basex.query.flwor | |
| org.basex.query.ft |
XQuery Full Text expressions.
|
| org.basex.query.func |
XQuery functions.
|
| org.basex.query.item |
XQuery data types.
|
| org.basex.query.path |
XQuery path expressions.
|
| org.basex.query.up.expr | |
| org.basex.query.util |
XQuery utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
Var |
QueryContext.uniqueVar(InputInfo ii,
SeqType type)
Creates a variable with a unique, non-clashing variable name.
|
| Modifier and Type | Field and Description |
|---|---|
Var |
VarRef.var
Variable name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Arr.count(Var v) |
abstract int |
Expr.count(Var v)
Counts how often the specified variable is used by an expression.
|
int |
Preds.count(Var v) |
int |
Try.count(Var v) |
int |
Quantifier.count(Var v) |
int |
VarRef.count(Var v) |
int |
TypeSwitch.count(Var v) |
int |
Filter.count(Var v) |
int |
Single.count(Var v) |
int |
CName.count(Var v) |
int |
Switch.count(Var v) |
int |
Simple.count(Var v) |
boolean |
Arr.removable(Var v) |
abstract boolean |
Expr.removable(Var v)
Checks if the specified variable is replaceable by a context item.
|
boolean |
Preds.removable(Var v) |
boolean |
Try.removable(Var v) |
boolean |
Quantifier.removable(Var v) |
boolean |
Context.removable(Var v) |
boolean |
VarRef.removable(Var v) |
boolean |
TypeSwitch.removable(Var v) |
boolean |
Filter.removable(Var v) |
boolean |
Single.removable(Var v) |
boolean |
Switch.removable(Var v) |
boolean |
Simple.removable(Var v) |
Expr |
Arr.remove(Var v) |
abstract Expr |
Expr.remove(Var v)
|
Expr |
Preds.remove(Var v) |
Expr |
Try.remove(Var v) |
Expr |
Quantifier.remove(Var v) |
Expr |
VarRef.remove(Var v) |
Expr |
TypeSwitch.remove(Var v) |
Expr |
Filter.remove(Var v) |
Expr |
Single.remove(Var v) |
Expr |
CName.remove(Var v) |
Expr |
Switch.remove(Var v) |
Expr |
Simple.remove(Var v) |
| Constructor and Description |
|---|
TypeCase(InputInfo ii,
Var v,
Expr r)
Constructor.
|
VarRef(InputInfo ii,
Var v)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
Var |
Group.Spec.grp
Grouping variable.
|
Var |
ForLet.var
Variable.
|
| Modifier and Type | Method and Description |
|---|---|
Var[] |
Let.vars() |
Var[] |
For.vars() |
abstract Var[] |
ForLet.vars()
Gathers all variables declared by this clause.
|
| Modifier and Type | Method and Description |
|---|---|
int |
OrderByExpr.count(Var v) |
int |
OrderByStable.count(Var v) |
int |
Order.count(Var v) |
int |
Group.count(Var v) |
int |
GFLWOR.count(Var v) |
boolean |
Let.declares(Var v) |
boolean |
For.declares(Var v) |
abstract boolean |
ForLet.declares(Var v)
Checks if the given variable is declared by this clause.
|
boolean |
OrderByExpr.removable(Var v) |
boolean |
OrderByStable.removable(Var v) |
boolean |
Order.removable(Var v) |
boolean |
Group.removable(Var v) |
boolean |
GFLWOR.removable(Var v) |
OrderByExpr |
OrderByExpr.remove(Var v) |
Order |
Order.remove(Var v) |
Expr |
Group.remove(Var v) |
OrderBy |
OrderBy.remove(Var v) |
Expr |
GFLWOR.remove(Var v) |
| Constructor and Description |
|---|
For(InputInfo ii,
Expr e,
Var v)
Constructor.
|
For(InputInfo ii,
Expr e,
Var v,
Var p,
Var s)
Constructor.
|
Group.Spec(InputInfo ii,
Var gv,
Expr e)
Constructor.
|
Group(InputInfo ii,
Group.Spec[] gb,
Var[][] ng)
Constructor.
|
Let(InputInfo ii,
Expr e,
Var v)
Constructor.
|
Let(InputInfo ii,
Expr e,
Var v,
boolean s)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
FTWords.count(Var v) |
int |
FTWeight.count(Var v) |
int |
FTDistance.count(Var v) |
int |
FTContains.count(Var v) |
int |
FTWindow.count(Var v) |
int |
FTIndexAccess.count(Var v) |
int |
FTExpr.count(Var v) |
boolean |
FTWords.removable(Var v) |
boolean |
FTWeight.removable(Var v) |
boolean |
FTDistance.removable(Var v) |
boolean |
FTContains.removable(Var v) |
boolean |
FTWindow.removable(Var v) |
boolean |
FTIndexAccess.removable(Var v) |
boolean |
FTExpr.removable(Var v) |
FTExpr |
FTWords.remove(Var v) |
FTExpr |
FTWeight.remove(Var v) |
FTExpr |
FTDistance.remove(Var v) |
Expr |
FTContains.remove(Var v) |
FTExpr |
FTWindow.remove(Var v) |
Expr |
FTIndexAccess.remove(Var v) |
FTExpr |
FTExpr.remove(Var v) |
| Modifier and Type | Field and Description |
|---|---|
Var[] |
UserFunc.args
Arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
InlineFunc.removable(Var v) |
Expr |
InlineFunc.remove(Var v) |
| Constructor and Description |
|---|
InlineFunc(InputInfo ii,
SeqType r,
Var[] v,
Expr e,
Ann a)
Constructor.
|
PartFunc(InputInfo ii,
Expr func,
Var[] arg)
Function constructor for dynamic calls.
|
PartFunc(InputInfo ii,
TypedFunc fun,
Var[] arg)
Function constructor for static calls.
|
UserFunc(InputInfo ii,
QNm n,
Var[] v,
SeqType r,
Ann a)
Function constructor.
|
UserFunc(InputInfo ii,
QNm n,
Var[] v,
SeqType r,
Ann a,
boolean d)
Function constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Var[] |
FuncType.type(Var[] vars)
Sets the types of the given variables.
|
| Modifier and Type | Method and Description |
|---|---|
int |
FuncItem.count(Var v) |
int |
Value.count(Var v) |
boolean |
Value.removable(Var v) |
Expr |
Value.remove(Var v) |
Var[] |
FuncType.type(Var[] vars)
Sets the types of the given variables.
|
| Constructor and Description |
|---|
FuncItem(QNm n,
Var[] arg,
Expr body,
FuncType t,
boolean cst)
Constructor.
|
FuncItem(Var[] arg,
Expr body,
FuncType t,
VarStack cl,
boolean cst)
Constructor for anonymous functions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Path.count(Var v) |
int |
AxisPath.count(Var v) |
int |
MixedPath.count(Var v) |
boolean |
Path.removable(Var v) |
boolean |
AxisPath.removable(Var v) |
boolean |
MixedPath.removable(Var v) |
Expr |
Path.remove(Var v) |
Expr |
AxisPath.remove(Var v) |
Expr |
MixedPath.remove(Var v) |
| Modifier and Type | Method and Description |
|---|---|
int |
Transform.count(Var v) |
boolean |
Transform.removable(Var v) |
Expr |
Transform.remove(Var v) |
| Modifier and Type | Field and Description |
|---|---|
Var[] |
VarStack.vars
Variable expressions.
|
| Modifier and Type | Method and Description |
|---|---|
Var |
Var.bind(Expr e,
QueryContext ctx)
Binds the specified expression to the variable.
|
Var |
Var.bind(Value v,
QueryContext ctx)
Binds the specified value to the variable.
|
Var |
Var.comp(QueryContext ctx) |
Var |
Var.copy()
Returns a copy of the variable.
|
static Var |
Var.create(QueryContext ctx,
InputInfo ii,
QNm n,
Ann a)
Creates a new variable.
|
static Var |
Var.create(QueryContext ctx,
InputInfo ii,
QNm n,
SeqType t,
Ann a)
Creates a new variable.
|
static Var |
Var.create(QueryContext ctx,
InputInfo ii,
QNm n,
Value v,
Ann a)
Creates a new variable.
|
Var |
VarContext.get(QNm var)
Returns a variable with the specified name.
|
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 |
VarContext.get(Var name)
Returns a variable instance with the same id.
|
Var |
VarStack.get(Var v)
Returns a variable with the same id.
|
Var |
Var.remove(Var v) |
| Modifier and Type | Method and Description |
|---|---|
void |
VarContext.add(Var v)
Adds a local variable.
|
void |
VarStack.add(Var v)
Adds the specified variable.
|
boolean |
VarStack.contains(Var v)
Checks if the given variable is in this list.
|
int |
Var.count(Var v) |
Var |
VarContext.get(Var name)
Returns a variable instance with the same id.
|
Var |
VarStack.get(Var v)
Returns a variable with the same id.
|
boolean |
Var.is(Var v)
Checks whether the given variable is identical to this one, i.e.
|
boolean |
Var.removable(Var v) |
Var |
Var.remove(Var v) |
void |
VarStack.update(Var v)
Adds or replaces the specified variable.
|
void |
VarContext.updateGlobal(Var v)
Adds or replaces a global variable.
|