Class CStringFieldFormatter
java.lang.Object
com.ibm.j9ddr.tools.ddrinteractive.BaseFieldFormatter
com.ibm.j9ddr.vm29.tools.ddrinteractive.structureformat.extensions.CStringFieldFormatter
- All Implemented Interfaces:
IFieldFormatter
Field formatter that adds the value of any char * string fields.
-
Field Summary
Fields declared in class com.ibm.j9ddr.tools.ddrinteractive.BaseFieldFormatter
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpostFormat
(String name, String type, String declaredType, int typeCode, long address, PrintStream out, Context context, IStructureFormatter structureFormatter) Method called by the Structure command after preFormat() and format().Methods declared in class com.ibm.j9ddr.tools.ddrinteractive.BaseFieldFormatter
format, preFormat
-
Field Details
-
MAXIMUM_LENGTH
public static final int MAXIMUM_LENGTH- See Also:
-
-
Constructor Details
-
CStringFieldFormatter
public CStringFieldFormatter()
-
-
Method Details
-
postFormat
public FormatWalkResult postFormat(String name, String type, String declaredType, int typeCode, long address, PrintStream out, Context context, IStructureFormatter structureFormatter) Description copied from interface:IFieldFormatter
Method called by the Structure command after preFormat() and format().- Parameters:
name
- Name of field being formatted.type
- Type of field to be formatted. E.g. struct J9JavaVMdeclaredType
- Type as declared in C. E.g. This may be char* where type is U8*typeCode
- StructureHelper type code. E.g. TYPE_STRUCTUREaddress
- Address of field to be formattedout
- PrintStream to write result to. Do not write a new line at the end of your output.context
- Current DDRInteractive contextstructureFormatter
- StructureFormatter; useful if you need to rerun a different field format (e.g. when working with J9SRPs)- Returns:
- KEEP_WALKING if the format walk should keep going (delegating to other formatters), STOP_WALKING if the format walk should stop
-