public interface ModuleReference extends ObjectReference
Any method on ModuleReference
which directly or
indirectly takes ModuleReference
as an 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 an 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 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 and Description |
---|---|
boolean |
canRead(ModuleReference other)
Indicates if this module reads another module.
|
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.boolean canRead(ModuleReference other)
true
if this module reads other
,
false
otherwise
Copyright © 1999, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-08-08-112313.buildd.src