public interface MutableVariable extends Variable
Since JDI interfaces evolve from one version to another, it's strongly recommended not to implement this interface in client code. New methods can be added to this interface at any time to keep up with the JDI functionality.
LocalVariable
,
Field
,
JPDAWatch
Modifier and Type | Method and Description |
---|---|
void |
setFromMirrorObject(Object obj)
Set the value of this variable to match the given mirror object.
|
void |
setValue(String value)
Sets a value represented as text, to this variable.
|
createMirrorObject, getType, getValue
void setValue(String value) throws InvalidExpressionException
value
- The string value to be set to this variableInvalidExpressionException
- if the expression is not correctvoid setFromMirrorObject(Object obj) throws InvalidObjectException
obj
- The mirror objectInvalidObjectException
- when it was not possible to set value of
this variable from the provided object.Variable.createMirrorObject()