Interface SleighPcodeUseropDefinition.BuilderStage2
- All Known Subinterfaces:
SleighPcodeUseropDefinition.BuilderStage1
- All Known Implementing Classes:
AbstractSleighPcodeUseropDefinition.Builder
- Enclosing interface:
SleighPcodeUseropDefinition<T>
public static interface SleighPcodeUseropDefinition.BuilderStage2
Stage two of the builder, where parameters can no longer be added
-
Method Summary
Modifier and TypeMethodDescriptionbody(SleighPcodeUseropDefinition.BodyFunc additionalBody) Add Sleigh source to the body<T> SleighPcodeUseropDefinition<T> build()Build the actual definitionoverload()Start a new definition for a different signature
-
Method Details
-
body
Add Sleigh source to the body- Parameters:
additionalBody- the additional source- Returns:
- the builder
-
overload
SleighPcodeUseropDefinition.BuilderStage1 overload()Start a new definition for a different signature- Returns:
- the builder
-
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
-