|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mwalk.visitor.AbstractVisitor | +--mwalk.visitor.TraceVisitor
A visitor used by the builder to add mtrace paths into the tree.
Field Summary | |
protected int |
hop
Current hop count |
(package private) TreeNode |
parent
Reference to parent node |
protected MTrace |
trace
Associated mtrace object |
Fields inherited from class mwalk.visitor.AbstractVisitor |
CFG_BASE,
eval,
seen,
verbose |
Constructor Summary | |
TraceVisitor(MTrace trace)
|
Method Summary | |
TreeNode[] |
getParents(Tree tree,
TreeNode node)
Get a list of parents for the current node applying correct activity semantics. |
boolean |
prefix()
Whether to visit prior to visiting parent/children. |
void |
reset(Tree tree)
Reset the visitor for a new pass over the tree. |
java.lang.Object |
visitUp(Tree tree,
TreeNode node)
Visit the current node prior to visiting parent. |
Methods inherited from class mwalk.visitor.AbstractVisitor |
again,
cfgBoolean,
cfgInt,
cfgString,
cfgVisitor,
evaluator,
evaluator,
getChildren,
getReceivers,
haveSeen,
haveVisited,
init,
markSeen,
markVisited,
nextReceiver,
postfix,
verbose,
visitDown,
visitDown,
visitUp,
walkDown,
walkUp |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected MTrace trace
protected int hop
TreeNode parent
Constructor Detail |
public TraceVisitor(MTrace trace) throws BuildException
Method Detail |
public boolean prefix()
boolean
whether to visit priorpublic void reset(Tree tree)
Tree
- vistited treepublic 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 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 |