public static final class SubsequenceInputTypeStrategy.SubsequenceStrategyBuilder extends Object
SubsequenceInputTypeStrategy
.Constructor and Description |
---|
SubsequenceStrategyBuilder() |
Modifier and Type | Method and Description |
---|---|
SubsequenceInputTypeStrategy.SubsequenceStrategyBuilder |
argument(ArgumentTypeStrategy argumentTypeStrategy)
Defines that we expect a single argument at the next position.
|
InputTypeStrategy |
finish()
Constructs the given strategy.
|
InputTypeStrategy |
finishWithVarying(InputTypeStrategy inputTypeStrategy)
Defines a common
InputTypeStrategy for the next arguments. |
SubsequenceInputTypeStrategy.SubsequenceStrategyBuilder |
subsequence(InputTypeStrategy inputTypeStrategy)
Defines a common
InputTypeStrategy for the next arguments. |
public SubsequenceInputTypeStrategy.SubsequenceStrategyBuilder argument(ArgumentTypeStrategy argumentTypeStrategy)
public SubsequenceInputTypeStrategy.SubsequenceStrategyBuilder subsequence(InputTypeStrategy inputTypeStrategy)
InputTypeStrategy
for the next arguments. Given input strategy
must expect a constant number of arguments. That means that both the minimum and maximum
number of arguments must be defined and equal to each other.
If you need a varying logic use finishWithVarying(InputTypeStrategy)
.
public InputTypeStrategy finishWithVarying(InputTypeStrategy inputTypeStrategy)
InputTypeStrategy
for the next arguments. Given input strategy
must expect a varying number of arguments. That means that the maximum number of
arguments must not be defined.public InputTypeStrategy finish()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.