Package ghidra.pcode.struct
Class DefaultUseropDecl
java.lang.Object
ghidra.pcode.struct.DefaultUseropDecl
- All Implemented Interfaces:
StructuredSleigh.UseropDecl
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultUseropDecl(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.UseropDeclGet the userop's return type- Specified by:
getReturnTypein interfaceStructuredSleigh.UseropDecl- Returns:
- the return type
-
getName
Description copied from interface:StructuredSleigh.UseropDeclGet the name of the userop- Specified by:
getNamein interfaceStructuredSleigh.UseropDecl- Returns:
- the name
-
getParameterTypes
Description copied from interface:StructuredSleigh.UseropDeclGet the parameter types of the userop- Specified by:
getParameterTypesin interfaceStructuredSleigh.UseropDecl- Returns:
- the types, in order of parameters
-
call
Description copied from interface:StructuredSleigh.UseropDeclGenerate 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
voidresult type, the "value" should not be used. Otherwise, a warning will likely be generated, and the "result value" will be undefined.- Specified by:
callin interfaceStructuredSleigh.UseropDecl- Parameters:
args- the arguments to pass- Returns:
- a handle to the statement
-