< prev index next >
src/java.base/share/classes/jdk/internal/misc/JavaLangModuleAccess.java
Print this page
@@ -44,10 +44,11 @@
import java.util.Optional;
import java.util.Set;
import java.util.function.Supplier;
import jdk.internal.module.ModuleHashes;
+import jdk.internal.module.WarnIfResolvedReason;
/**
* Provides access to non-public methods in java.lang.module.
*/
@@ -135,18 +136,31 @@
String osName,
String osArch,
String osVersion,
Set<String> packages,
ModuleHashes hashes,
- int hashCode);
+ int hashCode,
+ boolean doNotResolveByDefault,
+ WarnIfResolvedReason reason);
/**
* Returns the object with the hashes of other modules
*/
Optional<ModuleHashes> hashes(ModuleDescriptor descriptor);
/**
+ * Returns the value of the DO_NOT_RESOLVE_BY_DEFAULT bit.
+ */
+ boolean doNotResolveByDefault(ModuleDescriptor descriptor);
+
+ /**
+ * Returns the warn if resolved reason, if any.
+ */
+ WarnIfResolvedReason warnIfResolvedReason(ModuleDescriptor descriptor);
+
+
+ /**
* Resolves a collection of root modules, with service binding
* and the empty configuration as the parent. The post resolution
* checks are optionally run.
*/
Configuration resolveRequiresAndUses(ModuleFinder finder,
< prev index next >