absPath
public static Path absPath(String path)
addDependency
public void addDependency(ModuleInfo dep)
checkCurrent
public boolean checkCurrent(ModuleManager manager,
long now)
Check if this module and its dependencies are up-to-dete.
Only checks the sourcePath's modification time if it is at least
ModifiedCacheTime since last time we checked.
As as side-effects update lastModifiedTime and lastCheckedTime.
clearClass
public void clearClass()
find
public static ModuleInfo find(String className)
findFromInstance
public static ModuleInfo findFromInstance(Object instance)
getInstance
public Object getInstance()
getModuleClass
public Class getModuleClass()
throws ClassNotFoundException
getNamespaceUri
public String getNamespaceUri()
The namespace URI associated with this module, or null
.
This is null for Scheme modules, but non-null for XQuery modules.
getRunInstance
public Object getRunInstance()
getSourceAbsPath
public Path getSourceAbsPath()
getSourceAbsPathname
public String getSourceAbsPathname()
getState
public int getState()
loadByStages
public void loadByStages(int wantedState)
loadEager
public boolean loadEager(int wantedState)
Eagerly process the module and dependencies.
- true on success; false if we were unable to because of
an error or a cyclic dependency.
register
public static void register(Object instance)
setCompilation
public void setCompilation(Compilation comp)
setNamespaceUri
public void setNamespaceUri(String uri)
setSourceAbsPath
public void setSourceAbsPath(Path path)
setupModuleExp
public ModuleExp setupModuleExp()
If module has LAZY_DECLARATIONS, fix that.
toString
public String toString()