Modifier and Type | Method and Description |
---|---|
abstract GFLWOR.Clause |
compile(QueryContext qc,
VarScope scp)
Compiles and optimizes the expression, assigns types and cardinalities.
|
abstract GFLWOR.Clause |
copy(QueryContext qc,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression.
|
boolean |
declares(Var var)
Checks if the given variable is declared by this clause.
|
abstract GFLWOR.Clause |
inline(QueryContext qc,
VarScope scp,
Var var,
Expr ex)
Inlines an expression into this one, replacing all references to the given variable.
|
Item |
item(QueryContext qc,
InputInfo ii)
Deprecated.
|
Iter |
iter(QueryContext qc)
Deprecated.
|
abstract GFLWOR.Clause |
optimize(QueryContext qc,
VarScope scp)
Optimizes an already compiled expression without recompiling its sub-expressions.
|
Value |
value(QueryContext qc)
Deprecated.
|
Var[] |
vars()
All declared variables of this clause.
|
atomItem, atomValue, checkAtomic, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, compBln, copyType, ctxValue, ebv, optPre, optPre, preEval, seqType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toEmptyNode, toEmptyToken, toFloat, toFunc, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNumber, toQNm, toQNm, toToken, toToken
accept, atomIter, checkUp, count, data, exprSize, has, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, isValue, iterable, markTailCalls, optimizeEbv, removable, sameAs, typeCheck, uses, visitAll
addPlan, addPlan, description, plan, planAttr, planElem, toErrorString, toString
public abstract GFLWOR.Clause compile(QueryContext qc, VarScope scp) throws QueryException
Expr
QueryContext.compile()
.compile
in class Expr
qc
- query contextscp
- variable scopeQueryException
- query exceptionpublic abstract GFLWOR.Clause optimize(QueryContext qc, VarScope scp) throws QueryException
Expr
optimize
in class Expr
qc
- query contextscp
- variable scopeQueryException
- query exceptionpublic abstract GFLWOR.Clause inline(QueryContext qc, VarScope scp, Var var, Expr ex) throws QueryException
Expr
GFLWOR.inlineLets(org.basex.query.QueryContext, org.basex.query.var.VarScope)
and For.toPredicate(org.basex.query.QueryContext, org.basex.query.var.VarScope, org.basex.query.expr.Expr)
,
and the variable reference is replaced in VarRef.inline(org.basex.query.QueryContext, org.basex.query.var.VarScope, org.basex.query.var.Var, org.basex.query.expr.Expr)
.inline
in class Expr
qc
- query context for reoptimizationscp
- variable scope for reoptimizationvar
- variable to replaceex
- expression to inlinenull
otherwiseQueryException
- query exception@Deprecated public Iter iter(QueryContext qc) throws QueryException
Expr
Expr.item(QueryContext, InputInfo)
must be implemented
by an expression, as it may be called by this method.iter
in class ParseExpr
qc
- query contextQueryException
- query exception@Deprecated public Value value(QueryContext qc) throws QueryException
Expr
value
in class ParseExpr
qc
- query contextQueryException
- query exception@Deprecated public Item item(QueryContext qc, InputInfo ii) throws QueryException
Expr
null
reference if the expression yields an empty sequence.
If this method is not overwritten, Expr.iter(QueryContext)
must be implemented by an
expression, as it may be called by this method.item
in class ParseExpr
qc
- query contextii
- input infonull
QueryException
- query exceptionpublic abstract GFLWOR.Clause copy(QueryContext qc, VarScope scp, IntObjMap<Var> vs)
Expr
public final Var[] vars()
public final boolean declares(Var var)
var
- variablefalse
otherwiseCopyright © 2005–2015 BaseX Team. All rights reserved.