Package de.monticore.symboltable
Interface IGlobalScope
public interface IGlobalScope
Common interface for all global scopes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLoadedFile(String name) Methods for managing a list with files that this global scope has already loaded or attempted to load.voidclear()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.voidgetDeSer()Getter- and setter methods for the regular expression of file extensions for the (symbol) files that the global scope considers for symbol resolutiongetSymbolDeSer(String key) Getter- and setter methods for the symbol path of this global scope.voidinit()This method initialized global scope attributes such as, e.g., the map of DeSers.booleanisFileLoaded(String name) voidputSymbolDeSer(String key, ISymbolDeSer value) voidvoidsetFileExt(String fileExt) voidsetSymbolDeSers(Map<String, ISymbolDeSer> symbolDeSers) voidsetSymbolPath(MCPath symbolPath)
-
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
-
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
-
addLoadedFile
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
-
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
-
putSymbolDeSer
-
getSymbolDeSer
-
getDeSer
IDeSer getDeSer() -
setDeSer
-