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

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

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

/**
 * Transformer for a @{@link ParameterType} with zero or one capture groups.
 *
 * @param  the type to transform to.
 */
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 - 2024 Weber Informatics LLC | Privacy Policy