Class ArgumentEnum<E extends Enum<E>>
java.lang.Object
io.github.mqzn.commands.arguments.AbstractArgument<E>
io.github.mqzn.commands.arguments.ArgumentEnum<E>
- All Implemented Interfaces:
Argument<E>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class io.github.mqzn.commands.arguments.AbstractArgument
suggestions
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentEnum
(@NotNull ArgumentData data, Class<E> enumClass) ArgumentEnum
(@NotNull String id, Class<E> enumClass) -
Method Summary
Methods inherited from class io.github.mqzn.commands.arguments.AbstractArgument
asOptional, defaultValue, description, description, equals, hashCode, id, isOptional, setDefaultValue, setOptional, suggest, suggest, suggestions, type, useRemainingSpace
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.mqzn.commands.arguments.Argument
alternativeTypes, isSuggestionDynamic
-
Field Details
-
NOT_ENUM_VALUE_ERROR
public static final int NOT_ENUM_VALUE_ERROR- See Also:
-
-
Constructor Details
-
ArgumentEnum
-
ArgumentEnum
-
-
Method Details
-
setFormat
-
parse
@NotNull public E parse(@NotNull @NotNull String command, @NotNull @NotNull String input) throws ArgumentParseException - Throws:
ArgumentParseException
-
entries
-
toString
-