Package ghidra.app.util.pcode
Interface PcodeFormatter<T>
- All Known Implementing Classes:
AbstractPcodeFormatter
,AttributedStringPcodeFormatter
,PcodeFrame.MyFormatter
,PcodeProgram.MyFormatter
,StringPcodeFormatter
public interface PcodeFormatter<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
formatOps
(Language language, AddressFactory addrFactory, List<PcodeOp> pcodeOps) Format the pcode ops with a specifiedAddressFactory
.default T
Format the p-code opsformatTemplates
(Language language, List<OpTpl> pcodeOpTemplates) Format the p-code op templatesgetPcodeOpTemplates
(AddressFactory addrFactory, List<PcodeOp> pcodeOps) Convert flattened p-code ops into templates.
-
Method Details
-
formatOps
Format the p-code ops- Parameters:
language
- the language generating the p-codepcodeOps
- the p-code ops- Returns:
- the formatted result
-
formatOps
Format the pcode ops with a specifiedAddressFactory
. For use when the pcode ops can reference program-specific address spaces.- Parameters:
language
- the language generating the p-codeaddrFactory
- addressFactory to use when generating pcodeop templatespcodeOps
- p-code ops to format- Returns:
- the formatted result
-
formatTemplates
Format the p-code op templates- Parameters:
language
- the language generating the p-codepcodeOpTemplates
- the templates- Returns:
- the formatted result
-
getPcodeOpTemplates
Convert flattened p-code ops into templates.- Parameters:
addrFactory
- the language's address factorypcodeOps
- the p-code ops to convert- Returns:
- p-code op templates
-