Package graphql.util

Class NodeZipper<T>


  • @PublicApi
    public class NodeZipper<T>
    extends java.lang.Object
    • Method Detail

      • getCurNode

        public T getCurNode()
      • getBreadcrumbs

        public java.util.List<Breadcrumb<T>> getBreadcrumbs()
      • getParent

        public T getParent()
      • modifyNode

        public NodeZipper<T> modifyNode​(java.util.function.Function<T,​T> transform)
      • insertAfter

        public NodeZipper<T> insertAfter​(T toInsertAfter)
      • insertBefore

        public NodeZipper<T> insertBefore​(T toInsertBefore)
      • withNewNode

        public NodeZipper<T> withNewNode​(T newNode)
      • toRoot

        public T toRoot()
        Returns:
        null if it is the root node and marked as deleted, otherwise never null
      • toString

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