public abstract class AbstractPicoVisitor extends java.lang.Object implements PicoVisitor
PicoVisitor
as argument and and invokes it. Additionally it provides the
checkTraversal()
method, that throws a PicoVisitorTraversalException
,
if currently no traversal is running.Modifier and Type | Field and Description |
---|---|
private boolean |
traversal |
Constructor and Description |
---|
AbstractPicoVisitor() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTraversal()
Checks the traversal flag, indicating a currently running traversal of the visitor.
|
java.lang.Object |
traverse(java.lang.Object node)
Entry point for the PicoVisitor traversal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitComponentAdapter, visitContainer, visitParameter
public java.lang.Object traverse(java.lang.Object node)
PicoVisitor
PicoContainer
, ComponentAdapter
,
or Parameter
are valid.traverse
in interface PicoVisitor
node
- the start node of the traversal.protected void checkTraversal()
PicoVisitorTraversalException
- if no traversal is active.