/** Add a dependency on a given module, presuming the {@code main} slot. * * @param name The name of the module. * @return The added module descriptor. */ default Module addModule(String name) { return getDescriptorAsset().addModule(name); }
/** Add a dependency on a given module, with the specified slot. * * @param name The name of the module. * @param slot The slot of the module. * @return The added module descriptor. */ default Module addModule(String name, String slot) { return getDescriptorAsset().addModule(name, slot); }
/** Exclude a module dependency, with the specified slot. * * @param name The name of the module. * @param slot The slot of the module. * @return this archive. */ @SuppressWarnings("unchecked") default T excludeModule(String name, String slot) { getDescriptorAsset().excludeModule(name, slot); return (T) this; }
/** Add a dependency on a given module, presuming the {@code main} slot. * * @param name The name of the module. * @return The added module descriptor. */ default Module addModule(String name) { return getDescriptorAsset().addModule(name); }
/** Exclude a module dependency, with the specified slot. * * @param name The name of the module. * @param slot The slot of the module. * @return this archive. */ @SuppressWarnings("unchecked") default T excludeModule(String name, String slot) { getDescriptorAsset().excludeModule(name, slot); return (T) this; }
/** Add a dependency on a given module, with the specified slot. * * @param name The name of the module. * @param slot The slot of the module. * @return The added module descriptor. */ default Module addModule(String name, String slot) { return getDescriptorAsset().addModule(name, slot); }