|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TupleNodeVisitor
Tuple tree node visitor interface. Note that this is a more specific variant of the extrinsic visitor pattern. It has the following advantages over the standard visitor pattern:
TupleNode.accept(TupleNodeVisitor)| Method Summary | |
|---|---|
boolean |
canVisit(TupleNode node)
Checks to see if a node can be visited. |
java.util.ArrayList |
getOrder(TupleNode node,
java.util.ArrayList children)
Get the array of children to visit sequentially to determine the order of child visitations. |
boolean |
isPrefix()
Determines whether the visitation order is prefix or postfix. |
void |
setMonitor(VisitorMonitor monitor)
Sets the monitoring which recieves callbacks of notable events from this visitor. |
void |
visit(TupleNode node)
Visits a tree of tuple nodes using a specific visitation order. |
| Method Detail |
|---|
void visit(TupleNode node)
node - the node to visitboolean canVisit(TupleNode node)
node - the node to be visited
boolean isPrefix()
java.util.ArrayList getOrder(TupleNode node,
java.util.ArrayList children)
node - the parent branch nodechildren - the child node array
void setMonitor(VisitorMonitor monitor)
monitor - the monitor instance for the visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||