org.basex.query.expr
Class Catch
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.Single
org.basex.query.expr.Catch
public final class Catch
- extends Single
Catch clause.
- Author:
- Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen
| Fields inherited from class org.basex.query.expr.Single |
expr |
| Methods inherited from class org.basex.query.expr.Expr |
addText, atomic, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, iter, removable, returned, sameAs, size, test |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Catch
public Catch(Expr ct,
QNm[] c,
Var v1,
Var v2,
Var v3)
- Constructor.
- Parameters:
ct - catch expressionc - supported error codesv1 - first variablev2 - second variablev3 - third variable
iter
public Iter iter(QueryContext ctx,
QueryException e)
throws QueryException
- Catch iterator.
- Parameters:
ctx - query contexte - thrown exception
- Returns:
- resulting item
- Throws:
QueryException - evaluation exception
uses
public boolean uses(Expr.Use use,
QueryContext ctx)
- Description copied from class:
Expr
- Indicates if an expression uses the specified type.
Called by the compiler to perform certain optimizations.
true is returned by default and thus assumed as "worst-case".
- Overrides:
uses in class Single
- Parameters:
use - use type to be checkedctx - query context
- Returns:
- result of check
remove
public Expr remove(Var v)
- Description copied from class:
Expr
- Removes the specified variable in a sub expression.
- Overrides:
remove in class Single
- Parameters:
v - variable to be removed
- Returns:
- expression with removed variable
toString
public java.lang.String toString()
- Specified by:
toString in class ExprInfo