Class StepMatchArgument

java.lang.Object
io.cucumber.messages.types.StepMatchArgument

public final class StepMatchArgument extends Object
Represents the StepMatchArgument message in Cucumber's message protocol

Represents a single argument extracted from a step match and passed to a step definition. This is used for the following purposes: - Construct an argument to pass to a step definition (possibly through a parameter type transform) - Highlight the matched parameter in rich formatters such as the HTML formatter

This message closely matches the `Argument` class in the `cucumber-expressions` library.

  • Constructor Details

    • StepMatchArgument

      public StepMatchArgument(Group group, String parameterTypeName)
  • Method Details

    • getGroup

      public Group getGroup()
      Represents the outermost capture group of an argument. This message closely matches the `Group` class in the `cucumber-expressions` library.
    • getParameterTypeName

      public Optional<String> getParameterTypeName()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object