Package gnu.expr

Class ModuleInfo

java.lang.Object
gnu.expr.ModuleInfo

public class ModuleInfo extends Object
  • Field Details

    • className

      protected String className
      Name of class that implements module. Must be non-null unless we're currently compiling the module, in which case sourcePath and comp must both be non-null.
    • sourcePath

      public String sourcePath
      Location of source for module, if known. This can be any of an absolute URI, absolute filename, or filename relative to current working directory. Null if source not known; in that case className must be non-null. Avoid using, since "relative to current working directory" is unreliable if the working directory can change.
    • lastCheckedTime

      public long lastCheckedTime
    • lastModifiedTime

      public long lastModifiedTime
      Last time the source file was modified. At least the last time we checked ...
  • Constructor Details

    • ModuleInfo

      public ModuleInfo()
  • Method Details

    • 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.
    • setNamespaceUri

      public void setNamespaceUri(String uri)
    • getCompilation

      public Compilation getCompilation()
    • setCompilation

      public void setCompilation(Compilation comp)
    • cleanupAfterCompilation

      public void cleanupAfterCompilation()
    • absPath

      public static gnu.kawa.io.Path absPath(String path)
    • getSourceAbsPath

      public gnu.kawa.io.Path getSourceAbsPath()
    • setSourceAbsPath

      public void setSourceAbsPath(gnu.kawa.io.Path path)
    • getSourceAbsPathname

      public String getSourceAbsPathname()
    • addDependency

      public void addDependency(ModuleInfo dep)
    • getClassType

      public ClassType getClassType()
    • getClassName

      public String getClassName()
    • setClassName

      public void setClassName(String name)
    • getModuleExpRaw

      public ModuleExp getModuleExpRaw()
    • getModuleExp

      public ModuleExp getModuleExp()
    • setupModuleExp

      public ModuleExp setupModuleExp()
      If module has LAZY_DECLARATIONS, fix that.
    • getModuleClass

      public Class getModuleClass() throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • getModuleClassRaw

      public Class getModuleClassRaw()
    • getOldModuleClass

      public Class getOldModuleClass()
    • setModuleClass

      public void setModuleClass(Class clas)
    • findFromInstance

      public static ModuleInfo findFromInstance(Object instance)
    • find

      public static ModuleInfo find(ClassType type)
    • findWithClassName

      public static ModuleInfo findWithClassName(String className)
    • register

      public static void register(Object instance)
    • getInstance

      public Object getInstance()
    • getRunInstance

      public Object getRunInstance()
    • getState

      public int getState()
    • loadByStages

      public void loadByStages(int wantedState)
    • loadEager

      public boolean loadEager(int wantedState)
      Eagerly process the module and dependencies.
      Returns:
      true on success; false if we were unable to because of an error or a cyclic dependency.
    • clearClass

      public void clearClass()
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object