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
Modifier and TypeClassDescriptionprotected static class
A 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
Modifier and TypeFieldDescriptionprotected static final PcodeUseropLibrary
<?> static final String
Fields inherited from class ghidra.pcode.exec.PcodeProgram
code, language, useropNames
-
Constructor Summary
ModifierConstructorDescriptionprotected
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 -
Method Summary
Modifier and TypeMethodDescription<T> T
evaluate
(PcodeExecutor<T> executor) Evaluate the expression using the given executorMethods inherited from class ghidra.pcode.exec.PcodeProgram
execute, fromInject, fromInstruction, fromInstruction, getCode, getHead, getLanguage, 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
-