Interface GraphQLSchemaVisitorEnvironment<T extends GraphQLSchemaElement>

    • Method Detail

      • getElement

        T getElement()
        Returns:
        the element that is being visited
      • getLeadingElements

        java.util.List<GraphQLSchemaElement> getLeadingElements()
        This returns the schema element that led to this element, eg a field is contained in a type which is pointed to be another field say.
        Returns:
        a list of schema elements leading to this current element
      • getUnwrappedLeadingElements

        java.util.List<GraphQLSchemaElement> getUnwrappedLeadingElements()
        This returns the schema element that led to this element but with GraphQLModifiedType wrappers removed.
        Returns:
        a list of schema elements leading to this current element
      • getSchema

        GraphQLSchema getSchema()
        Returns:
        the schema that is being visited upon
      • changeNode

        GraphQLSchemaTraversalControl changeNode​(T schemaElement)
        Called to change the current node to the specific node
        Parameters:
        schemaElement - the schema element to change
        Returns:
        a control that changes the current node to a the given node
      • insertAfter

        GraphQLSchemaTraversalControl insertAfter​(T toInsertAfter)
        Called to insert the current schema element after the specified schema element
        Parameters:
        toInsertAfter - the schema element to after before
        Returns:
        a control that inserts the given node after the current node
      • insertBefore

        GraphQLSchemaTraversalControl insertBefore​(T toInsertBefore)
        Called to insert the current schema element before the specified schema element
        Parameters:
        toInsertBefore - the schema element to insert before
        Returns:
        a control that inserts the given node before the current node