|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.expr.Expr
org.basex.query.xquery.expr.Case
public final class Case
Case expression.
| Field Summary |
|---|
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Constructor Summary | |
|---|---|
Case(Var v,
Expr r)
Constructor. |
|
| Method Summary | |
|---|---|
Expr |
comp(XQContext ctx)
Optimizes and compiles the expression tree. |
Item |
e(XQContext ctx,
Item item)
Evaluates the given item. |
Item |
eval(XQContext ctx)
Evaluates the expression and returns the resulting item. |
java.lang.String |
info()
Returns a string description of the expression. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, d, e, i, n, node, s, size, str, u |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Case(Var v,
Expr r)
v - variabler - return expression| Method Detail |
|---|
public Expr comp(XQContext ctx)
Expr
comp in class Exprctx - query context
public Item e(XQContext ctx,
Item item)
throws XQException
ctx - query contextitem - item to be checked
XQException - evaluation exceptionpublic Item eval(XQContext ctx)
Expr
eval in class Exprctx - query context
public java.lang.String info()
ExprExpr.toString() method, the current expressions aren't included
in the output.
info in class Exprpublic java.lang.String toString()
toString in class Expr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||