public abstract class DefaultContextVisitor<T extends Context> extends java.lang.Object implements ContextVisitor<T>
| Modifier and Type | Field and Description |
|---|---|
java.util.LinkedList<java.util.concurrent.Callable<java.lang.Object>> |
tasks |
| Constructor and Description |
|---|
DefaultContextVisitor() |
DefaultContextVisitor(boolean concurrent) |
DefaultContextVisitor(boolean concurrent,
boolean visitThenAcceptOrder) |
| Modifier and Type | Method and Description |
|---|---|
java.util.LinkedList<java.util.concurrent.Callable<java.lang.Object>> |
getTasks() |
boolean |
isConcurrent() |
boolean |
isCurrentThenChildrenOrder() |
boolean |
isStartContext() |
boolean |
shouldVisit(T context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitpublic java.util.LinkedList<java.util.concurrent.Callable<java.lang.Object>> tasks
public DefaultContextVisitor()
public DefaultContextVisitor(boolean concurrent)
public DefaultContextVisitor(boolean concurrent,
boolean visitThenAcceptOrder)
public boolean isConcurrent()
isConcurrent in interface ContextVisitor<T extends Context>public boolean isCurrentThenChildrenOrder()
isCurrentThenChildrenOrder in interface ContextVisitor<T extends Context>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.public boolean shouldVisit(T context) throws ContextException
shouldVisit in interface ContextVisitor<T extends Context>ContextExceptionpublic java.util.LinkedList<java.util.concurrent.Callable<java.lang.Object>> getTasks()
getTasks in interface ContextVisitor<T extends Context>public boolean isStartContext()
isStartContext in interface ContextVisitor<T extends Context>