public final class TypeCase extends Single
| Constructor and Description |
|---|
TypeCase(InputInfo ii,
Var v,
Expr r)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TypeCase |
comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
TypeCase |
markTailCalls()
Finds and marks tail calls, enabling TCO.
|
void |
plan(Serializer ser)
Serializes the expression tree.
|
java.lang.String |
toString() |
boolean |
uses(Expr.Use u)
Indicates if an expression uses the specified type or operation.
|
checkBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkIO, checkItem, checkItr, checkItr, checkMap, checkNode, checkNoEmpty, checkStr, checkType, checkUp, checkUp, checkWrite, compBln, ebv, item, iter, optPre, preEval, size, test, type, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, sameAsdescription, infopublic TypeCase comp(QueryContext ctx) throws QueryException
Exprcomp in class Singlectx - query contextQueryException - query exceptionpublic boolean uses(Expr.Use u)
ExprExpr.comp(org.basex.query.QueryContext) methods to test the properties of sub-expressions.
It will return true as soon as at least one test is successful.public void plan(Serializer ser) throws java.io.IOException
ExprInfopublic TypeCase markTailCalls()
ExprmarkTailCalls in class Expr