Class ParameterType.TransformerAdaptor<T>

java.lang.Object
io.cucumber.cucumberexpressions.ParameterType.TransformerAdaptor<T>
All Implemented Interfaces:
CaptureGroupTransformer<T>
Enclosing class:
ParameterType<T>

private static final class ParameterType.TransformerAdaptor<T> extends Object implements CaptureGroupTransformer<T>
  • Field Details

  • Constructor Details

    • TransformerAdaptor

      private TransformerAdaptor(Transformer<T> transformer)
  • Method Details

    • transform

      public @Nullable T transform(@Nullable String[] args) throws Throwable
      Description copied from interface: CaptureGroupTransformer
      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.
      Specified by:
      transform in interface CaptureGroupTransformer<T>
      Parameters:
      args - the values of the top level capture groups
      Returns:
      the transformed object
      Throws:
      Throwable - if transformation failed