Class GraphqlElementParentTree


  • @PublicApi
    public class GraphqlElementParentTree
    extends java.lang.Object
    This represents a hierarchy an graphql runtime element upwards to its associated parent elements. For example a GraphqlDirective can be on a GraphqlArgument which can be on a GraphqlFieldDefinition, which can be on a GraphqlObjectType.
    • Constructor Detail

      • GraphqlElementParentTree

        public GraphqlElementParentTree​(java.util.Deque<GraphQLSchemaElement> nodeStack)
    • Method Detail

      • getElement

        public GraphQLSchemaElement getElement()
        Returns the element represented by this info
        Returns:
        the element in play
      • getParentInfo

        public java.util.Optional<GraphqlElementParentTree> getParentInfo()
        Returns:
        an element MAY have an optional parent
      • toList

        public java.util.List<GraphQLSchemaElement> toList()
        Returns:
        the tree as a list of types
      • toString

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