Class SetVariableDataTypeCmd

  • All Implemented Interfaces:
    Command

    public class SetVariableDataTypeCmd
    extends java.lang.Object
    implements Command
    Command to set the datatype on a stack variable.
    • 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.
      java.lang.String getName()
      Returns the name of this command.
      java.lang.String getStatusMsg()
      Returns the status message indicating the status of the command.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SetVariableDataTypeCmd

        public SetVariableDataTypeCmd​(Variable var,
                                      DataType dataType,
                                      SourceType source)
        Constructs a new command for setting the datatype on a stack/reg variable. Conflicting stack variables will be removed.
        Parameters:
        var - the variable for which to set the datatype.
        dataType - the datatype to apply to the stack variable.
        source - signature source
      • SetVariableDataTypeCmd

        public SetVariableDataTypeCmd​(Address fnEntry,
                                      java.lang.String varName,
                                      DataType dataType,
                                      SourceType source)
        Constructs a new command for setting the datatype on a stack/reg variable. Conflicting stack variables will be removed.
        Parameters:
        fnEntry -
        varName -
        dataType -
        source - signature source
      • SetVariableDataTypeCmd

        public SetVariableDataTypeCmd​(Address fnEntry,
                                      java.lang.String varName,
                                      DataType dataType,
                                      boolean align,
                                      boolean force,
                                      SourceType source)
        Constructs a new command for setting the datatype on a stack/reg variable
        Parameters:
        fnEntry -
        varName -
        dataType -
        align - maintain proper alignment/justification if supported by implementation (ignored for non-stack variables). If false and this is a stack variable, the current stack address/offset will not change. If true, the affect is implementation dependent since alignment can not be performed without access to a compiler specification.
        force - overwrite conflicting stack variables
        source - signature source
    • Method Detail

      • 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
        See Also:
        Command.getName()
      • 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
        See Also:
        Command.getStatusMsg()