Package ghidra.program.model
Class TestDoubleFunctionSignature
- java.lang.Object
-
- ghidra.program.model.TestDoubleFunctionSignature
-
- All Implemented Interfaces:
FunctionSignature
public class TestDoubleFunctionSignature extends java.lang.Object implements FunctionSignature
A stub of theFunctionSignature
interface. This can be used to supply a test program manager or to spy on system internals by overriding methods as needed.
-
-
Field Summary
-
Fields inherited from interface ghidra.program.model.listing.FunctionSignature
VAR_ARGS_DISPLAY_STRING, VOID_PARAM_DISPLAY_STRING
-
-
Constructor Summary
Constructors Constructor Description TestDoubleFunctionSignature(java.lang.String prototypeString)
TestDoubleFunctionSignature(java.lang.String name, java.lang.String prototypeString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterDefinition[]
getArguments()
Return an array of parameters for the functionjava.lang.String
getComment()
Return the comment stringGenericCallingConvention
getGenericCallingConvention()
Returns the generic calling convention associated with this function definition.java.lang.String
getName()
Return the name of this functionjava.lang.String
getPrototypeString()
Return a string representation of the function signature without the calling convention specified.java.lang.String
getPrototypeString(boolean includeCallingConvention)
Return a string representation of the function signatureDataType
getReturnType()
Return the return data typeboolean
hasVarArgs()
Returns true if this function signature has a variable argument list (VarArgs).boolean
isEquivalentSignature(FunctionSignature signature)
Returns true if the given signature is equivalent to this signature.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:FunctionSignature
Return the name of this function- Specified by:
getName
in interfaceFunctionSignature
-
getArguments
public ParameterDefinition[] getArguments()
Description copied from interface:FunctionSignature
Return an array of parameters for the function- Specified by:
getArguments
in interfaceFunctionSignature
-
getReturnType
public DataType getReturnType()
Description copied from interface:FunctionSignature
Return the return data type- Specified by:
getReturnType
in interfaceFunctionSignature
-
getComment
public java.lang.String getComment()
Description copied from interface:FunctionSignature
Return the comment string- Specified by:
getComment
in interfaceFunctionSignature
-
hasVarArgs
public boolean hasVarArgs()
Description copied from interface:FunctionSignature
Returns true if this function signature has a variable argument list (VarArgs).- Specified by:
hasVarArgs
in interfaceFunctionSignature
-
getGenericCallingConvention
public GenericCallingConvention getGenericCallingConvention()
Description copied from interface:FunctionSignature
Returns the generic calling convention associated with this function definition. The "unknown" convention should be returned instead of null.- Specified by:
getGenericCallingConvention
in interfaceFunctionSignature
-
getPrototypeString
public java.lang.String getPrototypeString()
Description copied from interface:FunctionSignature
Return a string representation of the function signature without the calling convention specified.- Specified by:
getPrototypeString
in interfaceFunctionSignature
-
getPrototypeString
public java.lang.String getPrototypeString(boolean includeCallingConvention)
Description copied from interface:FunctionSignature
Return a string representation of the function signature- Specified by:
getPrototypeString
in interfaceFunctionSignature
- Parameters:
includeCallingConvention
- if true prototype will include call convention declaration if known.
-
isEquivalentSignature
public boolean isEquivalentSignature(FunctionSignature signature)
Description copied from interface:FunctionSignature
Returns true if the given signature is equivalent to this signature. The precise meaning of "equivalent" is dependent upon return/parameter dataTypes.- Specified by:
isEquivalentSignature
in interfaceFunctionSignature
- Returns:
- true if the if the given signature is equivalent to this signature.
-
-