Package graphql.schema
Class GraphqlElementParentTree
- java.lang.Object
-
- graphql.schema.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 Summary
Constructors Constructor Description GraphqlElementParentTree(java.util.Deque<GraphQLSchemaElement> nodeStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLSchemaElement
getElement()
Returns the element represented by this infojava.util.Optional<GraphqlElementParentTree>
getParentInfo()
java.util.List<GraphQLSchemaElement>
toList()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-