-
- All Superinterfaces:
-
Mirror
- All Known Subinterfaces:
-
ArrayReference
,BooleanValue
,ByteValue
,CharValue
,ClassLoaderReference
,ClassObjectReference
,DoubleValue
,FloatValue
,IntegerValue
,LongValue
,ModuleReference
,ObjectReference
,PrimitiveValue
,ShortValue
,StringReference
,ThreadGroupReference
,ThreadReference
,VoidValue
public interface Valueextends Mirror
目标VM中值的镜像。 此接口是包含原始值和对象值的值层次结构的根。可以访问值的一些示例:
ObjectReference.getValue(Field)
- value of a field StackFrame.getValue(LocalVariable)
- value of a variable VirtualMachine.mirrorOf(double)
- created in the target VM by the JDI client ModificationWatchpointEvent.valueToBe()
- returned with an event 下表说明了Value的哪些子接口用于镜像目标VM中的值 -
Subinterfaces ofPrimitiveValue
Kind of value For example -
expression in target Is mirrored as an
instance ofType
of valueValue.type()
a booleantrue
BooleanValue
BooleanType
a byte(byte)4
ByteValue
ByteType
a char'a'
CharValue
CharType
a double3.1415926
DoubleValue
DoubleType
a float2.5f
FloatValue
FloatType
an int22
IntegerValue
IntegerType
a long1024L
LongValue
LongType
a short(short)12
ShortValue
ShortType
a voidVoidValue
VoidType
ObjectReference
Kind of value For example -
expression in target Is mirrored as an
instance ofType
of valueValue.type()
a class instancethis
ObjectReference
ClassType
an arraynew int[5]
ArrayReference
ArrayType
a string"hello"
StringReference
ClassType
a threadThread.currentThread()
ThreadReference
ClassType
a thread groupThread.currentThread()
.getThreadGroup()
ThreadGroupReference
ClassType
ajava.lang.Class
instancethis.getClass()
ClassObjectReference
ClassType
a class loaderthis.getClass()
.getClassLoader()
ClassLoaderReference
ClassType
expression in target Is mirrored asType
of value nullnull
null
n/a- 从以下版本开始:
- 1.3