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

io.cucumber.core.backend.TypeResolver Maven / Gradle / Ivy

There is a newer version: 7.18.0
Show newest version
package io.cucumber.core.backend;

import org.apiguardian.api.API;

import java.lang.reflect.Type;

/**
 * Allows lazy resolution and validation of the type of a data table or doc
 * string argument.
 */
@API(status = API.Status.STABLE)
public interface TypeResolver {

    /**
     * A type to convert the data table or doc string to.
     * 

* May throw an exception when the type could not adequately be determined * for instance due to a lack of generic information. If a value is return * it must be the same as {@link ParameterInfo#getType()} *

* When the {@link Object} type is returned no transform will be applied to * the data table or doc string. * * @return a type * @throws RuntimeException when the type could not adequately be determined */ Type resolve() throws RuntimeException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy