Interface PathSearchingVirtualMachine
- All Superinterfaces:
Mirror, VirtualMachine
A virtual machine which searches for classes through paths
- Since:
- 1.3
-
Field Summary
Fields declared in interface VirtualMachine
TRACE_ALL, TRACE_EVENTS, TRACE_NONE, TRACE_OBJREFS, TRACE_RECEIVES, TRACE_REFTYPES, TRACE_SENDS
Modifier and TypeFieldDescriptionstatic final int
All tracing is enabled.static final int
Tracing enabled for internal event handling.static final int
All tracing is disabled.static final int
Tracing enabled for internal management of object references.static final int
Tracing enabled for JDWP packets received from target VM.static final int
Tracing enabled for internal management of reference types.static final int
Tracing enabled for JDWP packets sent to target VM. -
Method Summary
Modifier and TypeMethodDescriptionGet the base directory used for path searching.Get the boot class path for this virtual machine.Get the class path for this virtual machine.Methods declared in interface Mirror
toString, virtualMachine
Modifier and TypeMethodDescriptiontoString()
Returns a String describing this mirrorGets the VirtualMachine to which this Mirror belongs.Methods declared in interface VirtualMachine
allClasses, allModules, allThreads, canAddMethod, canBeModified, canForceEarlyReturn, canGetBytecodes, canGetClassFileVersion, canGetConstantPool, canGetCurrentContendedMonitor, canGetInstanceInfo, canGetMethodReturnValues, canGetModuleInfo, canGetMonitorFrameInfo, canGetMonitorInfo, canGetOwnedMonitorInfo, canGetSourceDebugExtension, canGetSyntheticAttribute, canPopFrames, canRedefineClasses, canRequestMonitorEvents, canRequestVMDeathEvent, canUnrestrictedlyRedefineClasses, canUseInstanceFilters, canUseSourceNameFilters, canWatchFieldAccess, canWatchFieldModification, classesByName, description, dispose, eventQueue, eventRequestManager, exit, getDefaultStratum, instanceCounts, mirrorOf, mirrorOf, mirrorOf, mirrorOf, mirrorOf, mirrorOf, mirrorOf, mirrorOf, mirrorOf, mirrorOfVoid, name, process, redefineClasses, resume, setDebugTraceMode, setDefaultStratum, suspend, topLevelThreadGroups, version
Modifier and TypeMethodDescriptionReturns all loaded types in the target VM.default List
<ModuleReference> Returns all modules.Returns a list of the live threads in the target VM.boolean
Deprecated.A JVM TI based JDWP back-end will never set this capability to true.boolean
Determines if the target VM is a read-only VM.boolean
Determines if the target VM supports the forcing of a method to return early.boolean
Determines if the target VM supports the retrieval of a method's bytecodes.boolean
Determines if the target VM supports reading class file major and minor versions.boolean
Determines if the target VM supports getting constant pool information of a class.boolean
Determines if the target VM supports the retrieval of the monitor for which a thread is currently waiting.boolean
Determines if the target VM supports the accessing of class instances, instance counts, and referring objects.boolean
Determines if the target VM supports the inclusion of return values inMethodExitEvent
s.default boolean
Determines if the target VM supports getting information about modules.boolean
Determines if the target VM supports getting which frame has acquired a monitor.boolean
Determines if the target VM supports the retrieval of the monitor information for an object.boolean
Determines if the target VM supports the retrieval of the monitors owned by a thread.boolean
Determines if the target VM supports getting the source debug extension.boolean
Determines if the target VM supports the query of the synthetic attribute of a method or field.boolean
Determines if the target VM supports popping frames of a threads stack.boolean
Determines if the target VM supports any level of class redefinition.boolean
Determines if the target VM supports the creation ofMonitorContendedEnterRequest
s.boolean
Determines if the target VM supports the creation ofVMDeathRequest
s.boolean
Deprecated.A JVM TI based JDWP back-end will never set this capability to true.boolean
Determines if the target VM supports filtering events by specific instance object.boolean
Determines if the target VM supports the filtering of class prepare events by source name.boolean
Determines if the target VM supports watchpoints for field access.boolean
Determines if the target VM supports watchpoints for field modification.classesByName
(String className) Returns the loaded reference types that match a given name.Returns text information on the target VM and the debugger support that mirrors it.void
dispose()
Invalidates this virtual machine mirror.Returns the event queue for this virtual machine.Returns the event request manager for this virtual machine.void
exit
(int exitCode) Causes the mirrored VM to terminate with the given error code.Return this VM's default stratum.long[]
instanceCounts
(List<? extends ReferenceType> refTypes) Returns the number of instances of each ReferenceType in the 'refTypes' list.mirrorOf
(boolean value) Creates aBooleanValue
for the given value.mirrorOf
(byte value) Creates aByteValue
for the given value.mirrorOf
(char value) Creates aCharValue
for the given value.mirrorOf
(double value) Creates aDoubleValue
for the given value.mirrorOf
(float value) Creates aFloatValue
for the given value.mirrorOf
(int value) Creates anIntegerValue
for the given value.mirrorOf
(long value) Creates aLongValue
for the given value.mirrorOf
(short value) Creates aShortValue
for the given value.Creates a string in this virtual machine.Creates aVoidValue
.name()
Returns the name of the target VM as reported by the propertyjava.vm.name
.process()
Returns theProcess
object for this virtual machine if launched by aLaunchingConnector
void
redefineClasses
(Map<? extends ReferenceType, byte[]> classToBytes) All classes given are redefined according to the definitions supplied.void
resume()
Continues the execution of the application running in this virtual machine.void
setDebugTraceMode
(int traceFlags) Traces the activities performed by the com.sun.jdi implementation.void
setDefaultStratum
(String stratum) Set this VM's default stratum (seeLocation
for a discussion of strata).void
suspend()
Suspends the execution of the application running in this virtual machine.Returns each thread group which does not have a parent.version()
Returns the version of the Java Runtime Environment in the target VM as reported by the propertyjava.version
.
-
Method Details
-
classPath
-
bootClassPath
-
baseDirectory
String baseDirectory()Get the base directory used for path searching. Relative directories in the class path and boot class path can be resolved through this directory name.- Returns:
- the base directory.
-