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

Print this page




 237      * Returns true if module m reflectively opens a package to other
 238      */
 239     boolean isReflectivelyOpened(Module module, String pn, Module other);
 240 
 241     /**
 242      * Returns the ServicesCatalog for the given Layer.
 243      */
 244     ServicesCatalog getServicesCatalog(ModuleLayer layer);
 245 
 246     /**
 247      * Returns an ordered stream of layers. The first element is the
 248      * given layer, the remaining elements are its parents, in DFS order.
 249      */
 250     Stream<ModuleLayer> layers(ModuleLayer layer);
 251 
 252     /**
 253      * Returns a stream of the layers that have modules defined to the
 254      * given class loader.
 255      */
 256     Stream<ModuleLayer> layers(ClassLoader loader);



















 257 }


 237      * Returns true if module m reflectively opens a package to other
 238      */
 239     boolean isReflectivelyOpened(Module module, String pn, Module other);
 240 
 241     /**
 242      * Returns the ServicesCatalog for the given Layer.
 243      */
 244     ServicesCatalog getServicesCatalog(ModuleLayer layer);
 245 
 246     /**
 247      * Returns an ordered stream of layers. The first element is the
 248      * given layer, the remaining elements are its parents, in DFS order.
 249      */
 250     Stream<ModuleLayer> layers(ModuleLayer layer);
 251 
 252     /**
 253      * Returns a stream of the layers that have modules defined to the
 254      * given class loader.
 255      */
 256     Stream<ModuleLayer> layers(ClassLoader loader);
 257 
 258     /**
 259      * Returns a new string by decoding from the given utf8 bytes array.
 260      *
 261      * @param off the index of the first byte to decode
 262      * @param len the number of bytes to decode
 263      * @return the newly created string
 264      * @throws IllegalArgumentException for malformed or unmappable bytes.
 265      */
 266     String newStringUTF8NoRepl(byte[] bytes, int off, int len);
 267 
 268     /**
 269      * Encode the given string into a sequence of bytes using utf8.
 270      *
 271      * @param s the string to encode
 272      * @return the encoded bytes in utf8
 273      * @throws IllegalArgumentException for malformed surrogates
 274      */
 275     byte[] getBytesUTF8NoRepl(String s);
 276 }