Package ghidra.pcode.struct
Class DefaultUseropDecl
java.lang.Object
ghidra.pcode.struct.DefaultUseropDecl
- All Implemented Interfaces:
StructuredSleigh.UseropDecl
-
Constructor Summary
ConstructorDescriptionDefaultUseropDecl
(StructuredSleigh ctx, DataType retType, String name, List<DataType> paramTypes) -
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
-
Constructor Details
-
DefaultUseropDecl
public DefaultUseropDecl(StructuredSleigh ctx, DataType retType, String name, List<DataType> paramTypes)
-
-
Method Details
-
getReturnType
Description copied from interface:StructuredSleigh.UseropDecl
Get the userop's return type- Specified by:
getReturnType
in interfaceStructuredSleigh.UseropDecl
- Returns:
- the return type
-
getName
Description copied from interface:StructuredSleigh.UseropDecl
Get the name of the userop- Specified by:
getName
in interfaceStructuredSleigh.UseropDecl
- Returns:
- the name
-
getParameterTypes
Description copied from interface:StructuredSleigh.UseropDecl
Get the parameter types of the userop- Specified by:
getParameterTypes
in interfaceStructuredSleigh.UseropDecl
- Returns:
- the types, in order of parameters
-
call
Description copied from interface:StructuredSleigh.UseropDecl
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.- Specified by:
call
in interfaceStructuredSleigh.UseropDecl
- Parameters:
args
- the arguments to pass- Returns:
- a handle to the statement
-