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. Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1999, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b159-1ubuntu1