Package graphql.util

Class TreeTransformerUtil


  • @PublicApi
    public class TreeTransformerUtil
    extends java.lang.Object
    • Constructor Detail

      • TreeTransformerUtil

        public TreeTransformerUtil()
    • Method Detail

      • changeNode

        public static <T> TraversalControl changeNode​(TraverserContext<T> context,
                                                      T changedNode)
        Can be called multiple times to change the current node of the context. The latest call wins
        Type Parameters:
        T - for two
        Parameters:
        context - the context in play
        changedNode - the changed node
        Returns:
        traversal control
      • replaceZipperForNode

        private static <T> void replaceZipperForNode​(java.util.List<NodeZipper<T>> zippers,
                                                     T currentNode,
                                                     T newNode)