public class ModuleInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
className
Name of class that implements module.
|
long |
lastCheckedTime |
long |
lastModifiedTime
Last time the source file was modified.
|
java.lang.String |
sourcePath
Location of source for module, if known.
|
Constructor and Description |
---|
ModuleInfo() |
Modifier and Type | Method and Description |
---|---|
static gnu.kawa.io.Path |
absPath(java.lang.String path) |
void |
addDependency(ModuleInfo dep) |
boolean |
checkCurrent(ModuleManager manager,
long now)
Check if this module and its dependencies are up-to-dete.
|
void |
cleanupAfterCompilation() |
void |
clearClass() |
static ModuleInfo |
find(ClassType type) |
static ModuleInfo |
findFromInstance(java.lang.Object instance) |
static ModuleInfo |
findWithClassName(java.lang.String className) |
java.lang.String |
getClassName() |
ClassType |
getClassType() |
Compilation |
getCompilation() |
java.lang.Object |
getInstance() |
java.lang.Class |
getModuleClass() |
java.lang.Class |
getModuleClassRaw() |
ModuleExp |
getModuleExp() |
ModuleExp |
getModuleExpRaw() |
java.lang.String |
getNamespaceUri()
The namespace URI associated with this module, or
null . |
java.lang.Class |
getOldModuleClass() |
java.lang.Object |
getRunInstance() |
gnu.kawa.io.Path |
getSourceAbsPath() |
java.lang.String |
getSourceAbsPathname() |
int |
getState() |
void |
loadByStages(int wantedState) |
boolean |
loadEager(int wantedState)
Eagerly process the module and dependencies.
|
static void |
register(java.lang.Object instance) |
void |
setClassName(java.lang.String name) |
void |
setCompilation(Compilation comp) |
void |
setModuleClass(java.lang.Class clas) |
void |
setNamespaceUri(java.lang.String uri) |
void |
setSourceAbsPath(gnu.kawa.io.Path path) |
ModuleExp |
setupModuleExp()
If module has LAZY_DECLARATIONS, fix that.
|
java.lang.String |
toString() |
protected java.lang.String className
public java.lang.String sourcePath
public long lastCheckedTime
public long lastModifiedTime
public java.lang.String getNamespaceUri()
null
.
This is null for Scheme modules, but non-null for XQuery modules.public void setNamespaceUri(java.lang.String uri)
public Compilation getCompilation()
public void setCompilation(Compilation comp)
public void cleanupAfterCompilation()
public static gnu.kawa.io.Path absPath(java.lang.String path)
public gnu.kawa.io.Path getSourceAbsPath()
public void setSourceAbsPath(gnu.kawa.io.Path path)
public java.lang.String getSourceAbsPathname()
public void addDependency(ModuleInfo dep)
public ClassType getClassType()
public java.lang.String getClassName()
public void setClassName(java.lang.String name)
public ModuleExp getModuleExpRaw()
public ModuleExp getModuleExp()
public ModuleExp setupModuleExp()
public java.lang.Class getModuleClass() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class getModuleClassRaw()
public java.lang.Class getOldModuleClass()
public void setModuleClass(java.lang.Class clas)
public static ModuleInfo findFromInstance(java.lang.Object instance)
public static ModuleInfo find(ClassType type)
public static ModuleInfo findWithClassName(java.lang.String className)
public static void register(java.lang.Object instance)
public java.lang.Object getInstance()
public java.lang.Object getRunInstance()
public int getState()
public void loadByStages(int wantedState)
public boolean loadEager(int wantedState)
public void clearClass()
public boolean checkCurrent(ModuleManager manager, long now)
public java.lang.String toString()
toString
in class java.lang.Object