Package io.cucumber.java8
Class LambdaTypeResolver
java.lang.Object
io.cucumber.java8.LambdaTypeResolver
- All Implemented Interfaces:
TypeResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final StackTraceElementprivate final Type -
Constructor Summary
ConstructorsConstructorDescriptionLambdaTypeResolver(Type type, String expression, StackTraceElement location) -
Method Summary
Modifier and TypeMethodDescriptiongetType()private TyperequireNonMapOrListType(Type argumentType) resolve()A type to convert the data table or doc string to.private CucumberBackendExceptionwithLocation(CucumberBackendException exception)
-
Field Details
-
type
-
expression
-
location
-
-
Constructor Details
-
LambdaTypeResolver
LambdaTypeResolver(Type type, String expression, StackTraceElement location)
-
-
Method Details
-
resolve
Description copied from interface:TypeResolverA 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
Objecttype is returned no transform will be applied to the data table or doc string.- Specified by:
resolvein interfaceTypeResolver- Returns:
- a type
-
requireNonMapOrListType
-
getType
-
withLocation
-