Package graphql.util
Class NodeLocation
- java.lang.Object
-
- graphql.util.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getIndex()
java.lang.String
getName()
int
hashCode()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-