java.lang.Object
io.cucumber.cucumberexpressions.Group

@API(status=STABLE) public final class Group extends Object
  • Field Details

    • children

      private final @Nullable List<Group> children
    • value

      private final @Nullable String value
    • start

      private final int start
    • end

      private final int end
  • Constructor Details

    • Group

      Group(@Nullable String value, int start, int end, @Nullable List<Group> children)
  • Method Details

    • getValue

      public @Nullable String getValue()
    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • getChildren

      public Optional<List<Group>> getChildren()
      A groups children.

      There are either one or more children or the value is absent.

    • getValues

      public List<@Nullable String> getValues()
    • parse

      public static Collection<Group> parse(Pattern expression)
      Parse a Pattern into collection of Groups
      Parameters:
      expression - the expression to decompose
      Returns:
      A collection of Groups, possibly empty but never null