Class LambdaTypeResolver

java.lang.Object
io.cucumber.java8.LambdaTypeResolver
All Implemented Interfaces:
TypeResolver

final class LambdaTypeResolver extends Object implements TypeResolver
  • Field Details

  • Constructor Details

  • Method Details

    • resolve

      public Type resolve()
      Description copied from 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 ParameterInfo.getType()

      When the Object type is returned no transform will be applied to the data table or doc string.

      Specified by:
      resolve in interface TypeResolver
      Returns:
      a type
    • requireNonMapOrListType

      private Type requireNonMapOrListType(Type argumentType)
    • getType

      public Type getType()
    • withLocation

      private CucumberBackendException withLocation(CucumberBackendException exception)