Package org.eclipse.mat.snapshot.model
Class Field
java.lang.Object
org.eclipse.mat.snapshot.model.FieldDescriptor
org.eclipse.mat.snapshot.model.Field
- All Implemented Interfaces:
Serializable
Describes a member variable, i.e. name, signature and value.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.mat.snapshot.model.FieldDescriptor
getName, getType, getVerboseSignature, setName, setType
-
Constructor Details
-
Field
Create a representation of member variable- Parameters:
name
- the name of the fieldtype
- the typeIObject.Type
value
- value is one of
-
-
Method Details
-
getValue
Gets the value of the field. -
setValue
Set the value of the field. Normally the value should not be changed. Currently this is used after deserializing static fields to change the object reference to one having a link to the current snapshot. -
toString
A readable representation of the field. Do not rely on the format of the result.- Overrides:
toString
in classFieldDescriptor
- Returns:
- a description of this field.
-