|
||||||||||
| 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.util.Var
public final class Var
Variable.
| Field Summary | |
|---|---|
Expr |
expr
Variable expressions. |
boolean |
global
Global flag. |
Item |
item
Variable results. |
QNm |
name
Variable name. |
Return |
ret
Return type. |
SeqType |
type
Data type. |
| Constructor Summary | |
|---|---|
Var(QNm n,
boolean g)
Constructor. |
|
Var(QNm n,
SeqType t,
boolean g)
Constructor. |
|
| Method Summary | |
|---|---|
Var |
bind(Expr e,
QueryContext ctx)
Binds the specified expression to the variable. |
Var |
bind(Item it,
QueryContext ctx)
Binds the specified item to the variable. |
Var |
clone()
|
java.lang.String |
color()
Returns a string description of the expression. |
Expr |
comp(QueryContext ctx)
Optimizes and compiles the expression. |
boolean |
eq(Var v)
Compares the variables for name equality. |
Item |
item(QueryContext ctx)
Evaluates the variable. |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
Return |
returned(QueryContext ctx)
Indicates the return type of an expression. |
java.lang.String |
toString()
|
boolean |
visible(Var v)
Checks if the variable is not shadowed by the variable. |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, atomic, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, removable, remove, sameAs, size, test, uses |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
info, name |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Return ret
public final boolean global
public final QNm name
public SeqType type
public Expr expr
public Item item
| Constructor Detail |
|---|
public Var(QNm n,
boolean g)
n - variable nameg - global flag
public Var(QNm n,
SeqType t,
boolean g)
n - variable namet - data typeg - global flag| Method Detail |
|---|
public Expr comp(QueryContext ctx)
throws QueryException
Expr
comp in class Exprctx - query context
QueryException - evaluation exception
public Var bind(Expr e,
QueryContext ctx)
throws QueryException
e - expression to be setctx - query context
QueryException - evaluation exception
public Var bind(Item it,
QueryContext ctx)
throws QueryException
it - item to be setctx - query context
QueryException - evaluation exception
public Iter iter(QueryContext ctx)
throws QueryException
ExprExpr.atomic(org.basex.query.QueryContext) must be implemented.
iter in class Exprctx - query context
QueryException - evaluation exception
public Item item(QueryContext ctx)
throws QueryException
ctx - query context
QueryException - query exceptionpublic boolean eq(Var v)
v - variable
public boolean visible(Var v)
v - variable
public Var clone()
clone in class java.lang.Objectpublic Return returned(QueryContext ctx)
Expr
returned in class Exprctx - query context
public java.lang.String color()
ExprInfoExprInfo.toString() method, the current expressions aren't included
in the output.
color in class ExprInfo
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class ExprInfoser - serializer
java.io.IOException - exceptionpublic java.lang.String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||