Package graphql.util

Class TraverserState<T>


  • public abstract class TraverserState<T>
    extends java.lang.Object
    • Method Detail

      • newQueueState

        public static <U> TraverserState<U> newQueueState​(java.lang.Object sharedContextData)
      • newStackState

        public static <U> TraverserState<U> newStackState​(java.lang.Object sharedContextData)
      • pushAll

        public abstract void pushAll​(TraverserContext<T> o,
                                     java.util.function.Function<? super T,​java.util.Map<java.lang.String,​? extends java.util.List<T>>> getChildren)
      • pop

        public java.lang.Object pop()
      • addNewContexts

        public void addNewContexts​(java.util.Collection<? extends T> children,
                                   TraverserContext<T> parentContext)
      • isEmpty

        public boolean isEmpty()
      • addVisited

        public void addVisited​(T visited)
      • newRootContext

        public DefaultTraverserContext<T> newRootContext​(java.util.Map<java.lang.Class<?>,​java.lang.Object> vars)