Class PcodeExpression

java.lang.Object
ghidra.pcode.exec.PcodeProgram
ghidra.pcode.exec.PcodeExpression

public class PcodeExpression extends PcodeProgram
A p-code program that evaluates a Sleigh expression
  • Field Details

  • Constructor Details

    • PcodeExpression

      protected PcodeExpression(SleighLanguage language, List<PcodeOp> code, Map<Integer,ghidra.pcodeCPort.slghsymbol.UserOpSymbol> useropSymbols)
      Construct a p-code program from source already compiled into p-code ops
      Parameters:
      language - the language that generated the p-code
      code - the list of p-code ops
      useropSymbols - a map of expected userop symbols
  • Method Details

    • evaluate

      public <T> T evaluate(PcodeExecutor<T> executor)
      Evaluate the expression using the given executor
      Type Parameters:
      T - the type of the result
      Parameters:
      executor - the executor
      Returns:
      the result