Mirror
, ObjectReference
, Value
public interface ModuleReference extends ObjectReference
Any method on ModuleReference
which directly or indirectly takes ModuleReference
as a parameter may throw VMDisconnectedException
if the target VM is disconnected and the VMDisconnectEvent
has been or is available to be read from the EventQueue
.
Any method on ModuleReference
which directly or indirectly takes ModuleReference
as a parameter may throw VMOutOfMemoryException
if the target VM has run out of memory.
Any method on ModuleReference
or which directly or indirectly takes ModuleReference
as a parameter may throw InvalidModuleException
if the mirrored module has been unloaded. Not all target virtual machines support this class. Use VirtualMachine.canGetModuleInfo()
to determine if the class is supported.
INVOKE_NONVIRTUAL, INVOKE_SINGLE_THREADED
Modifier and Type | Method | Description |
---|---|---|
ClassLoaderReference |
classLoader() |
Returns the ClassLoaderReference object for this module. |
String |
name() |
Returns the module name. |
toString, virtualMachine
disableCollection, enableCollection, entryCount, equals, getValue, getValues, hashCode, invokeMethod, isCollected, owningThread, referenceType, referringObjects, setValue, uniqueID, waitingThreads
String name()
null
if this module is an unnamed module.ClassLoaderReference classLoader()
ClassLoaderReference
object for this module.ClassLoaderReference
object for this module.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jdi/com/sun/jdi/ModuleReference.html