All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.cucumberexpressions.CaptureGroupTransformer Maven / Gradle / Ivy

Go to download

Cucumber Expressions are simple patterns for matching Step Definitions with Gherkin steps

There is a newer version: 18.0.1
Show newest version
package io.cucumber.cucumberexpressions;

import org.apiguardian.api.API;

/**
 * Transformer for a @{@link ParameterType} with (multiple) capture groups.
 *
 * @param  the type to transform to.
 */
@API(status = API.Status.STABLE)
@FunctionalInterface
public 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.
     *
     * @param args the values of the top level capture groups
     * @return the transformed object
     * @throws Throwable if transformation failed
     */
    T transform(String[] args) throws Throwable;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy