@JavaDispatcher.Proxied(value="java.lang.Module") protected static interface JavaModule.Module
java.lang.Module.| Modifier and Type | Method and Description | 
|---|---|
| boolean | canRead(Object value,
       Object target)Checks if the source module can read the target module. | 
| ClassLoader | getClassLoader(Object value)Returns the class loader of a module. | 
| String | getName(Object value)Returns the module's name. | 
| Set<String> | getPackages(Object value)Returns the module's exported packages. | 
| InputStream | getResourceAsStream(Object value,
                   String name)Returns a resource stream for this module for a resource of the given name or  nullif such a resource does not exist. | 
| boolean | isExported(Object value,
          String aPackage,
          Object target)Returns  trueif the source module exports the supplied package to the target module. | 
| boolean | isInstance(Object value)Returns  trueif the supplied instance is of typejava.lang.Module. | 
| boolean | isNamed(Object value)Returns  trueif the supplied module is named. | 
| boolean | isOpen(Object value,
      String aPackage,
      Object target)Returns  trueif the source module opens the supplied package to the target module. | 
@JavaDispatcher.Instance boolean isInstance(Object value)
true if the supplied instance is of type java.lang.Module.value - The instance to investigate.true if the supplied value is a java.lang.Module.boolean isNamed(Object value)
true if the supplied module is named.value - The java.lang.Module to check for the existence of a name.true if the supplied module is named.String getName(Object value)
value - The java.lang.Module to check for its name.Set<String> getPackages(Object value)
value - The java.lang.Module to check for its packages.@MaybeNull ClassLoader getClassLoader(Object value)
value - The java.lang.Module for which to return a class loader.@MaybeNull InputStream getResourceAsStream(Object value, String name) throws IOException
null if such a resource does not exist.value - The java.lang.Module instance to apply this method upon.name - The name of the resource.null if it does not exist.IOException - If an I/O exception occurs.boolean isExported(Object value, String aPackage, @JavaDispatcher.Proxied(value="java.lang.Module") Object target)
true if the source module exports the supplied package to the target module.value - The source module.aPackage - The name of the package to check.target - The target module.true if the source module exports the supplied package to the target module.boolean isOpen(Object value, String aPackage, @JavaDispatcher.Proxied(value="java.lang.Module") Object target)
true if the source module opens the supplied package to the target module.value - The source module.aPackage - The name of the package to check.target - The target module.true if the source module opens the supplied package to the target module.boolean canRead(Object value, @JavaDispatcher.Proxied(value="java.lang.Module") Object target)
value - The source module.target - The target module.true if the source module can read the target module.Copyright © 2014–2025. All rights reserved.