Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.instrument |
Provides services that allow Java programming language agents to instrument programs running on the JVM.
|
java.lang.reflect |
Provides classes and interfaces for obtaining reflective information about
modules, classes and objects.
|
java.util |
Contains the collections framework, legacy collection classes,
event model, date and time facilities, internationalization, and
miscellaneous utility classes (a string tokenizer, a random-number
generator, and a bit array).
|
Modifier and Type | Method and Description |
---|---|
Module |
Class.getModule()
Returns the module that this class or interface is a member of.
|
Module |
ClassLoader.getUnnamedModule()
Returns the unnamed
Module for this class loader. |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
Class.forName(Module module,
String name)
Returns the
Class with the given
binary name in the given module. |
System.Logger |
System.LoggerFinder.getLocalizedLogger(String name,
ResourceBundle bundle,
Module module)
Returns a localizable instance of
Logger
for the given module . |
abstract System.Logger |
System.LoggerFinder.getLogger(String name,
Module module)
Returns an instance of
Logger
for the given module . |
Modifier and Type | Method and Description |
---|---|
void |
Instrumentation.addModuleReads(Module module,
Module other)
Updates a module to read another module.
|
default byte[] |
ClassFileTransformer.transform(Module module,
ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
Transforms the given class file and returns a new replacement class file.
|
Modifier and Type | Method and Description |
---|---|
Module |
Module.addExports(String pn,
Module other)
If the caller's module is this module then update this module to export
package
pn to the given module. |
Module |
Module.addReads(Module other)
If the caller's module is this module then update this module to read
the given module.
|
Module |
Module.addUses(Class<?> st)
If the caller's module is this module then update this module to add a
service dependence on the given service type.
|
Modifier and Type | Method and Description |
---|---|
Optional<Module> |
Layer.findModule(String name)
Returns the module with the given name in this layer, or if not in this
layer, the parent layer.
|
Set<Module> |
Layer.modules()
Returns a set of the modules in this layer.
|
Modifier and Type | Method and Description |
---|---|
Module |
Module.addExports(String pn,
Module other)
If the caller's module is this module then update this module to export
package
pn to the given module. |
Module |
Module.addReads(Module other)
If the caller's module is this module then update this module to read
the given module.
|
boolean |
Module.canRead(Module other)
Indicates if this module reads the given module.
|
boolean |
Module.isExported(String pn,
Module other)
Returns
true if this module exports the given package to at
least the given module. |
Modifier and Type | Method and Description |
---|---|
static void |
ResourceBundle.clearCache(Module module)
Removes all resource bundles from the cache that have been loaded by the
given
module . |
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Module module)
Gets a resource bundle using the specified base name and the default locale
on behalf of the specified module.
|
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale targetLocale,
Module module)
Gets a resource bundle using the specified base name and locale
on behalf of the specified module.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-09-03-162606.buildd.src