Package sootup.core.graph
Class PostOrderBlockTraversal
java.lang.Object
sootup.core.graph.PostOrderBlockTraversal
- All Implemented Interfaces:
BlockTraversalStrategy
A strategy to traverse a StmtGraph in post-order.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<BasicBlock<?>>
This method returns a list of Blocks ordered by the traversal sequence.Iterable<BasicBlock<?>>
getOrder()
iterator()
This method provides an iterator to traverse a StmtGraph according to the defined strategy.
-
Constructor Details
-
PostOrderBlockTraversal
-
-
Method Details
-
getOrder
-
iterator
Description copied from interface:BlockTraversalStrategy
This method provides an iterator to traverse a StmtGraph according to the defined strategy.- Specified by:
iterator
in interfaceBlockTraversalStrategy
- Returns:
- an iterator for traversing StmtGraph
-
getBlocksSorted
Description copied from interface:BlockTraversalStrategy
This method returns a list of Blocks ordered by the traversal sequence.- Specified by:
getBlocksSorted
in interfaceBlockTraversalStrategy
- Returns:
- a list of Blocks in traversal order
-