toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case AutomationCommands.appendProperty:
      return SYZ_AUTOMATION_COMMANDS.SYZ_AUTOMATION_COMMAND_APPEND_PROPERTY;
    case AutomationCommands.sendUserEvent:
      return SYZ_AUTOMATION_COMMANDS.SYZ_AUTOMATION_COMMAND_SEND_USER_EVENT;
    case AutomationCommands.clearProperty:
      return SYZ_AUTOMATION_COMMANDS.SYZ_AUTOMATION_COMMAND_CLEAR_PROPERTY;
    case AutomationCommands.clearEvents:
      return SYZ_AUTOMATION_COMMANDS.SYZ_AUTOMATION_COMMAND_CLEAR_EVENTS;
    case AutomationCommands.clearAllProperties:
      return SYZ_AUTOMATION_COMMANDS
          .SYZ_AUTOMATION_COMMAND_CLEAR_ALL_PROPERTIES;
  }
}