Class FieldLayout

java.lang.Object
org.openjdk.jol.info.FieldLayout
All Implemented Interfaces:
Comparable<FieldLayout>

public class FieldLayout extends Object implements Comparable<FieldLayout>
Holds the field info with the layout.
  • Field Details

    • f

      private final FieldData f
    • size

      private final long size
    • offset

      private final long offset
  • Constructor Details

    • FieldLayout

      public FieldLayout(FieldData fieldData, long offset, long size)
      Construct field layout with discovered offset and field size.
      Parameters:
      fieldData - field data for the field
      offset - discovered offset
      size - 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

      public String typeClass()
      Answers the class for the field type
      Returns:
      string representation of field type
    • hostClass

      public String hostClass()
      Answers the class for the field holder.
      Returns:
      string representation of holder class
    • name

      public String name()
      Answers the field name.
      Returns:
      field name
    • shortFieldName

      public String shortFieldName()
    • classShortName

      public String classShortName()
    • data

      FieldData data()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(FieldLayout o)
      Specified by:
      compareTo in interface Comparable<FieldLayout>
    • toString

      public String toString()
      Overrides:
      toString in class Object