Package ghidra.app.cmd.function
Class CreateExternalFunctionCmd
- java.lang.Object
-
- ghidra.app.cmd.function.CreateExternalFunctionCmd
-
-
Constructor Summary
Constructors Constructor Description CreateExternalFunctionCmd(Namespace externalParentNamespace, java.lang.String name, Address address, SourceType source)
Create an external function in the specified external namespace.CreateExternalFunctionCmd(Symbol extSymbol)
Create an external functionCreateExternalFunctionCmd(java.lang.String libraryName, java.lang.String name, Address address, SourceType source)
Create an external function
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyTo(DomainObject obj)
Applies the command to the given domain object.Symbol
getExtSymbol()
java.lang.String
getName()
Returns the name of this command.java.lang.String
getStatusMsg()
Returns the status message indicating the status of the command.
-
-
-
Constructor Detail
-
CreateExternalFunctionCmd
public CreateExternalFunctionCmd(Symbol extSymbol)
Create an external function- Parameters:
extSymbol
- a non-function external symbol
-
CreateExternalFunctionCmd
public CreateExternalFunctionCmd(java.lang.String libraryName, java.lang.String name, Address address, SourceType source)
Create an external function- Parameters:
libraryName
- library name, if null the UNKNOWN library will be usedname
- function name (required)address
- the address of the function's entry point in the external library (optional)
-
CreateExternalFunctionCmd
public CreateExternalFunctionCmd(Namespace externalParentNamespace, java.lang.String name, Address address, SourceType source)
Create an external function in the specified external namespace.- Parameters:
externalParentNamespace
- the external parent namespace where the named function should be created (required)name
- function name (required)address
- the address of the function's entry point in the external library (optional)source
- the source type for this external function
-
-
Method Detail
-
applyTo
public boolean applyTo(DomainObject obj)
Description copied from interface:Command
Applies the command to the given domain object.
-
getStatusMsg
public java.lang.String getStatusMsg()
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
public java.lang.String getName()
Description copied from interface:Command
Returns the name of this command.
-
getExtSymbol
public Symbol getExtSymbol()
-
-