public final class Field extends FieldDescriptor implements Serializable
Constructor and Description |
---|
Field(String name,
int type,
Object value)
Create a representation of member variable
|
Modifier and Type | Method and Description |
---|---|
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.
|
getName, getType, getVerboseSignature, setName, setType
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 fieldpublic 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 FieldDescriptor