|
||||||||||
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.MainModule
public class MainModule
An XQuery main module.
Field Summary | |
---|---|
SeqType |
declType
Declared type, null if not specified. |
Fields inherited from class org.basex.query.StaticScope |
---|
compiled, expr, info, scope |
Constructor Summary | |
---|---|
MainModule(Expr rt,
VarScope scp,
SeqType type,
java.lang.String xqdoc,
InputInfo ii)
Constructor. |
|
MainModule(Expr rt,
VarScope scp,
java.lang.String xqdoc)
Constructor. |
Method Summary | |
---|---|
void |
compile(QueryContext ctx)
Compiles the expression contained in this scope. |
boolean |
databases(LockResult lr,
QueryContext ctx)
Adds the names of the databases that may be touched by the module. |
Iter |
iter(QueryContext ctx)
Creates a result iterator which lazily evaluates this module. |
void |
plan(FElem e)
Creates an expression tree. |
java.lang.String |
toString()
|
Value |
value(QueryContext ctx)
Evaluates this module and returns the result as a value. |
boolean |
visit(ASTVisitor visitor)
Traverses this scope with the given ASTVisitor . |
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 |
Field Detail |
---|
public final SeqType declType
null
if not specified.
Constructor Detail |
---|
public MainModule(Expr rt, VarScope scp, java.lang.String xqdoc)
rt
- root expressionscp
- variable scopexqdoc
- documentationpublic MainModule(Expr rt, VarScope scp, SeqType type, java.lang.String xqdoc, InputInfo ii)
rt
- root expressionscp
- variable scopexqdoc
- documentationtype
- optional typeii
- 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
- evaluation exceptionpublic Iter iter(QueryContext ctx) throws QueryException
ctx
- query context
QueryException
- query exceptionpublic java.lang.String toString()
toString
in class ExprInfo
public void plan(FElem e)
ExprInfo
plan
in class ExprInfo
e
- root elementpublic boolean visit(ASTVisitor visitor)
Scope
ASTVisitor
.
visitor
- visitor
public boolean databases(LockResult lr, QueryContext ctx)
lr
- lock resultctx
- query context
Proc.databases(LockResult)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |