1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.jdi.request; |
26 package com.sun.jdi.request; |
27 |
27 |
28 import com.sun.jdi.*; |
28 import com.sun.jdi.event.EventQueue; |
|
29 import com.sun.jdi.event.EventSet; |
|
30 import com.sun.jdi.event.ModificationWatchpointEvent; |
29 |
31 |
30 /** |
32 /** |
31 * Request for notification when a field is set. |
33 * Request for notification when a field is set. |
32 * This event will be triggered when a value is assigned to the specified |
34 * This event will be triggered when a value is assigned to the specified |
33 * field with a Java™ programming |
35 * field with a Java™ programming |
35 * Java Native Interface (JNI) set function (<code>Set<Type>Field, |
37 * Java Native Interface (JNI) set function (<code>Set<Type>Field, |
36 * SetStatic<Type>Field</code>). |
38 * SetStatic<Type>Field</code>). |
37 * Setting a field to a value which is the same as the previous value |
39 * Setting a field to a value which is the same as the previous value |
38 * still triggers this event. |
40 * still triggers this event. |
39 * Modification by JDI does not trigger this event. |
41 * Modification by JDI does not trigger this event. |
40 * When an enabled |
42 * When an enabled ModificationWatchpointRequest is satisfied, an |
41 * ModificationWatchpointRequest is satisfied, an |
43 * {@link EventSet event set} containing a |
42 * {@link com.sun.jdi.event.EventSet event set} containing a |
44 * {@link ModificationWatchpointEvent ModificationWatchpointEvent} |
43 * {@link com.sun.jdi.event.ModificationWatchpointEvent ModificationWatchpointEvent} |
45 * will be placed on the {@link EventQueue EventQueue}. |
44 * will be placed on |
46 * The collection of existing watchpoints is |
45 * the {@link com.sun.jdi.event.EventQueue EventQueue}. |
|
46 * The collection of existing |
|
47 * watchpoints is |
|
48 * managed by the {@link EventRequestManager}. |
47 * managed by the {@link EventRequestManager}. |
49 * |
48 * |
50 * @see com.sun.jdi.event.ModificationWatchpointEvent |
49 * @see ModificationWatchpointEvent |
51 * @see AccessWatchpointRequest |
50 * @see AccessWatchpointRequest |
52 * @see com.sun.jdi.event.EventQueue |
51 * @see EventQueue |
53 * @see EventRequestManager |
52 * @see EventRequestManager |
54 * |
53 * |
55 * @author Robert Field |
54 * @author Robert Field |
56 * @since 1.3 |
55 * @since 1.3 |
57 */ |
56 */ |