Class SubCommandSyntax<S>

java.lang.Object
io.github.mqzn.commands.base.syntax.CommandSyntax<S>
io.github.mqzn.commands.base.syntax.SubCommandSyntax<S>
All Implemented Interfaces:
TextConvertible<S>

public final class SubCommandSyntax<S> extends CommandSyntax<S>
  • Method Details

    • setParent

      public void setParent(@Nullable @Nullable String parentName)
    • addChild

      public void addChild(SubCommandSyntax<S> subCommand)
    • addChild

      public void addChild(String subCommand)
    • hasChild

      public boolean hasChild(String name)
    • hasChild

      public boolean hasChild(SubCommandSyntax<S> subCommandSyntax)
    • removeChild

      public void removeChild(SubCommandSyntax<S> subCommandSyntax)
    • removeChild

      public void removeChild(String name)
    • hasChildren

      public boolean hasChildren()
    • isOrphan

      public boolean isOrphan()
    • defaultExecution

      public <C> void defaultExecution(C sender, DelegateCommandContext<S> context)
    • matches

      public boolean matches(String rawArgument)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CommandSyntax<S>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class CommandSyntax<S>
    • toString

      public String toString()
      Overrides:
      toString in class Object