|
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.PrimaryPathVisitor
A visitor used by the builder to mark the primary path for each receiver.
Field Summary | |
protected int |
edges
A count of total egdes in graph |
protected int |
links
A count of primary links in tree |
Fields inherited from class mwalk.visitor.AbstractVisitor |
CFG_BASE,
eval,
seen,
verbose |
Constructor Summary | |
PrimaryPathVisitor()
Default constructor. |
Method Summary | |
int |
countEdges()
Return the total number of edges in the graph. |
int |
countLinks()
Return the number of primary links in the tree. |
TreeNode[] |
getParents(Tree tree,
TreeNode node)
Retrieve the list of parents of this node. |
Methods inherited from class mwalk.visitor.AbstractVisitor |
again,
cfgBoolean,
cfgInt,
cfgString,
cfgVisitor,
evaluator,
evaluator,
getChildren,
getReceivers,
haveSeen,
haveVisited,
init,
markSeen,
markVisited,
nextReceiver,
postfix,
prefix,
reset,
verbose,
visitDown,
visitDown,
visitUp,
visitUp,
walkDown,
walkUp |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int links
protected int edges
Constructor Detail |
public PrimaryPathVisitor()
Method Detail |
public int countLinks()
int
number of primary links.public int countEdges()
int
number of edges.public TreeNode[] getParents(Tree tree, TreeNode node)
Tree
- vistited treeTreeNode
- currently visited 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 |