com.bluemarsh.jswat.util
Class FieldAndValue
java.lang.Object
|
+--com.bluemarsh.jswat.util.FieldAndValue
- public class FieldAndValue
- extends java.lang.Object
Encapsulates a Field, its Value, and the Object containing the
Field. May also represent a local variable, so the field will
be null, and the object will be the LocalVariable.
- Author:
- Nathan Fiedler
Field Summary |
com.sun.jdi.Field |
field
Field reference, or null if local variable. |
com.sun.jdi.LocalVariable |
localVar
Local variable, if object and field are null. |
com.sun.jdi.ObjectReference |
object
Object containing field, or null if static field or local variable. |
com.sun.jdi.Value |
value
Value of Field (always non-null). |
Constructor Summary |
FieldAndValue(com.sun.jdi.Field field,
com.sun.jdi.Value value,
com.sun.jdi.ObjectReference object)
Constructs a FieldAndValue to hold a field and its value. |
FieldAndValue(com.sun.jdi.LocalVariable local,
com.sun.jdi.Value value)
Constructs a FieldAndValue to hold a local variable and
its value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
public com.sun.jdi.Field field
- Field reference, or null if local variable.
value
public com.sun.jdi.Value value
- Value of Field (always non-null).
object
public com.sun.jdi.ObjectReference object
- Object containing field, or null if static field or local variable.
localVar
public com.sun.jdi.LocalVariable localVar
- Local variable, if object and field are null.
FieldAndValue
public FieldAndValue(com.sun.jdi.Field field,
com.sun.jdi.Value value,
com.sun.jdi.ObjectReference object)
- Constructs a FieldAndValue to hold a field and its value.
- Parameters:
field
- Field reference.value
- Value of Field.object
- ObjectReference.
FieldAndValue
public FieldAndValue(com.sun.jdi.LocalVariable local,
com.sun.jdi.Value value)
- Constructs a FieldAndValue to hold a local variable and
its value.
- Parameters:
value
- Value of LocalVariable.local
- LocalVariable.