java.lang.Object
io.cucumber.cucumberexpressions.Node
All Implemented Interfaces:
Located

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

    • type

      private final Node.Type type
    • nodes

      private final @Nullable List<Node> nodes
    • token

      private final @Nullable String token
    • start

      private final int start
    • end

      private final int end
  • Constructor Details

  • Method Details

    • start

      public int start()
      Specified by:
      start in interface Located
    • end

      public int end()
      Specified by:
      end in interface Located
    • nodes

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

      List<Node> requireNodes()
    • type

      public Node.Type type()
    • token

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

      String text()
    • toString

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

      private StringBuilder toString(int depth)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object