|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openjdk.jol.info.FieldData
public class FieldData
Holds the field information, without the layout.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FieldData create(String hostKlass, String fieldName, String fieldType)
hostKlass
- class name where the field is declaredfieldName
- field namefieldType
- string representation of field type
public static FieldData parse(Field field)
field
- field to parse
public String typeClass()
public String hostClass()
public String name()
public String safeValue(Object object)
object
- the object to read the contents from
public int vmOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |