Package graphql.util

Class NodeLocation

java.lang.Object
graphql.util.NodeLocation

@PublicApi public class NodeLocation extends Object
General position of a Node inside a parent.

Can be an index or a name with an index.

  • Constructor Details

    • NodeLocation

      public NodeLocation(String name, int index)
  • Method Details

    • getName

      public String getName()
      Returns:
      the name or null if there is no name
    • getIndex

      public int getIndex()
    • 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