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 Type
    Method
    Description
    void
    Compiles the expression contained in this scope.
    boolean
    Checks if this scope has already been compiled.
    boolean
    visit(ASTVisitor visitor)
    Traverses this scope with the given ASTVisitor.
  • Method Details

    • visit

      boolean visit(ASTVisitor visitor)
      Traverses this scope with the given ASTVisitor.
      Parameters:
      visitor - visitor
      Returns:
      continue flag
    • comp

      void comp(CompileContext cc) throws QueryException
      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