Package org.eclipse.mat.snapshot.model
Class FieldDescriptor
java.lang.Object
org.eclipse.mat.snapshot.model.FieldDescriptor
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Field
Describes a field of an object, i.e. its name and signature.
- See Also:
-
Constructor Summary
ConstructorDescriptionFieldDescriptor
(String name, int type) Create a field for a class - just contains the field name and type, not the value -
Method Summary
-
Constructor Details
-
FieldDescriptor
Create a field for a class - just contains the field name and type, not the value- Parameters:
name
- field nametype
- field type fromIObject.Type
-
-
Method Details
-
getName
Gets the field name- Returns:
- the actual field name
-
getType
public int getType()Gets the type as a number.- Returns:
- as
IObject.Type
-
setName
Sets the name of the field. Normally the name should not be changed.- Parameters:
name
- the name of the field.- No Reference:
-
setType
public void setType(int type) Sets the type of the field. Normally the type should not be changed.- Parameters:
type
- the type of the field asIObject.Type
- No Reference:
-
getVerboseSignature
Returns the type of the field. Used for example by the object inspector pane.- Returns:
- ref byte short int long boolean char float double
-
toString
A readable representation of the field descriptor. Do not rely on the format of the result.
-