APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.tools.jdi

pack-priv Class VirtualMachineImpl

extends MirrorImpl
implements PathSearchingVirtualMachine, ThreadListener
Class Inheritance
All Implemented Interfaces
com.sun.tools.jdi.ThreadListener, java.util.EventListener, com.sun.jdi.PathSearchingVirtualMachine, com.sun.jdi.VirtualMachine, com.sun.jdi.Mirror
Imports
java.lang.ref.Reference, .ReferenceQueue, .SoftReference, java.text.MessageFormat, java.util.ArrayList, .Arrays, .Collections, .HashMap, .HashSet, .Iterator, .List, .Map, .Set, java.util.function.Consumer, com.sun.jdi.BooleanType, .BooleanValue, .ByteType, .ByteValue, .CharType, .CharValue, .ClassNotLoadedException, .DoubleType, .DoubleValue, .FloatType, .FloatValue, .IntegerType, .IntegerValue, .InternalException, .LongType, .LongValue, .ModuleReference, .ObjectCollectedException, .PathSearchingVirtualMachine, .PrimitiveType, .ReferenceType, .ShortType, .ShortValue, .StringReference, .ThreadGroupReference, .ThreadReference, .Type, .VMDisconnectedException, .VirtualMachine, .VirtualMachineManager, .VoidType, .VoidValue, com.sun.jdi.connect.spi.Connection, com.sun.jdi.event.EventQueue, com.sun.jdi.request.BreakpointRequest, .EventRequest, .EventRequestManager

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final List<VirtualMachineImpl.SoftObjectReference>
private JDWP.VirtualMachine.Capabilities
private JDWP.VirtualMachine.CapabilitiesNew
private String
private static final int
private final EventQueueImpl
private final EventRequestManagerImpl
private boolean
private Object
private final EventRequestManagerImpl
private Map<Long, ModuleReference>
private final Map<Long, VirtualMachineImpl.SoftObjectReference>
private JDWP.VirtualMachine.ClassPaths
private Process
private final ReferenceQueue<ObjectReferenceImpl>
private boolean
pack-priv final int
private boolean
public final int
public final int
public final int
public final int
public final int
public final int
private VMState
private final TargetVM
private BooleanType
private ByteType
private CharType
private DoubleType
private FloatType
private IntegerType
private LongType
private ShortType
private VoidType
private final ThreadGroup
pack-priv static int
pack-priv static int
pack-priv int
pack-priv boolean
private Map<Long, ReferenceType>
private Set<ReferenceType>
private JDWP.VirtualMachine.Version
pack-priv final VirtualMachineManagerImpl
private VoidValue
Inherited from com.sun.tools.jdi.MirrorImpl:
vm

Constructor Summary

AccessConstructor and Description
pack-priv
VirtualMachineImpl(VirtualMachineManager manager, Connection connection, Process process, int sequenceNumber)

Method Summary

Modifier and TypeMethod and Description
private synchronized ModuleReference
addModule(long id)

private synchronized ReferenceTypeImpl
addReferenceType(long id, int tag, String signature)

public List<ReferenceType>
allClasses()

Implements com.sun.jdi.VirtualMachine.allClasses.

Returns all loaded types in the target VM.

public List<ModuleReference>
allModules()

Overrides default com.sun.jdi.VirtualMachine.allModules.

Returns all modules.

public List<ThreadReference>
allThreads()

Implements com.sun.jdi.VirtualMachine.allThreads.

Returns a list of the live threads in the target VM.

pack-priv ArrayReferenceImpl
arrayMirror(long id)

pack-priv ArrayTypeImpl
arrayType(long ref)

public String
baseDirectory()

Implements com.sun.jdi.PathSearchingVirtualMachine.baseDirectory.

Get the base directory used for path searching.

private void
public List<String>
bootClassPath()

Implements com.sun.jdi.PathSearchingVirtualMachine.bootClassPath.

Get the boot class path for this virtual machine.

public boolean
canAddMethod()

Implements com.sun.jdi.VirtualMachine.canAddMethod.

Deprecated since 15.

Determines if the target VM supports the addition of methods when performing class redefinition.

public boolean
canBeModified()

Implements com.sun.jdi.VirtualMachine.canBeModified.

Determines if the target VM is a read-only VM.

public boolean
canForceEarlyReturn()

Implements com.sun.jdi.VirtualMachine.canForceEarlyReturn.

Determines if the target VM supports the forcing of a method to return early.

pack-priv boolean
public boolean
canGetBytecodes()

Implements com.sun.jdi.VirtualMachine.canGetBytecodes.

Determines if the target VM supports the retrieval of a method's bytecodes.

public boolean
canGetClassFileVersion()

Implements com.sun.jdi.VirtualMachine.canGetClassFileVersion.

Determines if the target VM supports reading class file major and minor versions.

public boolean
canGetConstantPool()

Implements com.sun.jdi.VirtualMachine.canGetConstantPool.

Determines if the target VM supports getting constant pool information of a class.

public boolean
canGetCurrentContendedMonitor()

Implements com.sun.jdi.VirtualMachine.canGetCurrentContendedMonitor.

Determines if the target VM supports the retrieval of the monitor for which a thread is currently waiting.

public boolean
canGetInstanceInfo()

Implements com.sun.jdi.VirtualMachine.canGetInstanceInfo.

Determines if the target VM supports the accessing of class instances, instance counts, and referring objects.

public boolean
canGetMethodReturnValues()

Implements com.sun.jdi.VirtualMachine.canGetMethodReturnValues.

Determines if the target VM supports the inclusion of return values in MethodExitEvents.

public boolean
canGetModuleInfo()

Overrides default com.sun.jdi.VirtualMachine.canGetModuleInfo.

Determines if the target VM supports getting information about modules.

public boolean
canGetMonitorFrameInfo()

Implements com.sun.jdi.VirtualMachine.canGetMonitorFrameInfo.

Determines if the target VM supports getting which frame has acquired a monitor.

public boolean
canGetMonitorInfo()

Implements com.sun.jdi.VirtualMachine.canGetMonitorInfo.

Determines if the target VM supports the retrieval of the monitor information for an object.

public boolean
canGetOwnedMonitorInfo()

Implements com.sun.jdi.VirtualMachine.canGetOwnedMonitorInfo.

Determines if the target VM supports the retrieval of the monitors owned by a thread.

public boolean
canGetSourceDebugExtension()

Implements com.sun.jdi.VirtualMachine.canGetSourceDebugExtension.

Determines if the target VM supports getting the source debug extension.

public boolean
canGetSyntheticAttribute()

Implements com.sun.jdi.VirtualMachine.canGetSyntheticAttribute.

Determines if the target VM supports the query of the synthetic attribute of a method or field.

public boolean
canPopFrames()

Implements com.sun.jdi.VirtualMachine.canPopFrames.

Determines if the target VM supports popping frames of a threads stack.

public boolean
canRedefineClasses()

Implements com.sun.jdi.VirtualMachine.canRedefineClasses.

Determines if the target VM supports any level of class redefinition.

public boolean
canRequestMonitorEvents()

Implements com.sun.jdi.VirtualMachine.canRequestMonitorEvents.

Determines if the target VM supports the creation of MonitorContendedEnterRequests.

public boolean
canRequestVMDeathEvent()

Implements com.sun.jdi.VirtualMachine.canRequestVMDeathEvent.

Determines if the target VM supports the creation of VMDeathRequests.

public boolean
canUnrestrictedlyRedefineClasses()

Implements com.sun.jdi.VirtualMachine.canUnrestrictedlyRedefineClasses.

Deprecated since 15.

Determines if the target VM supports changes when performing class redefinition that are otherwise restricted by redefineClasses.

public boolean
canUseInstanceFilters()

Implements com.sun.jdi.VirtualMachine.canUseInstanceFilters.

Determines if the target VM supports filtering events by specific instance object.

public boolean
canUseSourceNameFilters()

Implements com.sun.jdi.VirtualMachine.canUseSourceNameFilters.

Determines if the target VM supports the filtering of class prepare events by source name.

public boolean
canWatchFieldAccess()

Implements com.sun.jdi.VirtualMachine.canWatchFieldAccess.

Determines if the target VM supports watchpoints for field access.

public boolean
canWatchFieldModification()

Implements com.sun.jdi.VirtualMachine.canWatchFieldModification.

Determines if the target VM supports watchpoints for field modification.

private JDWP.VirtualMachine.Capabilities
private JDWP.VirtualMachine.CapabilitiesNew
public List<ReferenceType>
classesByName(String className)

Implements com.sun.jdi.VirtualMachine.classesByName.

Returns the loaded reference types that match a given name.

pack-priv List<ReferenceType>
pack-priv ClassLoaderReferenceImpl
pack-priv ClassObjectReferenceImpl
public List<String>
classPath()

Implements com.sun.jdi.PathSearchingVirtualMachine.classPath.

Get the class path for this virtual machine.

pack-priv ClassTypeImpl
classType(long ref)

public String
description()

Implements com.sun.jdi.VirtualMachine.description.

Returns text information on the target VM and the debugger support that mirrors it.

public void
dispose()

Implements com.sun.jdi.VirtualMachine.dispose.

Invalidates this virtual machine mirror.

public boolean
equals(Object obj)

Overrides com.sun.tools.jdi.MirrorImpl.equals.

Indicates whether some other object is "equal to" this one.

public EventQueue
eventQueue()

Implements com.sun.jdi.VirtualMachine.eventQueue.

Returns the event queue for this virtual machine.

public EventRequestManager
eventRequestManager()

Implements com.sun.jdi.VirtualMachine.eventRequestManager.

