Package edu.umd.cs.findbugs.ba
Class ReversePostOrder.ReversePostfixComparator
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.ReversePostOrder.ReversePostfixComparator
-
- All Implemented Interfaces:
java.util.Comparator<BasicBlock>
- Enclosing class:
- ReversePostOrder
private static class ReversePostOrder.ReversePostfixComparator extends java.lang.Object implements java.util.Comparator<BasicBlock>
A Comparator to order the blocks in the reverse of the order in which they would be finished by a depth first search.
-
-
Field Summary
Fields Modifier and Type Field Description private DepthFirstSearch
dfs
-
Constructor Summary
Constructors Constructor Description ReversePostfixComparator(DepthFirstSearch dfs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(BasicBlock aa, BasicBlock bb)
-
-
-
Field Detail
-
dfs
private final DepthFirstSearch dfs
-
-
Constructor Detail
-
ReversePostfixComparator
public ReversePostfixComparator(DepthFirstSearch dfs)
-
-
Method Detail
-
compare
public int compare(BasicBlock aa, BasicBlock bb)
- Specified by:
compare
in interfacejava.util.Comparator<BasicBlock>
-
-