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.
@API(status=STABLE) @FunctionalInterface public interface CaptureGroupTransformer<T>
Transformer for a @ParameterTypewith (multiple) capture groups.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ttransform(String[] args)Transforms multiple strings into to an object.
-
-
-
Method Detail
-
transform
T transform(String[] args) throws Throwable
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
-
-