public final class CommandExecutor
extends java.lang.Object
| Constructor and Description |
|---|
CommandExecutor(Blade blade) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.Object |
adaptSender(@NotNull BladeCommand cmd,
@NotNull Context context) |
@Nullable ErrorMessage |
execute(@NotNull Context context,
@NotNull CommandInput input,
@NotNull ResolvedCommand node) |
@Nullable java.lang.String |
getDefaultValue(@NotNull BladeParameter parameter) |
@Nullable java.lang.Object |
provideArgument(@NotNull ArgumentProvider<?> provider,
@NotNull Context context,
@NotNull InputArgument inputArg,
boolean ignoreErrors,
boolean tryRecover) |
public CommandExecutor(Blade blade)
@Nullable public @Nullable ErrorMessage execute(@NotNull @NotNull Context context, @NotNull @NotNull CommandInput input, @NotNull @NotNull ResolvedCommand node)
@ApiStatus.Internal
@NotNull
public @NotNull java.lang.Object adaptSender(@NotNull
@NotNull BladeCommand cmd,
@NotNull
@NotNull Context context)
@ApiStatus.Internal
@Nullable
public @Nullable java.lang.Object provideArgument(@NotNull
@NotNull ArgumentProvider<?> provider,
@NotNull
@NotNull Context context,
@NotNull
@NotNull InputArgument inputArg,
boolean ignoreErrors,
boolean tryRecover)
@ApiStatus.Internal
@Nullable
public @Nullable java.lang.String getDefaultValue(@NotNull
@NotNull BladeParameter parameter)