jdk/src/jdk.jdi/share/classes/com/sun/jdi/Value.java
author clanger
Fri, 16 Jun 2017 14:09:31 +0200
changeset 45564 0149773a140c
parent 45001 9526cc76a8ea
child 46140 3abb2959292f
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
/*
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
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;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 45001
diff changeset
    28
import com.sun.jdi.event.ModificationWatchpointEvent;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 45001
diff changeset
    29
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * The mirror for a value in the target VM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * This interface is the root of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * value hierarchy encompassing primitive values and object values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * Some examples of where values may be accessed:
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    36
 * <BLOCKQUOTE><TABLE><CAPTION style="display:none">layout</CAPTION>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * <TR>
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 45001
diff changeset
    38
 *   <TD>{@link ObjectReference#getValue(Field)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 *                 ObjectReference.getValue(Field)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 *   <TD>- value of a field
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <TR>
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 45001
diff changeset
    42
 *   <TD>{@link StackFrame#getValue(LocalVariable)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 *                 StackFrame.getValue(LocalVariable)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 *   <TD>- value of a variable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 *   <TD>{@link VirtualMachine#mirrorOf(double)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *                 VirtualMachine.mirrorOf(double)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 *   <TD>- created in the target VM by the JDI client
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * <TR>
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 45001
diff changeset
    50
 *   <TD>{@link ModificationWatchpointEvent#valueToBe()
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 *                 ModificationWatchpointEvent.valueToBe()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *   <TD>- returned with an event
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * </TABLE></BLOCKQUOTE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * The following table illustrates which subinterfaces of Value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * are used to mirror values in the target VM --
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    57
 * <TABLE BORDER="1">
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    58
 * <CAPTION style="display:none">Maps each kind of value to a mirrored
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    59
 *  instance of a subinterface of Value</CAPTION>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    60
 * <TR style="background-color:#EEEEFF">
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 *   <TH id="primval" colspan=4>Subinterfaces of {@link PrimitiveValue}</TH>
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    62
 * <TR style="background-color:#EEEEFF">
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    63
 *   <TH id="kind"     style="text-align:left">Kind of value</TH>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    64
 *   <TH id="example"  style="text-align:left">For example -<br>expression in target</TH>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    65
 *   <TH id="mirrored" style="text-align:left">Is mirrored as an<br>instance of</TH>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
    66
 *   <TH id="type"     style="text-align:left">{@link Type} of value<br>{@link #type() Value.type()}</TH>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 *   <TD headers="primval kind">     a boolean</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    69
 *   <TD headers="primval example">  {@code true}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 *   <TD headers="primval mirrored"> {@link BooleanValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 *   <TD headers="primval type">     {@link BooleanType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 *   <TD headers="primval kind">     a byte</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    74
 *   <TD headers="primval example">  {@code (byte)4}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 *   <TD headers="primval mirrored"> {@link ByteValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 *   <TD headers="primval type">     {@link ByteType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
 *   <TD headers="primval kind">     a char</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    79
 *   <TD headers="primval example">  {@code 'a'}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
 *   <TD headers="primval mirrored"> {@link CharValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 *   <TD headers="primval type">     {@link CharType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 *   <TD headers="primval kind">     a double</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    84
 *   <TD headers="primval example">  {@code 3.1415926}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 *   <TD headers="primval mirrored"> {@link DoubleValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 *   <TD headers="primval type">     {@link DoubleType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 *   <TD headers="primval kind">     a float</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    89
 *   <TD headers="primval example">  {@code 2.5f}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 *   <TD headers="primval mirrored"> {@link FloatValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 *   <TD headers="primval type">     {@link FloatType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 *   <TD headers="primval kind">     an int</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    94
 *   <TD headers="primval example">  {@code 22}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 *   <TD headers="primval mirrored"> {@link IntegerValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 *   <TD headers="primval type">     {@link IntegerType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 *   <TD headers="primval kind">     a long</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
    99
 *   <TD headers="primval example">  {@code 1024L}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 *   <TD headers="primval mirrored"> {@link LongValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 *   <TD headers="primval type">     {@link LongType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 *   <TD headers="primval kind">     a short</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   104
 *   <TD headers="primval example">  {@code (short)12}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 *   <TD headers="primval mirrored"> {@link ShortValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 *   <TD headers="primval type">     {@link ShortType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 *   <TD headers="primval kind">     a void</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   109
 *   <TD headers="primval example">  </TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 *   <TD headers="primval mirrored"> {@link VoidValue}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 *   <TD headers="primval type">     {@link VoidType}</TD>
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   112
 * <TR style="background-color:#EEEEFF">
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 *   <TH id="objref" colspan=4>Subinterfaces of {@link ObjectReference}</TH>
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   114
 * <TR style="background-color:#EEEEFF">
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   115
 *   <TH id="kind2"     style="text-align:left">Kind of value</TH>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   116
 *   <TH id="example2"  style="text-align:left">For example -<br>expression in target</TH>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   117
 *   <TH id="mirrored2" style="text-align:left">Is mirrored as an<br>instance of</TH>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   118
 *   <TH id="type2"     style="text-align:left">{@link Type} of value<br>{@link #type() Value.type()}</TH>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 *   <TD headers="objref kind2">     a class instance</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   121
 *   <TD headers="objref example2">  {@code this}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 *   <TD headers="objref mirrored2"> {@link ObjectReference}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
 *   <TD headers="objref type2">     {@link ClassType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 *   <TD headers="objref kind2">     an array</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   126
 *   <TD headers="objref example2">  {@code new int[5]}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 *   <TD headers="objref mirrored2"> {@link ArrayReference}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 *   <TD headers="objref type2">     {@link ArrayType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
 *   <TD headers="objref kind2">     a string</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   131
 *   <TD headers="objref example2">  {@code "hello"}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 *   <TD headers="objref mirrored2"> {@link StringReference}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 *   <TD headers="objref type2">     {@link ClassType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
 *   <TD headers="objref kind2">     a thread</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   136
 *   <TD headers="objref example2">  {@code Thread.currentThread()}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
 *   <TD headers="objref mirrored2"> {@link ThreadReference}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 *   <TD headers="objref type2">     {@link ClassType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 *   <TD headers="objref kind2">     a thread group</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   141
 *   <TD headers="objref example2">  {@code Thread.currentThread()}<br>&nbsp;&nbsp;{@code .getThreadGroup()}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
 *   <TD headers="objref mirrored2"> {@link ThreadGroupReference}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
 *   <TD headers="objref type2">     {@link ClassType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
 * <TR>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   145
 *   <TD headers="objref kind2">     a {@code java.lang.Class}<br>instance</TD>
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   146
 *   <TD headers="objref example2">  {@code this.getClass()}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
 *   <TD headers="objref mirrored2"> {@link ClassObjectReference}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
 *   <TD headers="objref type2">     {@link ClassType}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
 *   <TD headers="objref kind2">     a class loader</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   151
 *   <TD headers="objref example2">  {@code this.getClass()}<br>&nbsp;&nbsp;{@code .getClassLoader()}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
 *   <TD headers="objref mirrored2"> {@link ClassLoaderReference}</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
 *   <TD headers="objref type2">     {@link ClassType}</TD>
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   154
 * <TR style="background-color:#EEEEFF">
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 *   <TH id="other" colspan=4>Other</TH>
45001
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   156
 * <TR style="background-color:#EEEEFF">
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   157
 *   <TD id="kind3"     style="text-align:left">Kind of value</TD>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   158
 *   <TD id="example3"  style="text-align:left">For example -<br>expression in target</TD>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   159
 *   <TD id="mirrored3" style="text-align:left">Is mirrored as</TD>
9526cc76a8ea 8179538: Update jdk.jdi to be HTML-5 friendly
ksrini
parents: 34894
diff changeset
   160
 *   <TD id="type3"     style="text-align:left">{@link Type} of value</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
 * <TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
 *   <TD headers="other kind3">     null</TD>
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   163
 *   <TD headers="other example3">  {@code null}</TD>
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   164
 *   <TD headers="other mirrored3"> {@code null}</TD>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
 *   <TD headers="other type3">     n/a</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 * </TABLE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 * @author Robert Field
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
 * @author Gordon Hirsch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
 * @author James McIlree
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
 * @since  1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
20742
4ae78e8060d6 8008662: Add @jdk.Exported to JDK-specific/exported APIs
alanb
parents: 5506
diff changeset
   174
public interface Value extends Mirror {
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 45001
diff changeset
   175
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Returns the run-time type of this value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * @see Type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @return a {@link Type} which mirrors the value's type in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * target VM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    Type type();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
}