|
||||||||||
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.xquery.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. |
SeqType |
type
Data type. |
Constructor Summary | |
---|---|
Var(QNm n)
Constructor. |
|
Var(QNm n,
SeqType t)
Constructor. |
Method Summary | |
---|---|
Item |
check(Item it,
XQContext ctx)
Checks the variable type. |
Var |
clone()
|
void |
comp(XQContext ctx)
Compiles the variable. |
Var |
expr(Expr e,
XQContext ctx)
Binds the specified expression to the variable. |
Var |
item(Item it,
XQContext ctx)
Binds the specified item to the variable. |
Item |
item(XQContext ctx)
Evaluates the variable. |
Iter |
iter(XQContext ctx)
Evaluates the variable. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
java.lang.String |
toString()
|
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 |
Field Detail |
---|
public QNm name
public SeqType type
public Expr expr
public Item item
public boolean global
Constructor Detail |
---|
public Var(QNm n)
n
- variable namepublic Var(QNm n, SeqType t)
n
- variable namet
- data typeMethod Detail |
---|
public void comp(XQContext ctx) throws XQException
ctx
- xquery context
XQException
- xquery exceptionpublic Var expr(Expr e, XQContext ctx) throws XQException
e
- expression to be setctx
- query context
XQException
- evaluation exceptionpublic Var item(Item it, XQContext ctx) throws XQException
it
- item to be setctx
- query context
XQException
- evaluation exceptionpublic Iter iter(XQContext ctx) throws XQException
ctx
- query context
XQException
- query exceptionpublic Item item(XQContext ctx) throws XQException
ctx
- query context
XQException
- query exceptionpublic Item check(Item it, XQContext ctx) throws XQException
it
- input itemctx
- query context
XQException
- query exceptionpublic Var clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class ExprInfo
public void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |