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
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull List<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:BlockTraversalStrategyThis method provides an iterator to traverse a StmtGraph according to the defined strategy.- Specified by:
iteratorin interfaceBlockTraversalStrategy- Returns:
- an iterator for traversing StmtGraph
-
getBlocksSorted
Description copied from interface:BlockTraversalStrategyThis method returns a list of Blocks ordered by the traversal sequence.- Specified by:
getBlocksSortedin interfaceBlockTraversalStrategy- Returns:
- a list of Blocks in traversal order
-