Package io.cucumber.cucumberexpressions
Interface CaptureGroupTransformer<T>
- Type Parameters:
T- the type to transform to.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Transformer for a @
ParameterType with (multiple) capture groups.-
Method Summary
-
Method Details
-
transform
Transforms multiple strings into to an object. The strings are taken from the capture groups in the regular expressions in order. Nested capture groups are ignored. If a capture group is optional the corresponding element in the array may be null.- Parameters:
args- the values of the top level capture groups- Returns:
- the transformed object
- Throws:
Throwable- if transformation failed
-