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_SENDSModifier and TypeFieldDescriptionstatic final intAll tracing is enabled.static final intTracing enabled for internal event handling.static final intAll tracing is disabled.static final intTracing enabled for internal management of object references.static final intTracing enabled for JDWP packets received from target VM.static final intTracing enabled for internal management of reference types.static final intTracing 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, virtualMachineModifier 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, versionModifier 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.booleanDeprecated.A JVM TI based JDWP back-end will never set this capability to true.booleanDetermines if the target VM is a read-only VM.booleanDetermines if the target VM supports the forcing of a method to return early.booleanDetermines if the target VM supports the retrieval of a method's bytecodes.booleanDetermines if the target VM supports reading class file major and minor versions.booleanDetermines if the target VM supports getting constant pool information of a class.booleanDetermines if the target VM supports the retrieval of the monitor for which a thread is currently waiting.booleanDetermines if the target VM supports the accessing of class instances, instance counts, and referring objects.booleanDetermines if the target VM supports the inclusion of return values inMethodExitEvents.default booleanDetermines if the target VM supports getting information about modules.booleanDetermines if the target VM supports getting which frame has acquired a monitor.booleanDetermines if the target VM supports the retrieval of the monitor information for an object.booleanDetermines if the target VM supports the retrieval of the monitors owned by a thread.booleanDetermines if the target VM supports getting the source debug extension.booleanDetermines if the target VM supports the query of the synthetic attribute of a method or field.booleanDetermines if the target VM supports popping frames of a threads stack.booleanDetermines if the target VM supports any level of class redefinition.booleanDetermines if the target VM supports the creation ofMonitorContendedEnterRequests.booleanDetermines if the target VM supports the creation ofVMDeathRequests.booleanDeprecated.A JVM TI based JDWP back-end will never set this capability to true.booleanDetermines if the target VM supports filtering events by specific instance object.booleanDetermines if the target VM supports the filtering of class prepare events by source name.booleanDetermines if the target VM supports watchpoints for field access.booleanDetermines 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.voiddispose()Invalidates this virtual machine mirror.Returns the event queue for this virtual machine.Returns the event request manager for this virtual machine.voidexit(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 aBooleanValuefor the given value.mirrorOf(byte value) Creates aByteValuefor the given value.mirrorOf(char value) Creates aCharValuefor the given value.mirrorOf(double value) Creates aDoubleValuefor the given value.mirrorOf(float value) Creates aFloatValuefor the given value.mirrorOf(int value) Creates anIntegerValuefor the given value.mirrorOf(long value) Creates aLongValuefor the given value.mirrorOf(short value) Creates aShortValuefor 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 theProcessobject for this virtual machine if launched by aLaunchingConnectorvoidredefineClasses(Map<? extends ReferenceType, byte[]> classToBytes) All classes given are redefined according to the definitions supplied.voidresume()Continues the execution of the application running in this virtual machine.voidsetDebugTraceMode(int traceFlags) Traces the activities performed by the com.sun.jdi implementation.voidsetDefaultStratum(String stratum) Set this VM's default stratum (seeLocationfor a discussion of strata).voidsuspend()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.
-