Package io.cucumber.java
Class JavaParameterInfo
java.lang.Object
io.cucumber.java.JavaParameterInfo
- All Implemented Interfaces:
ParameterInfo
This class composes all interesting parameter information into one object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static List<ParameterInfo> fromMethod(Method method) getType()Returns the type of this parameter.Returns a type resolver.booleanTrue if the data table should be transposed.
-
Field Details
-
type
-
transposed
private final boolean transposed
-
-
Constructor Details
-
JavaParameterInfo
-
-
Method Details
-
fromMethod
-
getType
Description copied from interface:ParameterInfoReturns the type of this parameter. This type is used to provide a hint to cucumber expressions to resolve anonymous parameter types.Should always return the same value as
TypeResolver.resolve()but may not throw any exceptions. May returnObject.classwhen no information is available.- Specified by:
getTypein interfaceParameterInfo- Returns:
- the type of this parameter.
-
isTransposed
public boolean isTransposed()Description copied from interface:ParameterInfoTrue if the data table should be transposed.- Specified by:
isTransposedin interfaceParameterInfo- Returns:
- true iff the data table should be transposed.
-
getTypeResolver
Description copied from interface:ParameterInfoReturns a type resolver. The type provided by this resolver is used to convert data table and doc string arguments to a java object.- Specified by:
getTypeResolverin interfaceParameterInfo- Returns:
- a type resolver
-