Class ModuleInfo


  • public final class ModuleInfo
    extends java.lang.Object
    Holds information about a module.
    Author:
    harald
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleInfo​(ModuleHook hook)
      Creates a module info.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ModuleHook getHook()
      Gets the module hook.
      java.lang.Module getModule()
      Gets the module.
      int getOrdinal()
      Gets the module ordinal.
      Higher values come first in module order.
      java.util.Set<java.lang.String> getRequiredModuleNames()
      Gets the names of the required modules.
      java.lang.String getUrlPath()
      Gets the URL path of the hook's module.
      void setOrdinal​(int ordinal)
      Sets the ordinal.
      Higher values come first in module order.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ModuleInfo

        public ModuleInfo​(ModuleHook hook)
        Creates a module info.
        Parameters:
        hook - the module hook
    • Method Detail

      • getHook

        public ModuleHook getHook()
        Gets the module hook.
        Returns:
        the hook
      • getUrlPath

        public java.lang.String getUrlPath()
        Gets the URL path of the hook's module.
        Returns:
        the url path
      • getModule

        public java.lang.Module getModule()
        Gets the module.
        Returns:
        the module
      • getRequiredModuleNames

        public java.util.Set<java.lang.String> getRequiredModuleNames()
        Gets the names of the required modules.
        Returns:
        the directly required names
      • getOrdinal

        public int getOrdinal()
        Gets the module ordinal.
        Higher values come first in module order.
        Returns:
        the ordinal
      • setOrdinal

        public void setOrdinal​(int ordinal)
        Sets the ordinal.
        Higher values come first in module order.
        Parameters:
        ordinal - the ordinal
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object