Interface AggregateParsingContext<C>
- Type Parameters:
C- the command sender type
- All Superinterfaces:
CloudKeyContainer,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 Summary
Static MethodsModifier and TypeMethodDescriptionstatic <C> @NonNull AggregateParsingContext<C> argumentContext(@NonNull AggregateParser<C, ?> parser) Returns a new argument context instance that accepts values for the inner parsers of the givenparser.Methods inherited from interface org.incendo.cloud.key.CloudKeyContainer
all, contains, contains, contains, get, get, get, getOrDefault, getOrDefault, getOrDefault, getOrSupplyDefault, getOrSupplyDefault, getOrSupplyDefault, optional, optional, optionalMethods inherited from interface org.incendo.cloud.key.MutableCloudKeyContainer
computeIfAbsent, computeIfAbsent, remove, remove, remove, set, set, set, store, store, store
-
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 givenparser.- Type Parameters:
C- the comment sender type- Parameters:
parser- the parser that the context is used by- Returns:
- the command context
-