|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.snapshot.model.FieldDescriptor
org.eclipse.mat.snapshot.model.Field
public final class Field
Describes a member variable, i.e. name, signature and value.
Constructor Summary | |
---|---|
Field(String name,
int type,
Object value)
Create a representation of member variable |
Method Summary | |
---|---|
Object |
getValue()
Gets the value of the field. |
void |
setValue(Object object)
Set the value of the field. |
String |
toString()
A readable representation of the field. |
Methods inherited from class org.eclipse.mat.snapshot.model.FieldDescriptor |
---|
getName, getType, getVerboseSignature, setName, setType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Field(String name, int type, Object value)
name
- the name of the fieldtype
- the type IObject.Type
value
- value is one of
ObjectReference - for an object field
Byte - for a byte field
Short - for a short field
Integer - for an int field
Long - for a long field
Boolean - for a boolean field
Char - for a char field
Float - for a float field
Double - for a double fieldMethod Detail |
---|
public Object getValue()
public void setValue(Object object)
object
- ObjectReference - for an object field
Byte - for a byte field
Short - for a short field
Integer - for an int field
Long - for a long field
Boolean - for a boolean field
Char - for a char field
Float - for a float field
Double - for a double fieldpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |