Package ghidra.feature.vt.api.stringable
Class FunctionSignatureStringable
java.lang.Object
ghidra.feature.vt.api.util.Stringable
ghidra.feature.vt.api.stringable.FunctionSignatureStringable
- All Implemented Interfaces:
docking.widgets.table.DisplayStringProvider
,ghidra.util.classfinder.ExtensionPoint
-
Field Summary
Fields inherited from class ghidra.feature.vt.api.util.Stringable
DELIMITER, DOUBLE_DELIMITER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applyFunctionSignature
(ghidra.program.model.listing.Function toFunction, ghidra.framework.options.ToolOptions markupOptions, boolean forceApply) boolean
applyParameterNames
(ghidra.program.model.listing.Function toFunction, ghidra.framework.options.ToolOptions markupOptions, boolean doNotReplaceWithDefaultNames, int originalToParamCount) protected String
doConvertToString
(ghidra.program.model.listing.Program desiredProgram) protected void
doRestoreFromString
(String string, ghidra.program.model.listing.Program desiredProgram) boolean
getDisplayString() returns a display string for this stringable.
Note: It must not return a null.boolean
int
hashCode()
boolean
boolean
sameFunctionSignature
(ghidra.program.model.listing.Function function) Methods inherited from class ghidra.feature.vt.api.util.Stringable
decodeString, encodeString, getString, getStringable, toString
-
Field Details
-
SHORT_NAME
- See Also:
-
-
Constructor Details
-
FunctionSignatureStringable
public FunctionSignatureStringable() -
FunctionSignatureStringable
public FunctionSignatureStringable(ghidra.program.model.listing.Function function)
-
-
Method Details
-
hasCustomStorage
public boolean hasCustomStorage() -
hasVarArgs
public boolean hasVarArgs() -
getDisplayString
Description copied from class:Stringable
getDisplayString() returns a display string for this stringable.
Note: It must not return a null. Instead it should return an empty string if it has no value.- Specified by:
getDisplayString
in interfacedocking.widgets.table.DisplayStringProvider
- Specified by:
getDisplayString
in classStringable
-
doConvertToString
- Specified by:
doConvertToString
in classStringable
-
doRestoreFromString
protected void doRestoreFromString(String string, ghidra.program.model.listing.Program desiredProgram) - Specified by:
doRestoreFromString
in classStringable
-
hashCode
public int hashCode()- Specified by:
hashCode
in classStringable
-
equals
- Specified by:
equals
in classStringable
-
sameFunctionSignature
public boolean sameFunctionSignature(ghidra.program.model.listing.Function function) -
applyFunctionSignature
public boolean applyFunctionSignature(ghidra.program.model.listing.Function toFunction, ghidra.framework.options.ToolOptions markupOptions, boolean forceApply) throws VersionTrackingApplyException - Parameters:
toFunction
- the function whose signature we are setting.markupOptions
- the options indicate what parts of the function signature to apply.forceApply
- true indicates that the function signature should be applied even if the function signature, return type, parameter data type or parameter name options are set to "do not apply".- Throws:
VersionTrackingApplyException
- if all desired parts of the function signature couldn't be applied.
-
applyParameterNames
public boolean applyParameterNames(ghidra.program.model.listing.Function toFunction, ghidra.framework.options.ToolOptions markupOptions, boolean doNotReplaceWithDefaultNames, int originalToParamCount) throws VersionTrackingApplyException - Parameters:
toFunction
- the function whose parameter names we are setting.markupOptions
-doNotReplaceWithDefaultNames
- flag indicating whether or not a parameter name can be replaced with a default name.originalToParamCount
- original number of parameters in toFunction- Throws:
VersionTrackingApplyException
-