Interface AggregateParsingContext<C>

Type Parameters:
C - the command sender type
All Superinterfaces:
CloudKeyContainer, MutableCloudKeyContainer

@API(status=STABLE) public interface AggregateParsingContext<C> extends MutableCloudKeyContainer
Context that stores the individual result of invoking the child parsers of a AggregateParser.

This is used in AggregateResultMapper to map to the output type using the intermediate results.

  • Method Details

    • argumentContext

      static <C> @NonNull AggregateParsingContext<C> argumentContext(@NonNull AggregateParser<C,?> parser)
      Returns a new argument context instance that accepts values for the inner parsers of the given parser.
      Type Parameters:
      C - the comment sender type
      Parameters:
      parser - the parser that the context is used by
      Returns:
      the command context