public interface ContextVisitor<T extends Context>
| Modifier and Type | Method and Description |
|---|---|
java.util.LinkedList<java.util.concurrent.Callable<java.lang.Object>> |
getTasks() |
boolean |
isConcurrent() |
default boolean |
isCurrentThenChildrenOrder() |
boolean |
isStartContext() |
boolean |
shouldVisit(T context) |
void |
visit(T context) |
boolean isConcurrent()
boolean shouldVisit(T context) throws ContextException
ContextExceptionvoid visit(T context) throws ContextException
ContextExceptionjava.util.LinkedList<java.util.concurrent.Callable<java.lang.Object>> getTasks()
boolean isStartContext()
default boolean isCurrentThenChildrenOrder()
true if this visitor should traverse context in forward order, i.e. first visit the
children list, then process the current node; otherwise visitor first processes the current node and then visits
the children. The forward order is usually preferable but can be unsuitable for example when visitor
structurally modifies the subtree during traversal.