Package ghidra.pcode.struct
Interface StructuredSleigh.UseropDecl
- All Known Implementing Classes:
DefaultUseropDecl
- Enclosing class:
StructuredSleigh
protected static interface StructuredSleigh.UseropDecl
The declaration of an "imported" userop
Because Sleigh is typeless, structured Sleigh needs additional type information about the imported userop. The referenced userop may be implemented by another library and may be a Java callback or a p-code based userop, or something else. Note that if the userop is missing, it might not be detected until the calling Sleigh code is invoked for the first time.
-
Method Summary
Modifier and TypeMethodDescriptioncall
(StructuredSleigh.RVal... args) Generate an invocation of the useropgetName()
Get the name of the useropGet the parameter types of the useropGet the userop's return type
-
Method Details
-
getReturnType
DataType getReturnType()Get the userop's return type- Returns:
- the return type
-
getName
String getName()Get the name of the userop- Returns:
- the name
-
getParameterTypes
Get the parameter types of the userop- Returns:
- the types, in order of parameters
-
call
Generate an invocation of the useropIf the userop has a result type, then the resulting statement will also have a value. If the user has a
void
result type, the "value" should not be used. Otherwise, a warning will likely be generated, and the "result value" will be undefined.- Parameters:
args
- the arguments to pass- Returns:
- a handle to the statement
-