- 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 Summary
Constructors Constructor Description PrintObjectFieldsHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidpadding(PrintStream out, int level)static voidprintJ9ObjectFields(PrintStream out, int tabLevel, com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer localClazz, U8Pointer dataStart, com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer localObject, long address)Prints all the j9object fieldsstatic voidprintJ9ObjectFields(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)Prints all the j9object fields
-
-
-
Method Detail
-
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 streamtabLevel- indicates the starting tab levellocalClazz- the class of the j9objectdataStart- start location of the j9objectlocalObject- pointer to the j9objectaddress- 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 streamtabLevel- Indicates the starting tab levellocalClazz- The class of the j9objectdataStart- The start location of the object. If printing a nested type this is the effect address of the nested typelocalObject- The pointer to the j9objectaddress- The address of the object being printed. If printing a nested type this is the address of the top level containernestingHierarchy- 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)
-
-