|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Opus5.AbstractPrePostVisitor
|
+--Opus5.PostOrder
Adapter to convert a Visitor to a PrePostVisitor.
Used in conjunction with various depth-first traversal routines
to implement
Tree.depthFirstTraversal(Opus5.PrePostVisitor),
Graph.depthFirstTraversal(Opus5.PrePostVisitor, int)| Field Summary | |
protected Visitor |
visitor
A visitor. |
| Fields inherited from interface Opus5.PrePostVisitor |
copyright |
| Constructor Summary | |
PostOrder(Visitor visitor)
Constructs a PostOrder visitor using the specified visitor. |
|
| Method Summary | |
boolean |
isDone()
Invokes the isDone method on the visitor to which the
the visitor field refers. |
void |
postVisit(java.lang.Object object)
Invokes the visit method on the visitor to which the
the visitor field refers using the specified object. |
| Methods inherited from class Opus5.AbstractPrePostVisitor |
inVisit, preVisit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Visitor visitor
| Constructor Detail |
public PostOrder(Visitor visitor)
PostOrder visitor using the specified visitor.visitor - The visitor to adapt.| Method Detail |
public void postVisit(java.lang.Object object)
visit method on the visitor to which the
the visitor field refers using the specified object.postVisit in class AbstractPrePostVisitorobject - The object to visit.public boolean isDone()
isDone method on the visitor to which the
the visitor field refers.isDone in class AbstractPrePostVisitor
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||