Class AggregateParserBuilder.MappedAggregateParserBuilder<C,O>
java.lang.Object
org.incendo.cloud.parser.aggregate.AggregateParserBuilder<C>
org.incendo.cloud.parser.aggregate.AggregateParserBuilder.MappedAggregateParserBuilder<C,O>
- Enclosing class:
AggregateParserBuilder<C>
public static final class AggregateParserBuilder.MappedAggregateParserBuilder<C,O>
extends AggregateParserBuilder<C>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.incendo.cloud.parser.aggregate.AggregateParserBuilder
AggregateParserBuilder.MappedAggregateParserBuilder<C,O> -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the parser described by this builder.withComponent(@NonNull String name, @NonNull ParserDescriptor<C, T> parserDescriptor) Returns a new builder with a new component using the givenparserDescriptorinto the component list.withComponent(@NonNull String name, @NonNull ParserDescriptor<C, T> parserDescriptor, @NonNull SuggestionProvider<C> suggestionProvider) Returns a new builder with a new component using the givenparserDescriptorinto the component list.withComponent(@NonNull CommandComponent<C> component) Returns a new builder with the givencomponentinserted into the component list.withComponent(@NonNull CloudKey<T> name, @NonNull ParserDescriptor<C, T> parserDescriptor) Returns a new builder with a new component using the givenparserDescriptorinto the component list.withComponent(@NonNull CloudKey<T> name, @NonNull ParserDescriptor<C, T> parserDescriptor, @NonNull SuggestionProvider<C> suggestionProvider) Returns a new builder with a new component using the givenparserDescriptorinto the component list.Methods inherited from class org.incendo.cloud.parser.aggregate.AggregateParserBuilder
withDirectMapper, withDirectMapper, withMapper, withMapper
-
Method Details
-
withComponent
public @NonNull AggregateParserBuilder.MappedAggregateParserBuilder<C,O> withComponent(@NonNull CommandComponent<C> component) Description copied from class:AggregateParserBuilderReturns a new builder with the givencomponentinserted into the component list.- Overrides:
withComponentin classAggregateParserBuilder<C>- Parameters:
component- the component- Returns:
- the new builder
-
withComponent
public <T> @NonNull AggregateParserBuilder.MappedAggregateParserBuilder<C,O> withComponent(@NonNull String name, @NonNull ParserDescriptor<C, T> parserDescriptor) Description copied from class:AggregateParserBuilderReturns a new builder with a new component using the givenparserDescriptorinto the component list.- Overrides:
withComponentin classAggregateParserBuilder<C>- Type Parameters:
T- the type of the parser- Parameters:
name- the name of the componentparserDescriptor- the parser- Returns:
- the new builder
-
withComponent
public <T> @NonNull AggregateParserBuilder.MappedAggregateParserBuilder<C,O> withComponent(@NonNull String name, @NonNull ParserDescriptor<C, T> parserDescriptor, @NonNull SuggestionProvider<C> suggestionProvider) Description copied from class:AggregateParserBuilderReturns a new builder with a new component using the givenparserDescriptorinto the component list.- Overrides:
withComponentin classAggregateParserBuilder<C>- Type Parameters:
T- the type of the parser- Parameters:
name- the name of the componentparserDescriptor- the parsersuggestionProvider- custom suggestion provider- Returns:
- the new builder
-
withComponent
public <T> @NonNull AggregateParserBuilder.MappedAggregateParserBuilder<C,O> withComponent(@NonNull CloudKey<T> name, @NonNull ParserDescriptor<C, T> parserDescriptor) Description copied from class:AggregateParserBuilderReturns a new builder with a new component using the givenparserDescriptorinto the component list.- Overrides:
withComponentin classAggregateParserBuilder<C>- Type Parameters:
T- the type of the parser- Parameters:
name- the name of the componentparserDescriptor- the parser- Returns:
- the new builder
-
withComponent
public <T> @NonNull AggregateParserBuilder.MappedAggregateParserBuilder<C,O> withComponent(@NonNull CloudKey<T> name, @NonNull ParserDescriptor<C, T> parserDescriptor, @NonNull SuggestionProvider<C> suggestionProvider) Description copied from class:AggregateParserBuilderReturns a new builder with a new component using the givenparserDescriptorinto the component list.- Overrides:
withComponentin classAggregateParserBuilder<C>- Type Parameters:
T- the type of the parser- Parameters:
name- the name of the componentparserDescriptor- the parsersuggestionProvider- custom suggestion provider- Returns:
- the new builder
-
build
Builds the parser described by this builder.- Returns:
- the parser
-