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
ScriptReference s loaded in the VirtualMachine
or an empty list. |
java.util.List |
allThreads()
Returns the live list of
ThreadReference s 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 null
java.lang.String description()
VirtualMachine
or null
java.lang.String version()
VirtualMachine
or null
java.util.List allThreads()
ThreadReference
s in the VirtualMachine
or an empty list.null
ThreadReference
s in the VirtualMachine
or an empty list, never null
java.util.List allScripts()
ScriptReference
s loaded in the VirtualMachine
or an empty list.null
ScriptReference
s
or an empty list, never null
void dispose()
VirtualMachine
and cleans up held objectsUndefinedValue mirrorOfUndefined()
UndefinedValue
value.UndefinedValue
valueBooleanValue mirrorOf(boolean bool)
BooleanValue
.bool
- the boolean primitive to mirror in the VirtualMachine
BooleanValue
NumberValue mirrorOf(java.lang.Number number)
NumberValue
.number
- the Number
to mirror in the VirtualMachine
NumberValue
StringValue mirrorOf(java.lang.String string)
StringValue
initialized to the given String
.string
- the initial value for the mirrored StringValue
StringValue
EventRequestManager eventRequestManager()
EventRequestManager
associated with this VirtualMachine
.null
if the VirtualMachine
has been disposed or terminated.EventRequestManager
for this VirtualMachine
or null
EventQueue eventQueue()
EventQueue
associated with this VirtualMachine
.null
if the VirtualMachine
has been disposed or terminated.EventQueue
for this VirtualMachine
or null
boolean canUpdateBreakpoints()
VirtualMachine
supports updating existing breakpoints or nottrue
if this VirtualMachine
can update existing breakpoints false
otherwisevoid updateBreakpoint(IJavaScriptBreakpoint breakpoint)
IJavaScriptBreakpoint
breakpoint
- the breakpoint to update, cannot be null
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.