Package ghidra.app.util.pcode
Class StringPcodeFormatter
java.lang.Object
ghidra.app.util.pcode.AbstractPcodeFormatter<String,ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender>
ghidra.app.util.pcode.StringPcodeFormatter
- All Implemented Interfaces:
PcodeFormatter<String>
public class StringPcodeFormatter
extends AbstractPcodeFormatter<String,ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender>
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.app.util.pcode.AbstractPcodeFormatter
AbstractPcodeFormatter.FormatResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppendercreateAppender(Language language, boolean indent) Create the appender for a formatting invocationprotected AbstractPcodeFormatter.FormatResultformatOpTemplate(ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender appender, OpTpl op) Format a single op templatebooleanCheck if this formatter is configured to display raw p-codeMethods inherited from class ghidra.app.util.pcode.AbstractPcodeFormatter
formatAddress, formatCallOtherName, formatConstant, formatInput, formatLabelInput, formatMemoryInput, formatOutput, formatSize, formatTemplates, formatUnique, formatVarnode, formatVarnodeNice, formatVarnodeRaw, isLineLabelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.app.util.pcode.PcodeFormatter
formatOps, formatOps
-
Constructor Details
-
StringPcodeFormatter
public StringPcodeFormatter()
-
-
Method Details
-
createAppender
protected ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender createAppender(Language language, boolean indent) Description copied from class:AbstractPcodeFormatterCreate the appender for a formatting invocation- Specified by:
createAppenderin classAbstractPcodeFormatter<String,ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender> - Parameters:
language- the language of the p-code to formatindent- indicates whether each line should be indented to accommodate line labels- Returns:
- the new appender
-
isFormatRaw
public boolean isFormatRaw()Description copied from class:AbstractPcodeFormatterCheck if this formatter is configured to display raw p-code- Overrides:
isFormatRawin classAbstractPcodeFormatter<String,ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender> - Returns:
- true if displaying raw, false otherwise
-
formatOpTemplate
protected AbstractPcodeFormatter.FormatResult formatOpTemplate(ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender appender, OpTpl op) Description copied from class:AbstractPcodeFormatterFormat a single op template- Overrides:
formatOpTemplatein classAbstractPcodeFormatter<String,ghidra.app.util.pcode.StringPcodeFormatter.ToStringAppender> - Parameters:
appender- the appender to receive the formatted textop- the template to format- Returns:
- instructions to continue or terminate. The loop in
AbstractPcodeFormatter.formatTemplates(Language, List)is terminated if this method returnsAbstractPcodeFormatter.FormatResult.TERMINATE.
-