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

io.cucumber.cucumberexpressions.Transformer 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;

/**
 * Transformer for a @{@link ParameterType} with zero or one capture groups.
 *
 * @param  the type to transform to.
 */
@FunctionalInterface
public interface Transformer {
    /**
     * Transforms a string into to an object. The string is either taken
     * from the sole capture group or matches the whole expression. Nested
     * capture groups are ignored.
     * 

* If the capture group is optional arg may be null. * * @param arg the value of the single capture group * @return the transformed object * @throws Throwable if transformation failed */ T transform(String arg) throws Throwable; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy