-
- All Superinterfaces:
-
Mirror,ObjectReference,Value
public interface ModuleReference extends ObjectReference
目标虚拟机中的一个模块。上的任何方法
ModuleReference直接或间接花费ModuleReference作为参数可能抛出VMDisconnectedException如果目标VM断开且VMDisconnectEvent已经或可用于被从读EventQueue。上的任何方法
ModuleReference直接或间接花费ModuleReference作为参数可能抛出VMOutOfMemoryException如果目标VM已用完的存储器。ModuleReference或直接或间接以ModuleReference作为参数的方法可能会抛出InvalidModuleException(如果镜像模块已卸载)。 并非所有目标虚拟机都支持此类。 使用VirtualMachine.canGetModuleInfo()确定是否支持该类。- 从以下版本开始:
- 9
-
-
Field Summary
-
Fields inherited from interface com.sun.jdi.ObjectReference
INVOKE_NONVIRTUAL, INVOKE_SINGLE_THREADED
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 ClassLoaderReferenceclassLoader()返回此模块的ClassLoaderReference对象。Stringname()返回模块名称。-
Methods inherited from interface com.sun.jdi.Mirror
toString, virtualMachine
-
Methods inherited from interface com.sun.jdi.ObjectReference
disableCollection, enableCollection, entryCount, equals, getValue, getValues, hashCode, invokeMethod, isCollected, owningThread, referenceType, referringObjects, setValue, uniqueID, waitingThreads
-
-
-
-
方法详细信息
-
name
String name()
返回模块名称。 如果此模块是未命名的模块,此方法返回null。- 结果
- 该模块的名称。
-
classLoader
ClassLoaderReference classLoader()
返回此模块的ClassLoaderReference对象。- 结果
-
该模块的
ClassLoaderReference对象。
-
-