|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.xmlgraph.NodeProcessor<Object>
dk.brics.xmlgraph.ReachableNodesProcessor
public class ReachableNodesProcessor
Node processor for processing each reachable node at most once.
| Constructor Summary | |
|---|---|
ReachableNodesProcessor(XMLGraph xg)
Constructs a new processor. |
|
| Method Summary | |
|---|---|
static List<Node> |
getReachableNodes(XMLGraph xg)
Returns the set of reachable nodes in xg. |
Object |
pre(Node n)
Keeps track of visited nodes. |
Object |
process(MultiContentNode n)
Invokes the processor recursively on each child of the given node. |
Object |
process(SingleContentNode n)
Invokes the processor recursively on the child of the given node. |
| Methods inherited from class dk.brics.xmlgraph.NodeProcessor |
|---|
dispatch, dispatch, dispatch, dispatch, dispatch, dispatch, dispatch, post, process, process, process, process, process, process, process, process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReachableNodesProcessor(XMLGraph xg)
xg - XML graph| Method Detail |
|---|
public static List<Node> getReachableNodes(XMLGraph xg)
xg.
xg - XML graph
xgpublic Object pre(Node n)
pre in class NodeProcessor<Object>n - node
public Object process(MultiContentNode n)
process in class NodeProcessor<Object>n - node
public Object process(SingleContentNode n)
process in class NodeProcessor<Object>n - node
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||