public final class Catch extends Single
| Constructor and Description |
|---|
Catch(InputInfo ii,
QNm[] c,
QueryContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Catch |
comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
int |
prepare(QueryContext ctx)
Prepares the catch construction.
|
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, markTailCalls, sameAsdescription, infopublic Catch(InputInfo ii, QNm[] c, QueryContext ctx)
ii - input infoc - supported error codesctx - query contextpublic Catch comp(QueryContext ctx) throws QueryException
Exprcomp in class Singlectx - query contextQueryException - query exceptionpublic int prepare(QueryContext ctx)
ctx - query contextpublic 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.