public final class And extends Logical
| Constructor and Description |
|---|
And(InputInfo ii,
Expr[] e)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
boolean |
indexAccessible(IndexContext ic)
Checks if an expression can be rewritten to an index access.
|
Expr |
indexEquivalent(IndexContext ic)
Returns an equivalent expression which accesses an index structure.
|
Bln |
item(QueryContext ctx,
InputInfo ii)
Evaluates the expression and returns the resulting item or
a
null reference, if the expression yields an empty sequence. |
java.lang.String |
toString() |
allAreValues, count, plan, removable, remove, toString, usescheckBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkIO, checkItem, checkItr, checkItr, checkMap, checkNode, checkNoEmpty, checkStr, checkType, checkUp, checkUp, checkWrite, compBln, ebv, iter, optPre, preEval, size, test, type, valueaddText, compEbv, hasFreeVars, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCalls, sameAsdescription, infopublic Expr comp(QueryContext ctx) throws QueryException
Exprcomp in class Logicalctx - query contextQueryException - query exceptionpublic Bln item(QueryContext ctx, InputInfo ii) throws QueryException
Exprnull reference, if the expression yields an empty sequence.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext) must be implemented
by an expression, as it may be called by this method.item in class ParseExprctx - query contextii - input infoQueryException - query exceptionpublic boolean indexAccessible(IndexContext ic) throws QueryException
ExprExpr.indexEquivalent(org.basex.query.util.IndexContext) must be
implemented as well.indexAccessible in class Expric - index contextQueryException - query exceptionpublic Expr indexEquivalent(IndexContext ic) throws QueryException
ExprExpr.indexAccessible(org.basex.query.util.IndexContext) is returns true for an
expression.indexEquivalent in class Arric - index contextQueryException - query exception