Package graphql.util

Class NodeLocation


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

    Can be an index or a name with an index.

    • Constructor Summary

      Constructors 
      Constructor Description
      NodeLocation​(java.lang.String name, int index)  
    • Constructor Detail

      • NodeLocation

        public NodeLocation​(java.lang.String name,
                            int index)
    • Method Detail

      • getName

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

        public int getIndex()
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object