Class CommandArgumentOptional
- java.lang.Object
-
- io.manebot.command.executor.chained.argument.CommandArgument
-
- io.manebot.command.executor.chained.argument.CommandArgumentOptional
-
public class CommandArgumentOptional extends CommandArgument
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCommandArgumentOptional.Optional<T>
-
Constructor Summary
Constructors Constructor Description CommandArgumentOptional(CommandArgument argument, CommandArgumentOptional.Optional<?> defaultObj)CommandArgumentOptional(CommandArgument argument, java.lang.Object defaultObj)
-
Method Summary
Modifier and Type Method Description booleancanCoexist(CommandArgument b)booleancanExtend(CommandArgument b)ChainPrioritycast(ChainState state)java.lang.StringgetHelpString()
-
-
-
Constructor Detail
-
CommandArgumentOptional
public CommandArgumentOptional(CommandArgument argument, CommandArgumentOptional.Optional<?> defaultObj)
-
CommandArgumentOptional
public CommandArgumentOptional(CommandArgument argument, java.lang.Object defaultObj)
-
-
Method Detail
-
getHelpString
public java.lang.String getHelpString()
- Specified by:
getHelpStringin classCommandArgument
-
cast
public ChainPriority cast(ChainState state) throws CommandExecutionException
- Specified by:
castin classCommandArgument- Throws:
CommandExecutionException
-
canExtend
public boolean canExtend(CommandArgument b)
- Specified by:
canExtendin classCommandArgument
-
canCoexist
public boolean canCoexist(CommandArgument b)
- Specified by:
canCoexistin classCommandArgument
-
-