Interface Literal<T>
- All Known Subinterfaces:
RootLiteral<T>
- All Known Implementing Classes:
LiteralImpl,RootLiteralImpl
public interface Literal<T>
-
Method Summary
Modifier and TypeMethodDescription<V> voidaddArgument(CommandArgument<T, V> argument) voidaddLiteral(@NotNull Literal<T> literal) List<CommandArgument<T, ?>> @Nullable String@Nullable CommandExecutor<T> getLiteral(@NotNull String name) @NotNull String[]getNames()@Nullable Stringstatic <T> Literal<T> static <T> RootLiteral<T> rootLiteral(MessageStyle messageStyle, String... name) voidsetDescription(@Nullable String description) voidsetExecutor(@Nullable CommandExecutor<T> executor) voidsetPermission(@Nullable String permission)
-
Method Details
-
literal
-
rootLiteral
-
getNames
-
setDescription
-
getDescription
-
addArgument
- Throws:
IllegalArgumentException- if there is already an argument with the same idIllegalStateException- if a greedy argument was added to the literal previouslyIllegalStateException- if the literal already has a child literal assigned to it
-
getArguments
List<CommandArgument<T,?>> getArguments() -
setExecutor
-
getExecutor
-
addLiteral
- Throws:
IllegalArgumentException- if there is already a literal with the same nameIllegalStateException- if a greedy argument was added to the literal previouslyIllegalStateException- if the literal already has an argument assigned to it
-
getLiteral
-
getLiterals
-
getPermission
-
setPermission
-