jdk/src/jdk.jdi/share/classes/com/sun/jdi/request/EventRequestManager.java
author chegar
Sun, 17 Aug 2014 15:54:13 +0100
changeset 25859 3317bb8137f4
parent 23010 jdk/src/share/classes/com/sun/jdi/request/EventRequestManager.java@6dadb192ad81
child 30037 3e785fad2c3b
permissions -rw-r--r--
8054834: Modular Source Code Reviewed-by: alanb, chegar, ihse, mduigou Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 20742
diff changeset
     2
 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package com.sun.jdi.request;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import com.sun.jdi.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.List;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * Manages the creation and deletion of {@link EventRequest}s. A single
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * implementor of this interface exists in a particuar VM and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * is accessed through {@link VirtualMachine#eventRequestManager()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * @see EventRequest
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * @see com.sun.jdi.event.Event
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * @see BreakpointRequest
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * @see com.sun.jdi.event.BreakpointEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * @see VirtualMachine
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * @author Robert Field
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * @since  1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
20742
4ae78e8060d6 8008662: Add @jdk.Exported to JDK-specific/exported APIs
alanb
parents: 5506
diff changeset
    47
@jdk.Exported
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
public interface EventRequestManager extends Mirror {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * Creates a new disabled {@link ClassPrepareRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     * @return the created {@link ClassPrepareRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    ClassPrepareRequest createClassPrepareRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * Creates a new disabled {@link ClassUnloadRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * @return the created {@link ClassUnloadRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    ClassUnloadRequest createClassUnloadRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * Creates a new disabled {@link ThreadStartRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * @return the created {@link ThreadStartRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    ThreadStartRequest createThreadStartRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * Creates a new disabled {@link ThreadDeathRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * @return the created {@link ThreadDeathRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    ThreadDeathRequest createThreadDeathRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * Creates a new disabled {@link ExceptionRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * A specific exception type and its subclasses can be selected
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * for exception events. Caught exceptions,  uncaught exceptions,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * or both can be selected. Note, however, that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * at the time an exception is thrown, it is not always
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * possible to determine whether it is truly caught. See
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * {@link com.sun.jdi.event.ExceptionEvent#catchLocation} for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * details.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @param refType If non-null, specifies that exceptions which are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     *                instances of refType will be reported. Note: this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     *                will include instances of sub-types.  If null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     *                all instances will be reported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * @param notifyCaught If true, caught exceptions will be reported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * @param notifyUncaught If true, uncaught exceptions will be reported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * @return the created {@link ExceptionRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    ExceptionRequest createExceptionRequest(ReferenceType refType,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                                            boolean notifyCaught,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                                            boolean notifyUncaught);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * Creates a new disabled {@link MethodEntryRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * @return the created {@link MethodEntryRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    MethodEntryRequest createMethodEntryRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * Creates a new disabled {@link MethodExitRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * @return the created {@link MethodExitRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    MethodExitRequest createMethodExitRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * Creates a new disabled {@link MonitorContendedEnterRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * @return the created {@link MonitorContendedEnterRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    MonitorContendedEnterRequest createMonitorContendedEnterRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * Creates a new disabled {@link MonitorContendedEnteredRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * @return the created {@link MonitorContendedEnteredRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    MonitorContendedEnteredRequest createMonitorContendedEnteredRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * Creates a new disabled {@link MonitorWaitRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * @return the created {@link MonitorWaitRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    MonitorWaitRequest createMonitorWaitRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * Creates a new disabled {@link MonitorWaitedRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * @return the created {@link MonitorWaitedRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    MonitorWaitedRequest createMonitorWaitedRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * Creates a new disabled {@link StepRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * The returned request will control stepping only in the specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * <code>thread</code>; all other threads will be unaffected.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * A <code>size</code>value of {@link com.sun.jdi.request.StepRequest#STEP_MIN} will generate a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * step event each time the code index changes. It represents the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * smallest step size available and often maps to the instruction
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * level.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * A <code>size</code> value of {@link com.sun.jdi.request.StepRequest#STEP_LINE} will generate a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * step event each time the source line changes unless line number information is not available,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * in which case a STEP_MIN will be done instead.  For example, no line number information is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * available during the execution of a method that has been rendered obsolete by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     * by a {@link com.sun.jdi.VirtualMachine#redefineClasses} operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
     * A <code>depth</code> value of {@link com.sun.jdi.request.StepRequest#STEP_INTO} will generate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
     * step events in any called methods.  A <code>depth</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * of {@link com.sun.jdi.request.StepRequest#STEP_OVER} restricts step events to the current frame
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * or caller frames. A <code>depth</code> value of {@link com.sun.jdi.request.StepRequest#STEP_OUT}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * restricts step events to caller frames only. All depth
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     * restrictions are relative to the call stack immediately before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * step takes place.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * Only one pending step request is allowed per thread.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * Note that a typical debugger will want to cancel stepping
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * after the first step is detected.  Thus a next line method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * would do the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * <code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     *     EventRequestManager mgr = myVM.{@link VirtualMachine#eventRequestManager eventRequestManager}();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     *     StepRequest request = mgr.createStepRequest(myThread,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     *                                                 StepRequest.{@link StepRequest#STEP_LINE STEP_LINE},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     *                                                 StepRequest.{@link StepRequest#STEP_OVER STEP_OVER});
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     *     request.{@link EventRequest#addCountFilter addCountFilter}(1);  // next step only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
     *     request.enable();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
     *     myVM.{@link VirtualMachine#resume resume}();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     * </code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     * @param thread the thread in which to step
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     * @param depth the step depth
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     * @param size the step size
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     * @return the created {@link StepRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     * @throws DuplicateRequestException if there is already a pending
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     * step request for the specified thread.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     * @throws IllegalArgumentException if the size or depth arguments
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     * contain illegal values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
    StepRequest createStepRequest(ThreadReference thread,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
                                  int size,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
                                  int depth);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * Creates a new disabled {@link BreakpointRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * The given {@link Location} must have a valid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     * (that is, non-negative) code index. The new
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
     * breakpoint is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     * EventRequestManager. Multiple breakpoints at the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * same location are permitted. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * @param location the location of the new breakpoint.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * @return the created {@link BreakpointRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     * @throws NativeMethodException if location is within a native method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    BreakpointRequest createBreakpointRequest(Location location);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     * Creates a new disabled watchpoint which watches accesses to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     * specified field. The new
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     * watchpoint is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     * EventRequestManager. Multiple watchpoints on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     * same field are permitted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     * Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     * Use {@link VirtualMachine#canWatchFieldAccess()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
     * @param field the field to watch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * @return the created watchpoint
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     * the target virtual machine does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
    AccessWatchpointRequest createAccessWatchpointRequest(Field field);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * Creates a new disabled watchpoint which watches accesses to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * specified field. The new
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     * watchpoint is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * EventRequestManager. Multiple watchpoints on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     * same field are permitted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * Use {@link VirtualMachine#canWatchFieldModification()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     * @param field the field to watch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     * @return the created watchpoint
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     * the target virtual machine does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
    ModificationWatchpointRequest createModificationWatchpointRequest(Field field);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     * Creates a new disabled {@link VMDeathRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     * The new request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
     * EventRequestManager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
     * Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
     * This request (if enabled) will cause a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     * {@link com.sun.jdi.event.VMDeathEvent}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * to be sent on termination of the target VM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * A VMDeathRequest with a suspend policy of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     * {@link EventRequest#SUSPEND_ALL SUSPEND_ALL}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * can be used to assure processing of incoming
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     * {@link EventRequest#SUSPEND_NONE SUSPEND_NONE} or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     * {@link EventRequest#SUSPEND_EVENT_THREAD SUSPEND_EVENT_THREAD}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     * events before VM death.  If all event processing is being
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
     * done in the same thread as event sets are being read,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
     * enabling the request is all that is needed since the VM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     * will be suspended until the {@link com.sun.jdi.event.EventSet}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
     * containing the {@link com.sun.jdi.event.VMDeathEvent}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
     * is resumed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     * Use {@link VirtualMachine#canRequestVMDeathEvent()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     * @return the created request
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
    VMDeathRequest createVMDeathRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
     * Removes an eventRequest. The eventRequest is disabled and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
     * the removed from the requests managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     * EventRequestManager. Once the eventRequest is deleted, no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
     * operations (for example, {@link EventRequest#setEnabled})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     * are permitted - attempts to do so will generally cause an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     * {@link InvalidRequestStateException}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     * No other eventRequests are effected.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     * Because this method changes the underlying lists of event
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * requests, attempting to directly delete from a list returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     * by a request accessor (e.g. below):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     *   Iterator iter = requestManager.stepRequests().iterator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     *   while (iter.hasNext()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     *      requestManager.deleteEventRequest(iter.next());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     *  }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     * may cause a {@link java.util.ConcurrentModificationException}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     * Instead use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
     * {@link #deleteEventRequests(List) deleteEventRequests(List)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
     * or copy the list before iterating.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     * @param eventRequest the eventRequest to remove
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
    void deleteEventRequest(EventRequest eventRequest);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     * Removes a list of {@link EventRequest}s.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
     * @see #deleteEventRequest(EventRequest)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * @param eventRequests the list of eventRequests to remove
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
    void deleteEventRequests(List<? extends EventRequest> eventRequests);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     * Remove all breakpoints managed by this EventRequestManager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     * @see #deleteEventRequest(EventRequest)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
    void deleteAllBreakpoints();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
     * Return an unmodifiable list of the enabled and disabled step requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     * @return the all {@link StepRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
    List<StepRequest> stepRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     * Return an unmodifiable list of the enabled and disabled class prepare requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     * @return the all {@link ClassPrepareRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    List<ClassPrepareRequest> classPrepareRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * Return an unmodifiable list of the enabled and disabled class unload requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * @return the all {@link ClassUnloadRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    List<ClassUnloadRequest> classUnloadRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     * Return an unmodifiable list of the enabled and disabled thread start requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
     * @return the all {@link ThreadStartRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
    List<ThreadStartRequest> threadStartRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     * Return an unmodifiable list of the enabled and disabled thread death requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
     * @return the all {@link ThreadDeathRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
    List<ThreadDeathRequest> threadDeathRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
     * Return an unmodifiable list of the enabled and disabled exception requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * @return the all {@link ExceptionRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
    List<ExceptionRequest> exceptionRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
     * Return an unmodifiable list of the enabled and disabled breakpoint requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     * @return the list of all {@link BreakpointRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
    List<BreakpointRequest> breakpointRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
     * Return an unmodifiable list of the enabled and disabled access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
     * watchpoint requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
     * @return the all {@link AccessWatchpointRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
    List<AccessWatchpointRequest> accessWatchpointRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
     * Return an unmodifiable list of the enabled and disabled modification
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
     * watchpoint requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
     * @return the all {@link ModificationWatchpointRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
    List<ModificationWatchpointRequest> modificationWatchpointRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
     * Return an unmodifiable list of the enabled and disabled method entry requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
     * @return the list of all {@link MethodEntryRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
    List<MethodEntryRequest> methodEntryRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
     * Return an unmodifiable list of the enabled and disabled method exit requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
     * @return the list of all {@link MethodExitRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
    List<MethodExitRequest> methodExitRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
     * Return an unmodifiable list of the enabled and disabled monitor contended enter requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
     * @return the list of all {@link MonitorContendedEnterRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
    List<MonitorContendedEnterRequest> monitorContendedEnterRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
     * Return an unmodifiable list of the enabled and disabled monitor contended entered requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
     * @return the list of all {@link MonitorContendedEnteredRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
    List<MonitorContendedEnteredRequest> monitorContendedEnteredRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     * Return an unmodifiable list of the enabled and disabled monitor wait requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
     * @return the list of all {@link MonitorWaitRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
    List<MonitorWaitRequest> monitorWaitRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
     * Return an unmodifiable list of the enabled and disabled monitor waited requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
     * @return the list of all {@link MonitorWaitedRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
    List<MonitorWaitedRequest> monitorWaitedRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     * Return an unmodifiable list of the enabled and disabled VM death requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     * Note: the unsolicited VMDeathEvent does not have a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     * corresponding request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
     * @return the list of all {@link VMDeathRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
    List<VMDeathRequest> vmDeathRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
}