Package sootup.core.graph
Interface BlockTraversalStrategy
- All Known Implementing Classes:
PostOrderBlockTraversal
,ReversePostOrderBlockTraversal
public interface BlockTraversalStrategy
An interface for defining a strategy to traverse a StmtGraph.
-
Method Summary
Modifier and TypeMethodDescriptionList<BasicBlock<?>>
This method returns a list of Blocks ordered by the traversal sequence.iterator()
This method provides an iterator to traverse a StmtGraph according to the defined strategy.
-
Method Details
-
iterator
BlockIterator iterator()This method provides an iterator to traverse a StmtGraph according to the defined strategy.- Returns:
- an iterator for traversing StmtGraph
-
getBlocksSorted
List<BasicBlock<?>> getBlocksSorted()This method returns a list of Blocks ordered by the traversal sequence.- Returns:
- a list of Blocks in traversal order
-