Package me.s3ns3iw00.jcommands.argument
Class SubArgument<T extends Argument,R>
- java.lang.Object
-
- me.s3ns3iw00.jcommands.argument.Argument<R>
-
- me.s3ns3iw00.jcommands.argument.SubArgument<T,R>
-
- Type Parameters:
T- the type of arguments that can contain this argument
- Direct Known Subclasses:
ConstantArgument,GroupArgument
public abstract class SubArgument<T extends Argument,R> extends Argument<R>
Represents a sub argument Classes that extends this class can have arguments
-
-
Constructor Summary
Constructors Constructor Description SubArgument(java.lang.String name, java.lang.String description, org.javacord.api.interaction.SlashCommandOptionType type)Constructs the argument with the default requirements
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddArgument(T argument)Adds an argument to the argumentjava.util.LinkedList<T>getArguments()-
Methods inherited from class me.s3ns3iw00.jcommands.argument.Argument
getCommandOption, getDescription, getMismatchListener, getName, getResultType, getType, setOnMismatch
-
-
-
-
Constructor Detail
-
SubArgument
public SubArgument(java.lang.String name, java.lang.String description, org.javacord.api.interaction.SlashCommandOptionType type)Constructs the argument with the default requirements- Parameters:
name- the argument's namedescription- the argument's descriptiontype- the type of the input value
-
-