Class JavaParameterInfo

java.lang.Object
io.cucumber.java.JavaParameterInfo
All Implemented Interfaces:
ParameterInfo

final class JavaParameterInfo extends Object implements ParameterInfo
This class composes all interesting parameter information into one object.
  • Field Details

    • type

      private final Type type
    • transposed

      private final boolean transposed
  • Constructor Details

    • JavaParameterInfo

      private JavaParameterInfo(Type type, boolean transposed)
  • Method Details

    • fromMethod

      static List<ParameterInfo> fromMethod(Method method)
    • getType

      public Type getType()
      Description copied from interface: ParameterInfo
      Returns 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 return Object.class when no information is available.

      Specified by:
      getType in interface ParameterInfo
      Returns:
      the type of this parameter.
    • isTransposed

      public boolean isTransposed()
      Description copied from interface: ParameterInfo
      True if the data table should be transposed.
      Specified by:
      isTransposed in interface ParameterInfo
      Returns:
      true iff the data table should be transposed.
    • getTypeResolver

      public TypeResolver getTypeResolver()
      Description copied from interface: ParameterInfo
      Returns 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:
      getTypeResolver in interface ParameterInfo
      Returns:
      a type resolver