|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.ParseExpr
org.basex.query.expr.Arr
org.basex.query.func.StaticFuncCall
public abstract class StaticFuncCall
Function call for user-defined functions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary | |
---|---|
protected StaticContext |
sc
Static context of this function call. |
Fields inherited from class org.basex.query.expr.Arr |
---|
expr |
Fields inherited from class org.basex.query.expr.ParseExpr |
---|
info, size, type |
Method Summary | |
---|---|
boolean |
accept(ASTVisitor visitor)
Traverses this expression, notifying the visitor of declared and used variables, and checking the tree for other recursive properties. |
Expr |
compile(QueryContext ctx,
VarScope scp)
Compiles and optimizes the expression, assigns data types and cardinalities. |
BaseFuncCall |
copy(QueryContext ctx,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression. |
java.lang.String |
description()
Returns a string description of the expression. |
StaticFunc |
func()
Getter for the called function. |
boolean |
has(Expr.Flag flag)
Indicates if an expression has the specified compiler property. |
StaticFuncCall |
init(StaticFunc f)
Initializes the function and checks for visibility. |
boolean |
isVacuous()
Tests if this is a vacuous expression (empty sequence or error function). |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
void |
plan(FElem plan)
Creates an expression tree. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.expr.Arr |
---|
allAreValues, checkNoUp, checkUp, copyAll, count, exprSize, indexEquivalent, inline, removable, toString |
Methods inherited from class org.basex.query.expr.ParseExpr |
---|
checkAdmin, checkAllUp, checkBinary, checkBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkFunc, checkItem, checkItr, checkItr, checkMap, checkNode, checkNode, checkNode, checkNoEmpty, checkNoneUp, checkNoUp, checkQNm, checkStr, checkStr, checkStrBin, checkType, checkWrite, compBln, copyType, ebv, item, optPre, preEval, size, test, type, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isItem, isValue, iterable, markTailCalls, optimize, sameAs, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final StaticContext sc
Method Detail |
---|
public Expr compile(QueryContext ctx, VarScope scp) throws QueryException
Expr
compile
in class Arr
ctx
- query contextscp
- variable scope
QueryException
- query exceptionpublic final Iter iter(QueryContext ctx) throws QueryException
Expr
Expr.item(org.basex.query.QueryContext, org.basex.util.InputInfo)
must be implemented
by an expression, as it may be called by this method.
iter
in class ParseExpr
ctx
- query context
QueryException
- query exceptionpublic final BaseFuncCall copy(QueryContext ctx, VarScope scp, IntObjMap<Var> vs)
Expr
copy
in class Expr
ctx
- query contextscp
- variable scope for creating new variablesvs
- mapping from old variable IDs to new variable copies
public StaticFuncCall init(StaticFunc f) throws QueryException
f
- function reference
QueryException
- query exceptionpublic final StaticFunc func()
public final boolean isVacuous()
Expr
isVacuous
in class Expr
public boolean has(Expr.Flag flag)
Expr
Expr.compile(org.basex.query.QueryContext, org.basex.query.var.VarScope)
methods to test properties of sub-expressions.
It returns true
if at least one test is successful.
has
in class Arr
flag
- flag to be found
public final void plan(FElem plan)
ExprInfo
plan
in class Arr
plan
- root elementpublic java.lang.String description()
ExprInfo
ExprInfo.toString()
method,
arguments are not included in the output.
description
in class ExprInfo
public java.lang.String toString()
toString
in class ExprInfo
public boolean accept(ASTVisitor visitor)
Expr
accept
in class Arr
visitor
- visitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |