public class VirtualMachineImpl
extends java.lang.Object
implements com.sun.jdi.PathSearchingVirtualMachine
Modifier and Type | Field and Description |
---|---|
protected VirtualMachineImpl |
vm |
Modifier and Type | Method and Description |
---|---|
java.util.List |
allClasses() |
java.util.List |
allObjects() |
java.util.List |
allThreads() |
java.lang.String |
baseDirectory() |
java.util.List |
bootClassPath() |
boolean |
canAddMethod() |
boolean |
canBeModified() |
boolean |
canForceEarlyReturn() |
boolean |
canGet1_5LanguageFeatures() |
boolean |
canGetBytecodes() |
boolean |
canGetClassFileVersion() |
boolean |
canGetConstantPool() |
boolean |
canGetCurrentContendedMonitor() |
boolean |
canGetInstanceInfo() |
boolean |
canGetMethodReturnValues() |
boolean |
canGetMonitorFrameInfo() |
boolean |
canGetMonitorInfo() |
boolean |
canGetOwnedMonitorInfo() |
boolean |
canGetSourceDebugExtension() |
boolean |
canGetSyntheticAttribute() |
boolean |
canPopFrames() |
boolean |
canRedefineClasses() |
boolean |
canRequestMonitorEvents() |
boolean |
canRequestVMDeathEvent() |
boolean |
canUnrestrictedlyRedefineClasses() |
boolean |
canUseInstanceFilters() |
boolean |
canUseSourceNameFilters() |
boolean |
canWalkHeap() |
boolean |
canWatchFieldAccess() |
boolean |
canWatchFieldModification() |
java.util.List |
classesByName(java.lang.String className) |
java.util.List |
classPath() |
static VirtualMachineImpl |
createVirtualMachineForCorefile(com.sun.jdi.VirtualMachineManager mgr,
java.lang.String javaExecutableName,
java.lang.String coreFileName,
int sequenceNumber) |
static VirtualMachineImpl |
createVirtualMachineForPID(com.sun.jdi.VirtualMachineManager mgr,
int pid,
int sequenceNumber) |
static VirtualMachineImpl |
createVirtualMachineForServer(com.sun.jdi.VirtualMachineManager mgr,
java.lang.String server,
int sequenceNumber) |
java.lang.String |
description() |
void |
dispose() |
boolean |
equals(java.lang.Object obj) |
com.sun.jdi.event.EventQueue |
eventQueue() |
com.sun.jdi.request.EventRequestManager |
eventRequestManager() |
void |
exit(int exitCode) |
java.lang.String |
getDefaultStratum() |
int |
hashCode() |
long[] |
instanceCounts(java.util.List classes) |
com.sun.jdi.BooleanValue |
mirrorOf(boolean value) |
com.sun.jdi.ByteValue |
mirrorOf(byte value) |
com.sun.jdi.CharValue |
mirrorOf(char value) |
com.sun.jdi.DoubleValue |
mirrorOf(double value) |
com.sun.jdi.FloatValue |
mirrorOf(float value) |
com.sun.jdi.IntegerValue |
mirrorOf(int value) |
com.sun.jdi.LongValue |
mirrorOf(long value) |
com.sun.jdi.ShortValue |
mirrorOf(short value) |
com.sun.jdi.StringReference |
mirrorOf(java.lang.String value) |
com.sun.jdi.VoidValue |
mirrorOfVoid() |
java.lang.String |
name() |
java.util.List |
objectsByType(com.sun.jdi.ReferenceType type) |
java.util.List |
objectsByType(com.sun.jdi.ReferenceType type,
boolean includeSubtypes) |
java.lang.Process |
process() |
void |
redefineClasses(java.util.Map classToBytes) |
void |
resume() |
void |
setDebugTraceMode(int traceFlags) |
void |
setDefaultStratum(java.lang.String stratum) |
void |
suspend() |
java.util.List |
topLevelThreadGroups() |
java.lang.String |
toString() |
java.lang.String |
version() |
com.sun.jdi.VirtualMachine |
virtualMachine() |
protected VirtualMachineImpl vm
public static VirtualMachineImpl createVirtualMachineForCorefile(com.sun.jdi.VirtualMachineManager mgr, java.lang.String javaExecutableName, java.lang.String coreFileName, int sequenceNumber) throws java.lang.Exception
java.lang.Exception
public static VirtualMachineImpl createVirtualMachineForPID(com.sun.jdi.VirtualMachineManager mgr, int pid, int sequenceNumber) throws java.lang.Exception
java.lang.Exception
public static VirtualMachineImpl createVirtualMachineForServer(com.sun.jdi.VirtualMachineManager mgr, java.lang.String server, int sequenceNumber) throws java.lang.Exception
java.lang.Exception
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.util.List classesByName(java.lang.String className)
classesByName
in interface com.sun.jdi.VirtualMachine
public java.util.List allClasses()
allClasses
in interface com.sun.jdi.VirtualMachine
public void redefineClasses(java.util.Map classToBytes)
redefineClasses
in interface com.sun.jdi.VirtualMachine
public java.util.List allThreads()
allThreads
in interface com.sun.jdi.VirtualMachine
public void suspend()
suspend
in interface com.sun.jdi.VirtualMachine
public void resume()
resume
in interface com.sun.jdi.VirtualMachine
public java.util.List topLevelThreadGroups()
topLevelThreadGroups
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.event.EventQueue eventQueue()
eventQueue
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.request.EventRequestManager eventRequestManager()
eventRequestManager
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.BooleanValue mirrorOf(boolean value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.ByteValue mirrorOf(byte value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.CharValue mirrorOf(char value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.ShortValue mirrorOf(short value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.IntegerValue mirrorOf(int value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.LongValue mirrorOf(long value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.FloatValue mirrorOf(float value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.DoubleValue mirrorOf(double value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.StringReference mirrorOf(java.lang.String value)
mirrorOf
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.VoidValue mirrorOfVoid()
mirrorOfVoid
in interface com.sun.jdi.VirtualMachine
public java.lang.Process process()
process
in interface com.sun.jdi.VirtualMachine
public void dispose()
dispose
in interface com.sun.jdi.VirtualMachine
public void exit(int exitCode)
exit
in interface com.sun.jdi.VirtualMachine
public boolean canBeModified()
canBeModified
in interface com.sun.jdi.VirtualMachine
public boolean canWatchFieldModification()
canWatchFieldModification
in interface com.sun.jdi.VirtualMachine
public boolean canWatchFieldAccess()
canWatchFieldAccess
in interface com.sun.jdi.VirtualMachine
public boolean canGetBytecodes()
canGetBytecodes
in interface com.sun.jdi.VirtualMachine
public boolean canGetSyntheticAttribute()
canGetSyntheticAttribute
in interface com.sun.jdi.VirtualMachine
public boolean canGetOwnedMonitorInfo()
canGetOwnedMonitorInfo
in interface com.sun.jdi.VirtualMachine
public boolean canGetCurrentContendedMonitor()
canGetCurrentContendedMonitor
in interface com.sun.jdi.VirtualMachine
public boolean canGetMonitorInfo()
canGetMonitorInfo
in interface com.sun.jdi.VirtualMachine
public boolean canGet1_5LanguageFeatures()
public boolean canUseInstanceFilters()
canUseInstanceFilters
in interface com.sun.jdi.VirtualMachine
public boolean canRedefineClasses()
canRedefineClasses
in interface com.sun.jdi.VirtualMachine
public boolean canAddMethod()
canAddMethod
in interface com.sun.jdi.VirtualMachine
public boolean canUnrestrictedlyRedefineClasses()
canUnrestrictedlyRedefineClasses
in interface com.sun.jdi.VirtualMachine
public boolean canPopFrames()
canPopFrames
in interface com.sun.jdi.VirtualMachine
public boolean canGetSourceDebugExtension()
canGetSourceDebugExtension
in interface com.sun.jdi.VirtualMachine
public boolean canRequestVMDeathEvent()
canRequestVMDeathEvent
in interface com.sun.jdi.VirtualMachine
public boolean canForceEarlyReturn()
canForceEarlyReturn
in interface com.sun.jdi.VirtualMachine
public boolean canGetConstantPool()
canGetConstantPool
in interface com.sun.jdi.VirtualMachine
public boolean canGetClassFileVersion()
canGetClassFileVersion
in interface com.sun.jdi.VirtualMachine
public boolean canGetMethodReturnValues()
canGetMethodReturnValues
in interface com.sun.jdi.VirtualMachine
public boolean canGetInstanceInfo()
canGetInstanceInfo
in interface com.sun.jdi.VirtualMachine
public boolean canUseSourceNameFilters()
canUseSourceNameFilters
in interface com.sun.jdi.VirtualMachine
public boolean canRequestMonitorEvents()
canRequestMonitorEvents
in interface com.sun.jdi.VirtualMachine
public boolean canGetMonitorFrameInfo()
canGetMonitorFrameInfo
in interface com.sun.jdi.VirtualMachine
public long[] instanceCounts(java.util.List classes)
instanceCounts
in interface com.sun.jdi.VirtualMachine
public java.util.List classPath()
classPath
in interface com.sun.jdi.PathSearchingVirtualMachine
public java.util.List bootClassPath()
bootClassPath
in interface com.sun.jdi.PathSearchingVirtualMachine
public java.lang.String baseDirectory()
baseDirectory
in interface com.sun.jdi.PathSearchingVirtualMachine
public void setDefaultStratum(java.lang.String stratum)
setDefaultStratum
in interface com.sun.jdi.VirtualMachine
public java.lang.String getDefaultStratum()
getDefaultStratum
in interface com.sun.jdi.VirtualMachine
public java.lang.String description()
description
in interface com.sun.jdi.VirtualMachine
public java.lang.String version()
version
in interface com.sun.jdi.VirtualMachine
public java.lang.String name()
name
in interface com.sun.jdi.VirtualMachine
public com.sun.jdi.VirtualMachine virtualMachine()
virtualMachine
in interface com.sun.jdi.Mirror
public java.lang.String toString()
toString
in interface com.sun.jdi.Mirror
toString
in class java.lang.Object
public void setDebugTraceMode(int traceFlags)
setDebugTraceMode
in interface com.sun.jdi.VirtualMachine
public boolean canWalkHeap()
public java.util.List allObjects()
public java.util.List objectsByType(com.sun.jdi.ReferenceType type)
public java.util.List objectsByType(com.sun.jdi.ReferenceType type, boolean includeSubtypes)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.