Package org.basex.query.scope
Interface Scope
- All Known Implementing Classes:
AModule,Closure,FuncItem,FuncLit,LibraryModule,MainModule,StaticDecl,StaticFunc,StaticScope,StaticVar
public interface Scope
Interface for all expressions defining a new variable scope.
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomp(CompileContext cc) Compiles the expression contained in this scope.booleancompiled()Checks if this scope has already been compiled.booleanvisit(ASTVisitor visitor) Traverses this scope with the givenASTVisitor.
-
Method Details
-
visit
Traverses this scope with the givenASTVisitor.- Parameters:
visitor- visitor- Returns:
- continue flag
-
comp
Compiles the expression contained in this scope.- Parameters:
cc- compilation context- Throws:
QueryException- compilation errors
-
compiled
boolean compiled()Checks if this scope has already been compiled.- Returns:
- result of check
-