Class ArgumentLiteral
java.lang.Object
io.github.mqzn.commands.arguments.AbstractArgument<String>
io.github.mqzn.commands.arguments.ArgumentLiteral
-
Field Summary
Fields inherited from class io.github.mqzn.commands.arguments.AbstractArgument
suggestions
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]
@Nullable String
The default value of this argument if the default value is null, means it has no default values, so it's a REQUIRED argument !boolean
setDefaultValue
(@Nullable String value) Modifies the default value of the argumentMethods inherited from class io.github.mqzn.commands.arguments.AbstractArgument
asOptional, id, setOptional, suggest, toString, type, useRemainingSpace
-
Method Details
-
parse
-
defaultValue
Description copied from interface:Argument
The default value of this argument if the default value is null, means it has no default values, so it's a REQUIRED argument !- Specified by:
defaultValue
in interfaceArgument<String>
- Overrides:
defaultValue
in classAbstractArgument<String>
- Returns:
- The default value of this argument
-
setDefaultValue
Description copied from interface:Argument
Modifies the default value of the argument- Specified by:
setDefaultValue
in interfaceArgument<String>
- Overrides:
setDefaultValue
in classAbstractArgument<String>
- Parameters:
value
- the new default value
-
isOptional
public boolean isOptional()- Specified by:
isOptional
in interfaceArgument<String>
- Overrides:
isOptional
in classAbstractArgument<String>
-
suggestions
- Specified by:
suggestions
in interfaceArgument<String>
- Overrides:
suggestions
in classAbstractArgument<String>
-
alternativeTypes
-