Package org.openjdk.jol.info
Class FieldLayout
java.lang.Object
org.openjdk.jol.info.FieldLayout
- All Implemented Interfaces:
Comparable<FieldLayout>
Holds the field info with the layout.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldLayout
(FieldData fieldData, long offset, long size) Construct field layout with discovered offset and field size. -
Method Summary
-
Field Details
-
f
-
size
private final long size -
offset
private final long offset
-
-
Constructor Details
-
FieldLayout
Construct field layout with discovered offset and field size.- Parameters:
fieldData
- field data for the fieldoffset
- discovered offsetsize
- discovered field size
-
-
Method Details
-
offset
public long offset()Answers field offset- Returns:
- field offset
-
size
public long size()Answers field size- Returns:
- field size
-
typeClass
Answers the class for the field type- Returns:
- string representation of field type
-
hostClass
Answers the class for the field holder.- Returns:
- string representation of holder class
-
name
Answers the field name.- Returns:
- field name
-
shortFieldName
-
classShortName
-
data
FieldData data() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<FieldLayout>
-
toString
-