|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.StaticScope
org.basex.query.StaticDecl
org.basex.query.var.StaticVar
public final class StaticVar
Static variable to which an expression can be assigned.
Field Summary |
---|
Fields inherited from class org.basex.query.StaticDecl |
---|
ann, declType, dontEnter, name, sc |
Fields inherited from class org.basex.query.StaticScope |
---|
compiled, expr, info, scope |
Constructor Summary | |
---|---|
StaticVar(QueryContext ctx,
QNm nm,
InputInfo ii)
Constructor for implicitly declared external variables. |
Method Summary | |
---|---|
boolean |
bind(Expr e,
QueryContext ctx)
Binds an expression to this variable from outside the query. |
void |
checkUp()
Checks for the correct placement of updating expressions in this variable. |
void |
compile(QueryContext ctx)
Compiles the expression contained in this scope. |
java.lang.StringBuilder |
fullDesc(java.lang.StringBuilder sb)
Adds the description of this variable to the given string builder. |
byte[] |
id()
Returns a unique identifier for this declaration. |
void |
plan(FElem plan)
Creates an expression tree. |
java.lang.String |
toString()
|
Value |
value(QueryContext ctx)
Evaluates this variable lazily. |
boolean |
visit(ASTVisitor visitor)
Traverses this scope with the given ASTVisitor . |
Methods inherited from class org.basex.query.StaticDecl |
---|
type |
Methods inherited from class org.basex.query.StaticScope |
---|
compiled, doc |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, description, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StaticVar(QueryContext ctx, QNm nm, InputInfo ii)
ctx
- query contextnm
- variable nameii
- input infoMethod Detail |
---|
public void compile(QueryContext ctx) throws QueryException
Scope
ctx
- query context
QueryException
- compilation errorspublic Value value(QueryContext ctx) throws QueryException
ctx
- query context
QueryException
- query exceptionpublic void checkUp() throws QueryException
QueryException
- query exceptionpublic boolean bind(Expr e, QueryContext ctx) throws QueryException
e
- value to bindctx
- query context
QueryException
- query exceptionpublic void plan(FElem plan)
ExprInfo
plan
in class ExprInfo
plan
- root elementpublic boolean visit(ASTVisitor visitor)
Scope
ASTVisitor
.
visitor
- visitor
public java.lang.StringBuilder fullDesc(java.lang.StringBuilder sb)
sb
- string builder
public java.lang.String toString()
toString
in class ExprInfo
public byte[] id()
StaticDecl
id
in class StaticDecl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |