Constructor and Description |
---|
Variables() |
Modifier and Type | Method and Description |
---|---|
void |
bindExternal(QueryContext qc,
HashMap<QNm,Value> bindings)
Binds all external variables.
|
void |
check()
Checks if all variables were declared and are visible to all their references.
|
void |
checkUp()
Checks if none of the variables contains an updating expression.
|
StaticVar |
declare(QNm nm,
SeqType type,
AnnList anns,
Expr expr,
boolean ext,
StaticContext sc,
VarScope scope,
String doc,
InputInfo ii)
Declares a new static variable.
|
Iterator<StaticVar> |
iterator() |
org.basex.query.var.StaticVarRef |
newRef(QNm nm,
StaticContext sc,
InputInfo ii)
Returns a new reference to the (possibly not yet declared) variable with the given name.
|
void |
plan(FElem plan)
Creates an expression tree.
|
String |
toString() |
addPlan, addPlan, description, planAttr, planElem, toErrorString
public StaticVar declare(QNm nm, SeqType type, AnnList anns, Expr expr, boolean ext, StaticContext sc, VarScope scope, String doc, InputInfo ii) throws QueryException
nm
- variable nametype
- declared typeanns
- annotationsexpr
- bound expression, possibly null
ext
- external
flagsc
- static contextscope
- variable scopedoc
- current xqdoc cacheii
- input infoQueryException
- query exceptionpublic void checkUp() throws QueryException
QueryException
- query exceptionpublic void check() throws QueryException
QueryException
- query exceptionpublic void plan(FElem plan)
ExprInfo
public org.basex.query.var.StaticVarRef newRef(QNm nm, StaticContext sc, InputInfo ii) throws QueryException
ii
- input infonm
- variable namesc
- static contextQueryException
- if the variable is not visiblepublic void bindExternal(QueryContext qc, HashMap<QNm,Value> bindings) throws QueryException
qc
- query contextbindings
- variable bindingsQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.