public class ModuleCache
extends java.lang.Object
| Constructor and Description |
|---|
ModuleCache()
Constructs a new empty module cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String moduleName,
FortranModule module)
Add a module in the cache by its name.
|
void |
addSearchPath(java.lang.String path)
Add a path to the current list of possible search paths.
|
FortranModule |
get(java.lang.String moduleName)
Get a module in the cache by its name.
|
java.util.List<java.lang.String> |
getSearchPaths()
Get the list of possible search paths.
|
boolean |
isModuleLoaded(java.lang.String moduleName)
Check whether a module is in the cache.
|
void |
write(int ident)
Write all modules in the cache to files.
|
public boolean isModuleLoaded(java.lang.String moduleName)
moduleName - Name of the module.public void add(java.lang.String moduleName,
FortranModule module)
moduleName - Name of the module.module - Xmod object.public FortranModule get(java.lang.String moduleName)
moduleName - Name of the module.public void write(int ident)
throws IllegalTransformationException
ident - Number of spaces used to indent the XML file.IllegalTransformationException - If module cannot be written.public void addSearchPath(java.lang.String path)
path - Path.public java.util.List<java.lang.String> getSearchPaths()