Class PrintObjectFieldsHelper
java.lang.Object
com.ibm.j9ddr.vm29.pointer.helper.PrintObjectFieldsHelper
Helper class to print j9object fields. Also contains helper functions
for formatting output.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
padding
(PrintStream out, int level) 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) Prints all the j9object fieldsstatic 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) Prints all the j9object fields
-
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 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
-