Class CommandProcessEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.node.event.command.CommandProcessEvent
- Direct Known Subclasses:
CommandPostProcessEvent, CommandPreProcessEvent
class CommandProcessEvent
extends eu.cloudnetservice.driver.event.Event
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final eu.cloudnetservice.driver.command.CommandInfoprivate final CommandProviderprivate final CommandSourceprivate final Collection<String> -
Constructor Summary
ConstructorsConstructorDescriptionCommandProcessEvent(@NonNull Collection<String> tokenizedCommandInput, @NonNull eu.cloudnetservice.driver.command.CommandInfo command, @NonNull CommandSource commandSource, @NonNull CommandProvider commandProvider) -
Method Summary
Modifier and TypeMethodDescription@NonNull eu.cloudnetservice.driver.command.CommandInfocommand()Gets the root command info of the command that lead to this event call.Gets the command provider that was used to register the executed command.Gets the command source that executed the command and lead to this event call.Gets the tokenized command input as a collection of strings.
-
Field Details
-
tokenizedCommandInput
-
command
private final eu.cloudnetservice.driver.command.CommandInfo command -
commandSource
-
commandProvider
-
-
Constructor Details
-
CommandProcessEvent
public CommandProcessEvent(@NonNull @NonNull Collection<String> tokenizedCommandInput, @NonNull @NonNull eu.cloudnetservice.driver.command.CommandInfo command, @NonNull @NonNull CommandSource commandSource, @NonNull @NonNull CommandProvider commandProvider)
-
-
Method Details
-
tokenizedCommandInput
Gets the tokenized command input as a collection of strings.- Returns:
- the command line as a list.
-
command
-
commandSource
Gets the command source that executed the command and lead to this event call.- Returns:
- the command executor.
-
commandProvider
Gets the command provider that was used to register the executed command.- Returns:
- the command provider instance.
-