org.basex.query
Interface Scope

All Known Implementing Classes:
FuncItem, FuncLit, InlineFunc, LibraryModule, MainModule, StaticDecl, StaticFunc, StaticScope, StaticVar

public interface Scope

Interface for all expressions defining a new variable scope.

Author:
BaseX Team 2005-12, BSD License, Leo Woerteler

Method Summary
 void compile(QueryContext ctx)
          Compiles the expression contained in this scope.
 boolean compiled()
          Checks if this scope has already been compiled.
 boolean visit(ASTVisitor visitor)
          Traverses this scope with the given ASTVisitor.
 

Method Detail

visit

boolean visit(ASTVisitor visitor)
Traverses this scope with the given ASTVisitor.

Parameters:
visitor - visitor
Returns:
continue flag

compile

void compile(QueryContext ctx)
             throws QueryException
Compiles the expression contained in this scope.

Parameters:
ctx - query context
Throws:
QueryException - compilation errors

compiled

boolean compiled()
Checks if this scope has already been compiled.

Returns:
result of check