OptionSpec instances based on
the given context.
Use with option specs whose behavior is a function of a context. E.g.: if option value validation depends on the current OS; if option description varies depending on the current OS.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public OptionSpec | |
| public static <T, U> Consumer | createOptionSpecBuilderMutator(Class<? extends U> contextType, BiConsumer<OptionSpecBuilder<T>, U> mutator)
|
| public static <T, U> OptionSpec |
| contextType | back to summary |
|---|---|
| public Class | |
| createOptionSpec | back to summary |
|---|---|
| public OptionSpec | |
| createOptionSpecBuilderMutator | back to summary |
|---|---|
| public static <T, U> Consumer | |
| mapOptionSpec | back to summary |
|---|---|
public static <T, U> OptionSpec
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <T, U> Set | addOptionSpecBuilderMutator(Class<? extends U> contextType, Set<OptionScope> scope, BiConsumer<OptionSpecBuilder<T>, U> optionSpecBuilderMutator, OptionSpecBuilder<T> optionSpecBuilder)
|
| Details | back to summary |
|---|---|
| private Details() | |
| addOptionSpecBuilderMutator | back to summary |
|---|---|
| private static <T, U> Set | |
| Modifier and Type | Field and Description |
|---|---|
| private final SequencedMap | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv <V> void | |
| public Class | |
| public OptionSpec | createOptionSpec(U context, boolean createArray)
Implements jdk.
|
| builders | back to summary |
|---|---|
| private final SequencedMap<IdentityWrapper<OptionSpecBuilder<?>>, OptionSpecMapperOptionScope. | |
| contextType | back to summary |
|---|---|
| private final Class<? extends U> contextType | |
| AccumulatingContextOptionScope | back to summary |
|---|---|
| pack-priv AccumulatingContextOptionScope(Class<? extends U> contextType) | |
| addMutator | back to summary |
|---|---|
| pack-priv <V> void addMutator(OptionSpecBuilder<V> builder, BiConsumer<OptionSpecBuilder<V>, U> mutator) | |
| contextType | back to summary |
|---|---|
| public Class Implements jdk.
| |
| createOptionSpec | back to summary |
|---|---|
| public OptionSpec Implements jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final OptionSpecBuilder | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv OptionSpecBuilder |
| builder | back to summary |
|---|---|
| private final OptionSpecBuilder<T> builder | |
| mutators | back to summary |
|---|---|
| private final List<BiConsumer<OptionSpecBuilder<T>, U>> mutators | |
| OptionSpecBuilderWithMutators | back to summary |
|---|---|
| pack-priv OptionSpecBuilderWithMutators(OptionSpecBuilder<T> builder) | |
| addMutator | back to summary |
|---|---|
| pack-priv void addMutator(BiConsumer<OptionSpecBuilder<T>, U> mutator) | |
| initBuilder | back to summary |
|---|---|
| pack-priv OptionSpecBuilder | |