< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java

Print this page


 240      * Updates module m to use a service.
 241      */
 242     void addUses(Module m, Class<?> service);
 243 
 244     /**
 245      * Returns true if module m reflectively exports a package to other
 246      */
 247     boolean isReflectivelyExported(Module module, String pn, Module other);
 248 
 249     /**
 250      * Returns true if module m reflectively opens a package to other
 251      */
 252     boolean isReflectivelyOpened(Module module, String pn, Module other);
 253 
 254     /**
 255      * Returns the ServicesCatalog for the given Layer.
 256      */
 257     ServicesCatalog getServicesCatalog(ModuleLayer layer);
 258 
 259     /**






 260      * Returns an ordered stream of layers. The first element is the
 261      * given layer, the remaining elements are its parents, in DFS order.
 262      */
 263     Stream<ModuleLayer> layers(ModuleLayer layer);
 264 
 265     /**
 266      * Returns a stream of the layers that have modules defined to the
 267      * given class loader.
 268      */
 269     Stream<ModuleLayer> layers(ClassLoader loader);
 270 
 271     /**
 272      * Constructs a new {@code String} by decoding the specified subarray of
 273      * bytes using the specified {@linkplain java.nio.charset.Charset charset}.
 274      *
 275      * The caller of this method shall relinquish and transfer the ownership of
 276      * the byte array to the callee since the later will not make a copy.
 277      *
 278      * @param bytes the byte array source
 279      * @param cs the Charset




 240      * Updates module m to use a service.
 241      */
 242     void addUses(Module m, Class<?> service);
 243 
 244     /**
 245      * Returns true if module m reflectively exports a package to other
 246      */
 247     boolean isReflectivelyExported(Module module, String pn, Module other);
 248 
 249     /**
 250      * Returns true if module m reflectively opens a package to other
 251      */
 252     boolean isReflectivelyOpened(Module module, String pn, Module other);
 253 
 254     /**
 255      * Returns the ServicesCatalog for the given Layer.
 256      */
 257     ServicesCatalog getServicesCatalog(ModuleLayer layer);
 258 
 259     /**
 260      * Record that this layer has at least one module defined to the given
 261      * class loader.
 262      */
 263     void bindToLoader(ModuleLayer layer, ClassLoader loader);
 264 
 265     /**
 266      * Returns an ordered stream of layers. The first element is the
 267      * given layer, the remaining elements are its parents, in DFS order.
 268      */
 269     Stream<ModuleLayer> layers(ModuleLayer layer);
 270 
 271     /**
 272      * Returns a stream of the layers that have modules defined to the
 273      * given class loader.
 274      */
 275     Stream<ModuleLayer> layers(ClassLoader loader);
 276 
 277     /**
 278      * Constructs a new {@code String} by decoding the specified subarray of
 279      * bytes using the specified {@linkplain java.nio.charset.Charset charset}.
 280      *
 281      * The caller of this method shall relinquish and transfer the ownership of
 282      * the byte array to the callee since the later will not make a copy.
 283      *
 284      * @param bytes the byte array source
 285      * @param cs the Charset


< prev index next >