jdk/src/jdk.jdi/share/classes/com/sun/jdi/request/EventRequest.java
author clanger
Fri, 16 Jun 2017 14:09:31 +0200
changeset 45564 0149773a140c
parent 34894 3248b89d1921
permissions -rw-r--r--
8181417: Code cleanups in com.sun.jdi Reviewed-by: alanb, stuefe, sspitsyn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
     2
 * Copyright (c) 1998, 2017, 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
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    28
import com.sun.jdi.Mirror;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    29
import com.sun.jdi.ThreadReference;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    30
import com.sun.jdi.VMDisconnectedException;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    31
import com.sun.jdi.VMOutOfMemoryException;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    32
import com.sun.jdi.VirtualMachine;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    33
import com.sun.jdi.event.BreakpointEvent;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    34
import com.sun.jdi.event.EventQueue;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    35
import com.sun.jdi.event.EventSet;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    36
import com.sun.jdi.event.VMDisconnectEvent;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * Represents a request for notification of an event.  Examples include
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * {@link BreakpointRequest} and {@link ExceptionRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * When an event occurs for which an enabled request is present,
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    42
 * an  {@link EventSet EventSet} will
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    43
 * be placed on the {@link EventQueue EventQueue}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * The collection of existing event requests is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * managed by the {@link EventRequestManager}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * The number of events generated for an event request can be controlled
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * through filters. Filters provide additional constraints that an event
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * must satisfy before it is placed on the event queue. Multiple filters can
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * be used by making multiple calls to filter addition methods such as
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * {@link ExceptionRequest#addClassFilter(java.lang.String classPattern)}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * Filters are added to an event one at a time only while the event is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * disabled. Multiple filters are applied with CUT-OFF AND, in the order
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * it was added to the request. Only events that satisfy all filters are
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * placed in the event queue.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * The set of available filters is dependent on the event request,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * some examples of filters are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * <li>Thread filters allow control over the thread for which events are
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * generated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * <li>Class filters allow control over the class in which the event
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * <li>Instance filters allow control over the instance in which
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * the event occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * <li>Count filters allow control over the number of times an event
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * is reported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * Filters can dramatically improve debugger performance by reducing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * amount of event traffic sent from the target VM to the debugger VM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 * <p>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    72
 * Any method on {@code EventRequest} which
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    73
 * takes {@code EventRequest} as an parameter may throw
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    74
 * {@link VMDisconnectedException} if the target VM is
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    75
 * disconnected and the {@link VMDisconnectEvent} has been or is
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    76
 * available to be read from the {@link EventQueue}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 * <p>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    78
 * Any method on {@code EventRequest} which
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    79
 * takes {@code EventRequest} as an parameter may throw
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    80
 * {@link VMOutOfMemoryException} if the target VM has run out of memory.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 *
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    82
 * @see BreakpointEvent
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    83
 * @see EventQueue
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 * @see EventRequestManager
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 * @author Robert Field
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 * @since  1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
public interface EventRequest extends Mirror {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * Determines if this event request is currently enabled.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     *
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    94
     * @return {@code true} if enabled;
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    95
     * {@code false} otherwise.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    boolean isEnabled();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * Enables or disables this event request. While this event request is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * disabled, the event request will be ignored and the target VM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * will not be stopped if any of its threads reaches the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * event request.  Disabled event requests still exist,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * and are included in event request lists such as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * {@link EventRequestManager#breakpointRequests()}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     *
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   107
     * @param val {@code true} if the event request is to be enabled;
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   108
     * {@code false} otherwise.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * @throws InvalidRequestStateException if this request
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * has been deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * @throws IllegalThreadStateException if this is a StepRequest,
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   112
     * {@code val} is {@code true}, and the
23008
0688ba09248f 8034203: Change JavaDoc for com.sun.jdi.request.EventRequest.setEnabled(boolean val)
farvidsson
parents: 20742
diff changeset
   113
     * thread named in the request has died or is not yet started.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    void setEnabled(boolean val);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    /**
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   118
     * Same as {@link #setEnabled setEnabled(true)}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * @throws InvalidRequestStateException if this request
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * has been deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * @throws IllegalThreadStateException if this is a StepRequest
23008
0688ba09248f 8034203: Change JavaDoc for com.sun.jdi.request.EventRequest.setEnabled(boolean val)
farvidsson
parents: 20742
diff changeset
   122
     * and the thread named in the request has died or is not yet started.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    void enable();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    /**
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   127
     * Same as {@link #setEnabled setEnabled(false)}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * @throws InvalidRequestStateException if this request
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * has been deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    void disable();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * Limit the requested event to be reported at most once after a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * given number of occurrences.  The event is not reported
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   136
     * the first {@code count - 1} times this filter is reached.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * To request a one-off event, call this method with a count of 1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * Once the count reaches 0, any subsequent filters in this request
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * are applied. If none of those filters cause the event to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * suppressed, the event is reported. Otherwise, the event is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * reported. In either case subsequent events are never reported for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * this request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * @param count the number of ocurrences before generating an event.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * @throws InvalidRequestStateException if this request is currently
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * enabled or has been deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * Filters may be added only to disabled requests.
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   149
     * @throws IllegalArgumentException if {@code count}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * is less than one.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    void addCountFilter(int count);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    /** Suspend no threads when the event occurs */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    int SUSPEND_NONE = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    /** Suspend only the thread which generated the event when the event occurs */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    int SUSPEND_EVENT_THREAD = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    /** Suspend all threads when the event occurs */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
    int SUSPEND_ALL = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * Determines the threads to suspend when the requested event occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * in the target VM. Use {@link #SUSPEND_ALL} to suspend all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * threads in the target VM (the default). Use {@link #SUSPEND_EVENT_THREAD}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * to suspend only the thread which generated the event. Use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * {@link #SUSPEND_NONE} to suspend no threads.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * Thread suspensions through events have the same functionality
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * as explicitly requested suspensions. See
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   170
     * {@link ThreadReference#suspend} and
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   171
     * {@link VirtualMachine#suspend} for details.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * @param policy the selected suspend policy.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * @throws InvalidRequestStateException if this request is currently
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * enabled or has been deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * Suspend policy may only be set in disabled requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * @throws IllegalArgumentException if the policy argument
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * contains an illegal value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    void setSuspendPolicy(int policy);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * Returns a value which describes the threads to suspend when the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * requested event occurs in the target VM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * The returned value is  {@link #SUSPEND_ALL},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * {@link #SUSPEND_EVENT_THREAD}, or {@link #SUSPEND_NONE}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * @return the current suspend mode for this request
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    int suspendPolicy();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * Add an arbitrary key/value "property" to this request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * The property can be used by a client of the JDI to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * associate application information with the request;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * These client-set properties are not used internally
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * by the JDI.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * <p>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   199
     * The {@code get/putProperty} methods provide access to
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * a small per-instance map. This is <b>not</b> to be confused
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * with {@link java.util.Properties}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * If value is null this method will remove the property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @see #getProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    void putProperty(Object key, Object value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * Returns the value of the property with the specified key.  Only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * properties added with {@link #putProperty} will return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * a non-null value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * @return the value of this property or null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * @see #putProperty
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    Object getProperty(Object key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
}