Interface IGlobalScope


public interface IGlobalScope
Common interface for all global scopes.
  • Method Details

    • getSymbolPath

      MCPath getSymbolPath()
      Getter- and setter methods for the symbol path of this global scope. The model path contains paths in which files with stored symbol tables are located.
    • setSymbolPath

      void setSymbolPath(MCPath symbolPath)
    • getFileExt

      String getFileExt()
      Getter- and setter methods for the regular expression of file extensions for the (symbol) files that the global scope considers for symbol resolution
    • setFileExt

      void setFileExt(String fileExt)
    • addLoadedFile

      void addLoadedFile(String name)
      Methods for managing a list with files that this global scope has already loaded or attempted to load. This is used to avoid loading the same stored artifact scope more than once.
    • clearLoadedFiles

      void clearLoadedFiles()
    • isFileLoaded

      boolean isFileLoaded(String name)
    • init

      void init()
      This method initialized global scope attributes such as, e.g., the map of DeSers.
    • clear

      void clear()
      This method resets all state-based attributes of the global scope including the lists with resolvers, the model path entries, the list of loaded files, etc. This is useful, e.g., for unit testing the symbol table.
    • getSymbolDeSers

      Map<String,ISymbolDeSer> getSymbolDeSers()
    • setSymbolDeSers

      void setSymbolDeSers(Map<String,ISymbolDeSer> symbolDeSers)
    • putSymbolDeSer

      void putSymbolDeSer(String key, ISymbolDeSer value)
    • getSymbolDeSer

      ISymbolDeSer getSymbolDeSer(String key)
    • getDeSer

      IDeSer getDeSer()
    • setDeSer

      void setDeSer(IDeSer deSer)