edu.umd.cs.findbugs.ba
Class ReversePostfixOrder.ReversePostfixComparator

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.ReversePostfixOrder.ReversePostfixComparator
All Implemented Interfaces:
java.util.Comparator<BasicBlock>
Enclosing class:
ReversePostfixOrder

private static class ReversePostfixOrder.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
private  DepthFirstSearch dfs
           
 
Constructor Summary
ReversePostfixOrder.ReversePostfixComparator(DepthFirstSearch dfs)
           
 
Method Summary
 int compare(BasicBlock aa, BasicBlock bb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

dfs

private DepthFirstSearch dfs
Constructor Detail

ReversePostfixOrder.ReversePostfixComparator

public ReversePostfixOrder.ReversePostfixComparator(DepthFirstSearch dfs)
Method Detail

compare

public int compare(BasicBlock aa,
                   BasicBlock bb)
Specified by:
compare in interface java.util.Comparator<BasicBlock>