Class CommandBase

java.lang.Object
zombie.commands.CommandBase
  • Field Details

  • Constructor Details

  • Method Details

    • getSubClasses

      public static Class[] getSubClasses()
    • findCommandCls

      public static Class findCommandCls(String _command)
    • getHelp

      public static String getHelp(Class cls)
    • getCommandName

      public static String getCommandName(Class cls)
    • isDisabled

      public static boolean isDisabled(Class cls)
    • Execute

      public String Execute() throws SQLException
      Throws:
      SQLException
    • canBeExecuted

      public boolean canBeExecuted()
    • isCommandComeFromServerConsole

      public boolean isCommandComeFromServerConsole()
    • getRequiredCapability

      protected RequiredCapability getRequiredCapability()
    • getCommandArgVariants

      protected CommandArgs[] getCommandArgVariants()
    • hasHelp

      public boolean hasHelp()
    • getHelp

      protected String getHelp()
    • getCommandArg

      public String getCommandArg(Integer argNumber)
    • hasOptionalArg

      public boolean hasOptionalArg(Integer argNumber)
    • getCommandArgsCount

      public int getCommandArgsCount()
    • Command

      protected abstract String Command() throws SQLException
      Throws:
      SQLException
    • parseCommand

      public boolean parseCommand()
    • getRole

      protected Role getRole()
    • getExecutorUsername

      protected String getExecutorUsername()
    • getCommand

      protected String getCommand()
    • getAnnotation

      protected static <T> T getAnnotation(Class<T> class1, Class class0)
    • isParsingSuccessful

      public boolean isParsingSuccessful()