Package ghidra.pcode.exec
Class SleighPcodeUseropDefinition.Builder
java.lang.Object
ghidra.pcode.exec.SleighPcodeUseropDefinition.Builder
- Enclosing class:
SleighPcodeUseropDefinition<T>
A builder for a particular userop
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
Builder
(SleighPcodeUseropDefinition.Factory factory, String name) -
Method Summary
Modifier and TypeMethodDescriptionbody
(CharSequence additionalBody) Add Sleigh source to the body<T> SleighPcodeUseropDefinition
<T> build()
Build the actual definitionparams
(Collection<String> additionalParams) Add parameters with the given names (to the end)
-
Constructor Details
-
Builder
-
-
Method Details
-
params
Add parameters with the given names (to the end)- Parameters:
additionalParams
- the additional parameter names- Returns:
- this builder
-
params
- See Also:
-
body
Add Sleigh source to the body- Parameters:
additionalBody
- the additional source
-
build
Build the actual definitionNOTE: Compilation of the sleigh source is delayed until the first invocation, since the compiler must know about the varnodes used as parameters. TODO: There may be some way to template it at the p-code level instead of the Sleigh source level.
- Type Parameters:
T
- no particular type, except to match the executor- Returns:
- the definition
-