public final class MainModule extends StaticScope
Constructor and Description |
---|
MainModule(Expr expr,
VarScope scope,
String doc,
StaticContext sc)
Constructor.
|
MainModule(StaticFunc sf,
Expr[] args)
Constructor for a function call.
|
Modifier and Type | Method and Description |
---|---|
void |
compile(QueryContext qc)
Compiles the expression contained in this scope.
|
void |
plan(FElem e)
Creates an expression tree.
|
String |
toString() |
boolean |
visit(ASTVisitor visitor)
Traverses this scope with the given
ASTVisitor . |
compiled, doc
addPlan, addPlan, description, planAttr, planElem, toErrorString
public MainModule(StaticFunc sf, Expr[] args) throws QueryException
sf
- static functionargs
- function argumentsQueryException
- query exceptionpublic MainModule(Expr expr, VarScope scope, String doc, StaticContext sc)
expr
- root expressionscope
- variable scopedoc
- xqdoc documentationsc
- static contextpublic void compile(QueryContext qc) throws QueryException
Scope
qc
- query contextQueryException
- compilation errorspublic boolean visit(ASTVisitor visitor)
Scope
ASTVisitor
.visitor
- visitorCopyright © 2005–2015 BaseX Team. All rights reserved.