org.basex.query
Class LibraryModule
java.lang.Object
org.basex.data.ExprInfo
org.basex.query.StaticScope
org.basex.query.LibraryModule
- All Implemented Interfaces:
- Scope
public class LibraryModule
- extends StaticScope
An XQuery main module.
- Author:
- BaseX Team 2005-12, BSD License, Leo Woerteler
Field Summary |
QNm |
name
Library name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public final QNm name
- Library name.
LibraryModule
public LibraryModule(QNm nm,
java.lang.String xqdoc)
- Constructor.
- Parameters:
nm
- of libraryxqdoc
- documentation
visit
public boolean visit(ASTVisitor visitor)
- Description copied from interface:
Scope
- Traverses this scope with the given
ASTVisitor
.
- Parameters:
visitor
- visitor
- Returns:
- continue flag
compile
public void compile(QueryContext ctx)
throws QueryException
- Description copied from interface:
Scope
- Compiles the expression contained in this scope.
- Parameters:
ctx
- query context
- Throws:
QueryException
- compilation errors
toString
public java.lang.String toString()
- Specified by:
toString
in class ExprInfo
plan
public void plan(FElem e)
- Description copied from class:
ExprInfo
- Creates an expression tree.
- Specified by:
plan
in class ExprInfo
- Parameters:
e
- root element