jdk/src/jdk.jdi/share/classes/com/sun/jdi/Value.java
changeset 45564 0149773a140c
parent 45001 9526cc76a8ea
child 46140 3abb2959292f
equal deleted inserted replaced
45563:ece4ae6beba3 45564:0149773a140c
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package com.sun.jdi;
    26 package com.sun.jdi;
    27 
    27 
       
    28 import com.sun.jdi.event.ModificationWatchpointEvent;
       
    29 
    28 /**
    30 /**
    29  * The mirror for a value in the target VM.
    31  * The mirror for a value in the target VM.
    30  * This interface is the root of a
    32  * This interface is the root of a
    31  * value hierarchy encompassing primitive values and object values.
    33  * value hierarchy encompassing primitive values and object values.
    32  * <P>
    34  * <P>
    33  * Some examples of where values may be accessed:
    35  * Some examples of where values may be accessed:
    34  * <BLOCKQUOTE><TABLE><CAPTION style="display:none">layout</CAPTION>
    36  * <BLOCKQUOTE><TABLE><CAPTION style="display:none">layout</CAPTION>
    35  * <TR>
    37  * <TR>
    36  *   <TD>{@link ObjectReference#getValue(com.sun.jdi.Field)
    38  *   <TD>{@link ObjectReference#getValue(Field)
    37  *                 ObjectReference.getValue(Field)}
    39  *                 ObjectReference.getValue(Field)}
    38  *   <TD>- value of a field
    40  *   <TD>- value of a field
    39  * <TR>
    41  * <TR>
    40  *   <TD>{@link StackFrame#getValue(com.sun.jdi.LocalVariable)
    42  *   <TD>{@link StackFrame#getValue(LocalVariable)
    41  *                 StackFrame.getValue(LocalVariable)}
    43  *                 StackFrame.getValue(LocalVariable)}
    42  *   <TD>- value of a variable
    44  *   <TD>- value of a variable
    43  * <TR>
    45  * <TR>
    44  *   <TD>{@link VirtualMachine#mirrorOf(double)
    46  *   <TD>{@link VirtualMachine#mirrorOf(double)
    45  *                 VirtualMachine.mirrorOf(double)}
    47  *                 VirtualMachine.mirrorOf(double)}
    46  *   <TD>- created in the target VM by the JDI client
    48  *   <TD>- created in the target VM by the JDI client
    47  * <TR>
    49  * <TR>
    48  *   <TD>{@link com.sun.jdi.event.ModificationWatchpointEvent#valueToBe()
    50  *   <TD>{@link ModificationWatchpointEvent#valueToBe()
    49  *                 ModificationWatchpointEvent.valueToBe()}
    51  *                 ModificationWatchpointEvent.valueToBe()}
    50  *   <TD>- returned with an event
    52  *   <TD>- returned with an event
    51  * </TABLE></BLOCKQUOTE>
    53  * </TABLE></BLOCKQUOTE>
    52  * <P>
    54  * <P>
    53  * The following table illustrates which subinterfaces of Value
    55  * The following table illustrates which subinterfaces of Value
   168  * @author James McIlree
   170  * @author James McIlree
   169  * @since  1.3
   171  * @since  1.3
   170  */
   172  */
   171 
   173 
   172 public interface Value extends Mirror {
   174 public interface Value extends Mirror {
       
   175 
   173     /**
   176     /**
   174      * Returns the run-time type of this value.
   177      * Returns the run-time type of this value.
   175      *
   178      *
   176      * @see Type
   179      * @see Type
   177      * @return a {@link Type} which mirrors the value's type in the
   180      * @return a {@link Type} which mirrors the value's type in the