-
Method Summary
default boolean
default boolean
Methods inherited from interface studio.mevera.imperat.command.parameters.CommandParameter
asAnnotated, asCommand, asFlagParameter, asNumeric, copyWithDifferentPosition, format, getDefaultValueSupplier, getSinglePermission, getSuggestionResolver, isAnnotated, isCommand, isGreedy, isGreedyString, isNumeric, isOptional, isRequired, name, parent, parent, position, position, setFormat, setSinglePermission, similarTo, type, valueType, wrappedType
-
Method Details
-
flagData
- Returns:
- The flag's data
-
-
-
isFlag
default boolean isFlag()
- Specified by:
isFlag in interface CommandParameter<S extends Source>
- Returns:
- checks whether this parameter is a flag
-
isSwitch
default boolean isSwitch()