Returns the event request manager for this virtual machine.

pack-priv EventRequestManagerImpl
public void
exit(int exitCode)

Implements com.sun.jdi.VirtualMachine.exit.

Causes the mirrored VM to terminate with the given error code.

pack-priv Type
findBootType(String signature)

private synchronized List<ReferenceType>
public void
forEachClass(Consumer<ReferenceType> action)

Performs an action for each loaded type.

private JDWP.VirtualMachine.ClassPaths
public String
getDefaultStratum()

Implements com.sun.jdi.VirtualMachine.getDefaultStratum.

Return this VM's default stratum.

pack-priv EventRequestManagerImpl
pack-priv ModuleReference
getModule(long id)

public int
hashCode()

Overrides com.sun.tools.jdi.MirrorImpl.hashCode.

Returns a hash code value for this object.

private boolean
private void
public long[]
instanceCounts(List<? extends ReferenceType> classes)

Implements com.sun.jdi.VirtualMachine.instanceCounts.

Returns the number of instances of each ReferenceType in the 'refTypes' list.

pack-priv InterfaceTypeImpl
interfaceType(long ref)

pack-priv boolean
public BooleanValue
mirrorOf(boolean value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a BooleanValue for the given value.

public ByteValue
mirrorOf(byte value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a ByteValue for the given value.

public CharValue
mirrorOf(char value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a CharValue for the given value.

public ShortValue
mirrorOf(short value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a ShortValue for the given value.

public IntegerValue
mirrorOf(int value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates an IntegerValue for the given value.

public LongValue
mirrorOf(long value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a LongValue for the given value.

public FloatValue
mirrorOf(float value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a FloatValue for the given value.

public DoubleValue
mirrorOf(double value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a DoubleValue for the given value.

public StringReference
mirrorOf(String value)

Implements com.sun.jdi.VirtualMachine.mirrorOf.

Creates a string in this virtual machine.

public VoidValue
pack-priv ModuleReferenceImpl
moduleMirror(long id)

public String
name()

Implements com.sun.jdi.VirtualMachine.name.

Returns the name of the target VM as reported by the property java.vm.name.

private void
pack-priv void
pack-priv synchronized ObjectReferenceImpl
objectMirror(long id, int tag)

pack-priv ObjectReferenceImpl
objectMirror(long id)

pack-priv PrimitiveType
pack-priv void
printReceiveTrace(int depth, String string)

pack-priv void
public Process
process()

Implements com.sun.jdi.VirtualMachine.process.

Returns the java.lang.Process object for this virtual machine if launched by a LaunchingConnector

private void
private void
public void
redefineClasses(Map<? extends ReferenceType, byte[]> classToBytes)

Implements com.sun.jdi.VirtualMachine.redefineClasses.

All classes given are redefined according to the definitions supplied.

pack-priv ReferenceTypeImpl
referenceType(long ref, byte tag)

pack-priv ReferenceTypeImpl
referenceType(long id, int tag, String signature)

private synchronized void
pack-priv synchronized void
public void
resume()

Implements com.sun.jdi.VirtualMachine.resume.

Continues the execution of the application running in this virtual machine.

private void
private void
private synchronized List<ModuleReference>
private List<ReferenceType>
pack-priv PacketStream
pack-priv void
public void
setDebugTraceMode(int traceFlags)

Implements com.sun.jdi.VirtualMachine.setDebugTraceMode.

Traces the activities performed by the com.sun.jdi implementation.

public void
setDefaultStratum(String stratum)

Implements com.sun.jdi.VirtualMachine.setDefaultStratum.

Set this VM's default stratum (see Location for a discussion of strata).

pack-priv VMState
pack-priv StringReferenceImpl
stringMirror(long id)

public void
suspend()

Implements com.sun.jdi.VirtualMachine.suspend.

Suspends the execution of the application running in this virtual machine.

pack-priv BooleanType
pack-priv ByteType
pack-priv CharType
pack-priv DoubleType
pack-priv FloatType
pack-priv IntegerType
pack-priv LongType
pack-priv ShortType
pack-priv VoidType
pack-priv ThreadGroup
pack-priv ThreadGroupReferenceImpl
pack-priv ThreadReferenceImpl
threadMirror(long id)

public boolean
public List<ThreadGroupReference>
topLevelThreadGroups()

Implements com.sun.jdi.VirtualMachine.topLevelThreadGroups.

Returns each thread group which does not have a parent.

pack-priv void
public String
version()

Implements com.sun.jdi.VirtualMachine.version.

Returns the version of the Java Runtime Environment in the target VM as reported by the property java.version.

private JDWP.VirtualMachine.Version
pack-priv void
pack-priv void
Inherited from com.sun.tools.jdi.MirrorImpl:
validateMirrorvalidateMirrorOrNullvalidateMirrorsvalidateMirrorsOrNullsvirtualMachine