|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Opus5.AbstractPrePostVisitor
|
+--Opus5.PreOrder
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 | |
PreOrder(Visitor visitor)
Constructs a PreOrder visitor using the specified visitor. |
|
| Method Summary | |
boolean |
isDone()
Invokes the isDone method on the visitor to which the
the visitor field refers. |
void |
preVisit(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, postVisit |
| 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 PreOrder(Visitor visitor)
PreOrder visitor using the specified visitor.visitor - The visitor to adapt.| Method Detail |
public void preVisit(java.lang.Object object)
visit method on the visitor to which the
the visitor field refers using the specified object.preVisit 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 | |||||||