Class CommandArgumentSwitch
- java.lang.Object
-
- io.manebot.command.executor.chained.argument.CommandArgument
-
- io.manebot.command.executor.chained.argument.CommandArgumentSwitch
-
public class CommandArgumentSwitch extends CommandArgument
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCommandArgumentSwitch.Argument
-
Constructor Summary
Constructors Constructor Description CommandArgumentSwitch(CommandArgumentSwitch.Argument argument)CommandArgumentSwitch(java.lang.String... labels)CommandArgumentSwitch(java.util.List<java.lang.String> labels)
-
Method Summary
Modifier and Type Method Description booleancanCoexist(CommandArgument b)booleancanExtend(CommandArgument b)ChainPrioritycast(ChainState state)java.lang.StringgetHelpString()
-
-
-
Constructor Detail
-
CommandArgumentSwitch
public CommandArgumentSwitch(java.lang.String... labels)
-
CommandArgumentSwitch
public CommandArgumentSwitch(java.util.List<java.lang.String> labels)
-
CommandArgumentSwitch
public CommandArgumentSwitch(CommandArgumentSwitch.Argument argument)
-
-
Method Detail
-
getHelpString
public java.lang.String getHelpString()
- Specified by:
getHelpStringin classCommandArgument
-
cast
public ChainPriority cast(ChainState state)
- Specified by:
castin classCommandArgument
-
canExtend
public boolean canExtend(CommandArgument b)
- Specified by:
canExtendin classCommandArgument
-
canCoexist
public boolean canCoexist(CommandArgument b)
- Specified by:
canCoexistin classCommandArgument
-
-