public class AxisStep extends Preds
| Modifier and Type | Method and Description |
|---|---|
Expr |
comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
static AxisStep |
get(AxisStep s)
This method creates a copy from the specified step.
|
static AxisStep |
get(InputInfo ii,
Axis a,
Test t,
Expr... p)
This method creates a step instance.
|
NodeIter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items.
|
void |
plan(Serializer ser)
Serializes the 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() |
count, preds, removable, remove, useIterator, usescheckBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkIO, checkItem, checkItr, checkItr, checkMap, checkNode, checkNoEmpty, checkStr, checkType, checkUp, checkUp, checkWrite, compBln, ebv, item, optPre, preEval, size, test, type, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCallsdescription, infopublic Test test
public static AxisStep get(AxisStep s)
s - step to be copiedpublic static AxisStep get(InputInfo ii, Axis a, Test t, Expr... p)
ii - input infoa - axist - node testp - predicatespublic final Expr comp(QueryContext ctx) throws QueryException
Exprcomp in class Predsctx - query contextQueryException - query exceptionpublic NodeIter iter(QueryContext ctx) throws QueryException
ExprExpr.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 ParseExprctx - query contextQueryException - query exceptionpublic final boolean simple(Axis ax, boolean name)
ax - axis to be checkedname - name/node testpublic final boolean sameAs(Expr cmp)
Exprpublic final void plan(Serializer ser) throws java.io.IOException
ExprInfo