Class MethodCommandExecutionHandler.CommandMethodContext<C>

java.lang.Object
cloud.commandframework.annotations.MethodCommandExecutionHandler.CommandMethodContext<C>
Type Parameters:
C - Command sender type
Enclosing class:
MethodCommandExecutionHandler<C>

public static class MethodCommandExecutionHandler.CommandMethodContext<C> extends Object
Context for command methods
Since:
1.6.0
  • Method Details

    • instance

      public @NonNull Object instance()
      The instance that owns the command method
      Returns:
      The instance
      Since:
      1.6.0
    • method

      public final @NonNull Method 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

      public @NonNull AnnotationParser<C> annotationParser()
      The annotation parser
      Returns:
      Annotation parser
      Since:
      1.7.0