public interface VirtualMachine
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
allScripts()
Returns the live list of
ScriptReferences loaded in the VirtualMachine
or an empty list. |
java.util.List |
allThreads()
Returns the live list of
ThreadReferences in the VirtualMachine
or an empty list. |
boolean |
canUpdateBreakpoints()
Returns if the
VirtualMachine supports updating existing breakpoints or not |
java.lang.String |
description()
Returns the description of the
VirtualMachine. |
void |
dispose()
Disposes the
VirtualMachine and cleans up held objects |
EventQueue |
eventQueue()
Returns the
EventQueue associated with this VirtualMachine. |
EventRequestManager |
eventRequestManager()
Returns the
EventRequestManager associated with this VirtualMachine. |
BooleanValue |
mirrorOf(boolean bool)
Returns a new
BooleanValue. |
NumberValue |
mirrorOf(java.lang.Number number)
Returns a new
NumberValue. |
StringValue |
mirrorOf(java.lang.String string)
Returns a
StringValue initialized to the given String. |
NullValue |
mirrorOfNull()
Returns the
NullValue value. |
UndefinedValue |
mirrorOfUndefined()
Returns the
UndefinedValue value. |
java.lang.String |
name()
Returns the name of the
VirtualMachine. |
void |
resume()
Sends a resume request to the VM
|
void |
suspend()
Sends a suspend request to the VM
|
void |
terminate()
Terminates and disconnects the VM
|
void |
updateBreakpoint(IJavaScriptBreakpoint breakpoint)
Update the given
IJavaScriptBreakpoint |
java.lang.String |
version()
Returns the version string of the
VirtualMachine. |
static final int DEFAULT_TIMEOUT
void resume()
void suspend()
void terminate()
java.lang.String name()
VirtualMachine or nulljava.lang.String description()
VirtualMachine or nulljava.lang.String version()
VirtualMachine or nulljava.util.List allThreads()
ThreadReferences in the VirtualMachine
or an empty list.nullThreadReferences in the VirtualMachine
or an empty list, never nulljava.util.List allScripts()
ScriptReferences loaded in the VirtualMachine
or an empty list.nullScriptReferences
or an empty list, never nullvoid dispose()
VirtualMachine and cleans up held objectsUndefinedValue mirrorOfUndefined()
UndefinedValue value.UndefinedValue valueBooleanValue mirrorOf(boolean bool)
BooleanValue.bool - the boolean primitive to mirror in the VirtualMachineBooleanValueNumberValue mirrorOf(java.lang.Number number)
NumberValue.number - the Number to mirror in the VirtualMachineNumberValueStringValue mirrorOf(java.lang.String string)
StringValue initialized to the given String.string - the initial value for the mirrored StringValueStringValueEventRequestManager eventRequestManager()
EventRequestManager associated with this VirtualMachine.null if the VirtualMachine has been disposed or terminated.EventRequestManager for this VirtualMachine or nullEventQueue eventQueue()
EventQueue associated with this VirtualMachine.null if the VirtualMachine has been disposed or terminated.EventQueue for this VirtualMachine or nullboolean canUpdateBreakpoints()
VirtualMachine supports updating existing breakpoints or nottrue if this VirtualMachine can update existing breakpoints false otherwisevoid updateBreakpoint(IJavaScriptBreakpoint breakpoint)
IJavaScriptBreakpointbreakpoint - the breakpoint to update, cannot be nullCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.