Package ghidra.program.model.listing
Interface FunctionSignature
-
- All Known Subinterfaces:
FunctionDefinition
- All Known Implementing Classes:
FunctionDefinitionDataType
,FunctionSignatureImpl
public interface FunctionSignature
Interface describing all the things about a function that are portable from one program to another.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
VAR_ARGS_DISPLAY_STRING
static java.lang.String
VOID_PARAM_DISPLAY_STRING
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
VAR_ARGS_DISPLAY_STRING
static final java.lang.String VAR_ARGS_DISPLAY_STRING
- See Also:
- Constant Field Values
-
VOID_PARAM_DISPLAY_STRING
static final java.lang.String VOID_PARAM_DISPLAY_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
Return the name of this function
-
getPrototypeString
java.lang.String getPrototypeString()
Return a string representation of the function signature without the calling convention specified.
-
getPrototypeString
java.lang.String getPrototypeString(boolean includeCallingConvention)
Return a string representation of the function signature- Parameters:
includeCallingConvention
- if true prototype will include call convention declaration if known.
-
getArguments
ParameterDefinition[] getArguments()
Return an array of parameters for the function
-
getReturnType
DataType getReturnType()
Return the return data type
-
getComment
java.lang.String getComment()
Return the comment string
-
hasVarArgs
boolean hasVarArgs()
Returns true if this function signature has a variable argument list (VarArgs).
-
getGenericCallingConvention
GenericCallingConvention getGenericCallingConvention()
Returns the generic calling convention associated with this function definition. The "unknown" convention should be returned instead of null.
-
isEquivalentSignature
boolean isEquivalentSignature(FunctionSignature signature)
Returns true if the given signature is equivalent to this signature. The precise meaning of "equivalent" is dependent upon return/parameter dataTypes.- Parameters:
dt
- the dataType being tested for equivalence.- Returns:
- true if the if the given signature is equivalent to this signature.
-
-