Class MethodCommandExecutionHandler.CommandMethodContext<C>
java.lang.Object
cloud.commandframework.annotations.MethodCommandExecutionHandler.CommandMethodContext<C>
- Type Parameters:
C
- Command sender type
- Enclosing class:
- MethodCommandExecutionHandler<C>
Context for command methods
- Since:
- 1.6.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull AnnotationParser<C>
The annotation parserThe compiled command argumentsfinal @NonNull cloud.commandframework.annotations.injection.ParameterInjectorRegistry<C>
The injector registry@NonNull Object
instance()
The instance that owns the command methodfinal @NonNull Method
method()
The command method
-
Method Details
-
instance
The instance that owns the command method- Returns:
- The instance
- Since:
- 1.6.0
-
method
The command method- Returns:
- The method
- Since:
- 1.6.0
-
commandArguments
public final @NonNull Map<@NonNull String,@NonNull cloud.commandframework.arguments.CommandArgument<C, commandArguments()?>> The compiled command arguments- Returns:
- Compiled command arguments
- Since:
- 1.6.0
-
injectorRegistry
public final @NonNull cloud.commandframework.annotations.injection.ParameterInjectorRegistry<C> injectorRegistry()The injector registry- Returns:
- Injector registry
- Since:
- 1.6.0
-
annotationParser
The annotation parser- Returns:
- Annotation parser
- Since:
- 1.7.0
-