Opus5
Interface PrePostVisitor
- All Known Implementing Classes:
- AbstractPrePostVisitor
- public interface PrePostVisitor
Encapsulates methods implemented by visitors used in conjunction with
various depth-first traversal methods.
- Version:
- $Id: PrePostVisitor.java,v 3.2 1998/07/28 14:00:02 brpreiss Exp $
- Author:
- Bruno R. Preiss, P.Eng.
- See Also:
Tree.depthFirstTraversal(Opus5.PrePostVisitor),
Graph.depthFirstTraversal(Opus5.PrePostVisitor, int)
|
Field Summary |
static java.lang.String |
copyright
|
|
Method Summary |
void |
inVisit(java.lang.Object object)
"In"-visits the specified object. |
boolean |
isDone()
Tests whether this visitor is done. |
void |
postVisit(java.lang.Object object)
"Post"-visits the specified object. |
void |
preVisit(java.lang.Object object)
"Pre"-visits the specified object. |
copyright
public static final java.lang.String copyright
preVisit
public void preVisit(java.lang.Object object)
- "Pre"-visits the specified object.
Used in pre-order traversals.
- Parameters:
object - The object to visit.- See Also:
PreOrder
inVisit
public void inVisit(java.lang.Object object)
- "In"-visits the specified object.
Used in in-order traversals.
- Parameters:
object - The object to visit.- See Also:
InOrder
postVisit
public void postVisit(java.lang.Object object)
- "Post"-visits the specified object.
Used in post-order traversals.
- Parameters:
object - The object to visit.- See Also:
PostOrder
isDone
public boolean isDone()
- Tests whether this visitor is done.
- Returns:
- True if this visitor is done; false otherwise.