Interface PcodeFormatter<T>

All Known Implementing Classes:
AbstractPcodeFormatter, AttributedStringPcodeFormatter, PcodeFrame.MyFormatter, PcodeProgram.MyFormatter, StringPcodeFormatter

public interface PcodeFormatter<T>
  • Method Details

    • formatOps

      default T formatOps(Language language, List<PcodeOp> pcodeOps)
      Format the p-code ops
      Parameters:
      language - the language generating the p-code
      pcodeOps - the p-code ops
      Returns:
      the formatted result
    • formatOps

      default T formatOps(Language language, AddressFactory addrFactory, List<PcodeOp> pcodeOps)
      Format the pcode ops with a specified AddressFactory. For use when the pcode ops can reference program-specific address spaces.
      Parameters:
      language - the language generating the p-code
      addrFactory - addressFactory to use when generating pcodeop templates
      pcodeOps - p-code ops to format
      Returns:
      the formatted result
    • formatTemplates

      T formatTemplates(Language language, List<OpTpl> pcodeOpTemplates)
      Format the p-code op templates
      Parameters:
      language - the language generating the p-code
      pcodeOpTemplates - the templates
      Returns:
      the formatted result
    • getPcodeOpTemplates

      static List<OpTpl> getPcodeOpTemplates(AddressFactory addrFactory, List<PcodeOp> pcodeOps)
      Convert flattened p-code ops into templates.
      Parameters:
      addrFactory - the language's address factory
      pcodeOps - the p-code ops to convert
      Returns:
      p-code op templates