|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.Single
org.basex.query.expr.Case
public final class Case
Case expression.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Use |
Field Summary |
---|
Fields inherited from class org.basex.query.expr.Single |
---|
expr |
Constructor Summary | |
---|---|
Case(Var v,
Expr r)
Constructor. |
Method Summary | |
---|---|
Case |
comp(QueryContext ctx)
Optimizes and compiles the expression. |
Case |
comp(QueryContext ctx,
Item it)
Compiles the expression. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
Case |
remove(Var v)
Removes the specified variable in a sub expression. |
Return |
returned(QueryContext ctx)
Indicates the return type of an expression. |
String |
toString()
|
boolean |
uses(Expr.Use u,
QueryContext ctx)
Indicates if an expression uses the specified type. |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, atomic, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, iter, removable, sameAs, size, test, v |
Methods inherited from class org.basex.query.ExprInfo |
---|
color, info, name |
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 expressionMethod Detail |
---|
public Case comp(QueryContext ctx) throws QueryException
Expr
comp
in class Single
ctx
- query context
QueryException
- query exceptionpublic Case comp(QueryContext ctx, Item it) throws QueryException
ctx
- query contextit
- item to be bound
QueryException
- query exceptionpublic boolean uses(Expr.Use u, QueryContext ctx)
Expr
true
is returned by default and thus assumed as "worst-case".
uses
in class Single
u
- use type to be checkedctx
- query context
public Case remove(Var v)
Expr
remove
in class Single
v
- variable to be removed
public Return returned(QueryContext ctx)
Expr
returned
in class Expr
ctx
- query context
public void plan(Serializer ser) throws IOException
ExprInfo
plan
in class Single
ser
- serializer
IOException
- I/O exceptionpublic String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |