|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A standrard interface for interacting with visitors that walk the tree from receivers to source.
Method Summary | |
TreeNode[] |
getParents(Tree tree,
TreeNode node)
Get a list of parents for the current node applying correct activity semantics. |
java.util.Enumeration |
getReceivers(Tree tree)
Get a list of active receivers. |
boolean |
nextReceiver(Tree tree,
Receiver recv)
Check whether the next receiver should start a visiting path. |
java.lang.Object |
visitUp(Tree tree,
TreeNode node)
Visit the current node prior to visiting parent. |
java.lang.Object |
visitUp(Tree tree,
TreeNode node,
java.util.Vector list)
Visit the current node after visiting parent. |
boolean |
walkUp()
Whether to walk up the tree. |
Methods inherited from interface mwalk.visitor.Visitor |
again,
evaluator,
evaluator,
init,
postfix,
prefix,
reset,
verbose |
Method Detail |
public boolean walkUp()
boolean
whether to walk up the treepublic boolean nextReceiver(Tree tree, Receiver recv)
Tree
- current tree instanceReceiver
- next receiverboolean
whether to visit next receiverpublic java.util.Enumeration getReceivers(Tree tree)
Tree
- current tree instanceEnumeration
list of receivers to visitpublic java.lang.Object visitUp(Tree tree, TreeNode node) throws VisitException
Tree
- current tree instanceTreeNode
- current nodeObject
optional return value to pass back along the pathVisitException
- if a problem ocurred during visitpublic java.lang.Object visitUp(Tree tree, TreeNode node, java.util.Vector list) throws VisitException
Tree
- current tree instanceTreeNode
- current nodeObject
- list of return values passed back along the pathVector
optional return value to pass back along the pathVisitException
- if a problem ocurred during visitpublic TreeNode[] getParents(Tree tree, TreeNode node)
Tree
- current tree instanceTreeNode
- current nodeTreeNode[]
array of parent nodes of currently visited node
|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |