java.lang.Object
io.cucumber.cucumberexpressions.Node

@API(since="18.1", status=EXPERIMENTAL) public final class Node extends Object
  • Method Details

    • start

      public int start()
    • end

      public int end()
    • nodes

      public @Nullable List<Node> nodes()
      Returns child nodes, null if a leaf-node
    • type

      public Node.Type type()
    • token

      public @Nullable String token()
      Returns the text contained with in this node, null if not a leaf-node
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object