- すべてのスーパー・インタフェース:
Mirror
- 既知のすべてのサブインタフェース:
ArrayReference
,BooleanValue
,ByteValue
,CharValue
,ClassLoaderReference
,ClassObjectReference
,DoubleValue
,FloatValue
,IntegerValue
,LongValue
,ModuleReference
,ObjectReference
,PrimitiveValue
,ShortValue
,StringReference
,ThreadGroupReference
,ThreadReference
,VoidValue
public interface Value extends Mirror
ターゲットVM内に存在する特定の値のミラーです。 このインタフェースは、プリミティブ値とオブジェクト値の両方を含む値階層のルートです。
次に、値にアクセスする例をいくつか示します。
ObjectReference.getValue(Field)
- フィールドの値 StackFrame.getValue(LocalVariable)
- 変数の値 VirtualMachine.mirrorOf(double)
- ターゲットVM内でJDIクライアントによって作成される ModificationWatchpointEvent.valueToBe()
- イベントで返される
次の表は、ValueのサブインタフェースがターゲットVM内の値をミラー・リングするために使用されることを示しています。
値の種類 | たとえば - ターゲット内での表現 |
次のインタフェースとして ミラー化される |
値Value.type() のType |
---|---|---|---|
boolean | true |
BooleanValue |
BooleanType |
byte | (byte)4 |
ByteValue |
ByteType |
char | 'a' |
CharValue |
CharType |
double | 3.1415926 |
DoubleValue |
DoubleType |
float | 2.5f |
FloatValue |
FloatType |
int | 22 |
IntegerValue |
IntegerType |
long | 1024L |
LongValue |
LongType |
short | (short)12 |
ShortValue |
ShortType |
void | VoidValue |
VoidType |
値の種類 | たとえば - ターゲット内での表現 |
次のインタフェースとして ミラー化される |
値Value.type() のType |
---|---|---|---|
クラスのインスタンス | this |
ObjectReference |
ClassType |
配列 | new int[5] |
ArrayReference |
ArrayType |
文字列 | "hello" |
StringReference |
ClassType |
スレッド | Thread.currentThread() |
ThreadReference |
ClassType |
スレッド・グループ | Thread.currentThread() .getThreadGroup() |
ThreadGroupReference |
ClassType |
java.lang.Class インスタンス |
this.getClass() |
ClassObjectReference |
ClassType |
クラス・ローダー | this.getClass() .getClassLoader() |
ClassLoaderReference |
ClassType |
値の種類 | たとえば - ターゲット内での表現 |
次のようにミラー化される | 値のType |
---|---|---|---|
null | null |
null |
n/a |
- 導入されたバージョン:
- 1.3
-
メソッドのサマリー
インタフェース com.sun.jdi.Mirrorで宣言されたメソッド
toString, virtualMachine