Module openj9.dtfj

Class PrintObjectFieldsHelper

java.lang.Object
com.ibm.j9ddr.vm29.pointer.helper.PrintObjectFieldsHelper

public class PrintObjectFieldsHelper extends Object
Helper class to print j9object fields. Also contains helper functions for formatting output.
  • Constructor Details

    • PrintObjectFieldsHelper

      public PrintObjectFieldsHelper()
  • Method Details

    • printJ9ObjectFields

      public static void printJ9ObjectFields(PrintStream out, int tabLevel, com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer localClazz, U8Pointer dataStart, com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer localObject, long address) throws CorruptDataException
      Prints all the j9object fields
      Parameters:
      out - output stream
      tabLevel - indicates the starting tab level
      localClazz - the class of the j9object
      dataStart - start location of the j9object
      localObject - pointer to the j9object
      address - address of the object being printed
      Throws:
      CorruptDataException
    • printJ9ObjectFields

      public static void printJ9ObjectFields(PrintStream out, int tabLevel, com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer localClazz, U8Pointer dataStart, com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer localObject, long address, String[] nestingHierarchy, boolean showNestedFields) throws CorruptDataException
      Prints all the j9object fields
      Parameters:
      out - The output stream
      tabLevel - Indicates the starting tab level
      localClazz - The class of the j9object
      dataStart - The start location of the object. If printing a nested type this is the effect address of the nested type
      localObject - The pointer to the j9object
      address - The address of the object being printed. If printing a nested type this is the address of the top level container
      nestingHierarchy - This is an array of field names that specifies which nested type contained in the top level container to be printed The first array element is the name of a nested field in the top level container. The second array element is the name of a nested field that is a member of the of the nested field specified in the first array element. And so on...
      showNestedFields - Specifies if the entire structure of nested fields should be outputted
      Throws:
      CorruptDataException
    • padding

      public static void padding(PrintStream out, int level)