|
||||||||||
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.Preds
org.basex.query.path.Step
public abstract class Step
Abstract axis step expression.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary | |
---|---|
Test |
test
Kind test. |
Fields inherited from class org.basex.query.expr.Preds |
---|
last, pos, preds |
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. |
abstract Step |
copy(QueryContext ctx,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression. |
VarUsage |
count(Var v)
Checks how often a variable is used in this expression. |
int |
exprSize()
Counts the number of expressions in this expression's sub-tree. |
static Step |
get(InputInfo ii,
Axis a,
Test t,
Expr... p)
This method creates a step instance. |
Expr |
inline(QueryContext ctx,
VarScope scp,
Var v,
Expr e)
Inlines an expression into this one, replacing all references to the given variable. |
void |
plan(FElem plan)
Creates an expression tree. |
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality. |
boolean |
simple(Axis ax,
boolean name)
Checks if this is a simple axis without predicates. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.expr.Preds |
---|
checkUp, copy, has, preds, removable, useIterator |
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, iter, optPre, preEval, size, test, type, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCalls, optimize, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, description, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Test test
Method Detail |
---|
public static Step get(InputInfo ii, Axis a, Test t, Expr... p)
ii
- input infoa
- axist
- node testp
- predicates
public final Expr compile(QueryContext ctx, VarScope scp) throws QueryException
Expr
compile
in class Preds
ctx
- query contextscp
- variable scope
QueryException
- query exceptionpublic abstract Step 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 final boolean simple(Axis ax, boolean name)
ax
- axis to be checkedname
- name/node test
public final boolean sameAs(Expr cmp)
Expr
sameAs
in class Expr
cmp
- expression to be compared
public VarUsage count(Var v)
Expr
count
in class Preds
v
- variable to look for
VarUsage
public Expr inline(QueryContext ctx, VarScope scp, Var v, Expr e) throws QueryException
Expr
inline
in class Preds
ctx
- query context for recompilationscp
- variable scope for recompilationv
- variable to replacee
- expression to inline
null
otherwise
QueryException
- query exceptionpublic final void plan(FElem plan)
ExprInfo
plan
in class Preds
plan
- root elementpublic final java.lang.String toString()
toString
in class Preds
public boolean accept(ASTVisitor visitor)
Expr
accept
in class Expr
visitor
- visitor
public int exprSize()
Expr
exprSize
in class Expr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |