Class ModuleDependencySpec


  • public final class ModuleDependencySpec
    extends DependencySpec
    A dependency specification on a module.
    • Field Detail

      • JAVA_BASE

        public static final ModuleDependencySpec JAVA_BASE
        A simple dependency on the java.base module.
      • JAVA_SE

        public static final ModuleDependencySpec JAVA_SE
        A simple dependency on the java.se module.
    • Method Detail

      • getModuleLoader

        public ModuleLoader getModuleLoader()
        Get the module loader of this dependency, or null if the defined module's loader is to be used.
        Returns:
        the module loader
      • getIdentifier

        @Deprecated
        public ModuleIdentifier getIdentifier()
        Deprecated.
        Use #getName() instead.
        Get the module identifier of the dependency.
        Returns:
        the module identifier
      • getName

        public java.lang.String getName()
        Get the module name of the dependency.
        Returns:
        the module name
      • isOptional

        public boolean isOptional()
        Determine whether this dependency is optional.
        Returns:
        true if the dependency is optional, false if it is required
      • toString

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