public class FieldData extends Object
Modifier and Type | Method and Description |
---|---|
static FieldData |
create(String hostKlass,
String fieldName,
String fieldType)
Creates the synthetic field data.
|
String |
hostClass()
Answers the class for the field holder.
|
String |
name()
Answers the field name.
|
static FieldData |
parse(Field field)
Parses the field data from the existing field.
|
String |
safeValue(Object object)
Gets the string representation of field value,
if appropriate.
|
String |
typeClass()
Answers the class for the field type
|
int |
vmOffset()
The VM offset for the field, as discovered.
|
public static FieldData create(String hostKlass, String fieldName, String fieldType)
hostKlass
- class name where the field is declaredfieldName
- field namefieldType
- string representation of field typepublic static FieldData parse(Field field)
field
- field to parsepublic String typeClass()
public String hostClass()
public String name()
public String safeValue(Object object)
object
- the object to read the contents frompublic int vmOffset()
Copyright © 2015. All Rights Reserved.