io.cucumber.cucumberexpressions.Transformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-expressions Show documentation
Show all versions of cucumber-expressions Show documentation
Cucumber Expressions are simple patterns for matching Step Definitions with Gherkin steps
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