public interface Field extends MutableVariable
ObjectVariable
interface, if the represented field contains not primitive value (object
value).
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.
ObjectVariable
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Returns name of enclosing class.
|
String |
getDeclaredType()
Declared type of this field.
|
JPDAClassType |
getDeclaringClass()
Get the class type in which this field was declared.
|
String |
getName()
Declared name of field.
|
boolean |
isStatic()
Returns
true for static fields. |
void |
setValue(String value)
Sets value of this field represented as text.
|
setFromMirrorObject
createMirrorObject, getType, getValue
String getName()
String getClassName()
JPDAClassType getDeclaringClass()
String getDeclaredType()
boolean isStatic()
true
for static fields.true
for static fieldsvoid setValue(String value) throws InvalidExpressionException
setValue
in interface MutableVariable
value
- The string value to be set to this variableInvalidExpressionException
- if the expression is not correct