public abstract class TraverserState<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TraverserState.EndList<U> |
Modifier and Type | Method and Description |
---|---|
void |
addNewContexts(java.util.Collection<? extends T> children,
TraverserContext<T> parentContext) |
void |
addVisited(T visited) |
boolean |
isEmpty() |
static <U> TraverserState<U> |
newQueueState(java.lang.Object sharedContextData) |
DefaultTraverserContext<T> |
newRootContext(java.util.Map<java.lang.Class<?>,java.lang.Object> vars) |
static <U> TraverserState<U> |
newStackState(java.lang.Object sharedContextData) |
java.lang.Object |
pop() |
abstract void |
pushAll(TraverserContext<T> o,
java.util.function.Function<? super T,java.util.Map<java.lang.String,? extends java.util.List<T>>> getChildren) |
public static <U> TraverserState<U> newQueueState(java.lang.Object sharedContextData)
public static <U> TraverserState<U> newStackState(java.lang.Object sharedContextData)
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)
public java.lang.Object pop()
public void addNewContexts(java.util.Collection<? extends T> children, TraverserContext<T> parentContext)
public boolean isEmpty()
public void addVisited(T visited)
public DefaultTraverserContext<T> newRootContext(java.util.Map<java.lang.Class<?>,java.lang.Object> vars)