Class CreateExternalFunctionCmd

  • All Implemented Interfaces:
    Command

    public class CreateExternalFunctionCmd
    extends java.lang.Object
    implements 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 used
        name - 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.
        Specified by:
        applyTo in interface Command
        Parameters:
        obj - domain object that this command is to be applied.
        Returns:
        true if the command applied successfully
      • 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 interface Command
        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.
        Specified by:
        getName in interface Command
        Returns:
        the name of this command
      • getExtSymbol

        public Symbol getExtSymbol()