Package ghidra.pcode.exec
Class PcodeExpression
java.lang.Object
ghidra.pcode.exec.PcodeProgram
ghidra.pcode.exec.PcodeExpression
A p-code program that evaluates a Sleigh expression
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA clever means of capturing the result of the expression.Nested classes/interfaces inherited from class ghidra.pcode.exec.PcodeProgram
PcodeProgram.MyAppender, PcodeProgram.MyFormatter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final PcodeUseropLibrary<?> static final StringFields inherited from class ghidra.pcode.exec.PcodeProgram
code, language, useropNames -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPcodeExpression(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 -
Method Summary
Modifier and TypeMethodDescription<T> Tevaluate(PcodeExecutor<T> executor) Evaluate the expression using the given executorMethods inherited from class ghidra.pcode.exec.PcodeProgram
execute, format, format, fromInject, fromInstruction, fromInstruction, getCode, getHead, getLanguage, getUseropName, toString
-
Field Details
-
RESULT_NAME
- See Also:
-
CAPTURING
-
-
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-codecode- the list of p-code opsuseropSymbols- a map of expected userop symbols
-
-
Method Details
-
evaluate
Evaluate the expression using the given executor- Type Parameters:
T- the type of the result- Parameters:
executor- the executor- Returns:
- the result
-