-
- 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 Value extends Mirror
The mirror for a value in the target VM. This interface is the root of a value hierarchy encompassing primitive values and object values.Some examples of where values may be accessed:
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 The following tables illustrate which subinterfaces of Value are used to mirror values in the target VM --
Subinterfaces of PrimitiveValueKind of value For example -
expression in targetIs mirrored as an
instance ofTypeof valueValue.type()a boolean trueBooleanValueBooleanTypea byte (byte)4ByteValueByteTypea char 'a'CharValueCharTypea double 3.1415926DoubleValueDoubleTypea float 2.5fFloatValueFloatTypean int 22IntegerValueIntegerTypea long 1024LLongValueLongTypea short (short)12ShortValueShortTypea void VoidValueVoidTypeSubinterfaces of ObjectReferenceKind of value For example -
expression in targetIs mirrored as an
instance ofTypeof valueValue.type()a class instance thisObjectReferenceClassTypean array new int[5]ArrayReferenceArrayTypea string "hello"StringReferenceClassTypea thread Thread.currentThread()ThreadReferenceClassTypea thread group Thread.currentThread()
.getThreadGroup()ThreadGroupReferenceClassTypea java.lang.Class
instancethis.getClass()ClassObjectReferenceClassTypea class loader this.getClass()
.getClassLoader()ClassLoaderReferenceClassTypeOther values Kind of value For example -
expression in targetIs mirrored as Typeof valuenull nullnulln/a - Since:
- 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Typetype()Returns the run-time type of this value.-
Methods declared in interface com.sun.jdi.Mirror
toString, virtualMachine
-
-