Package sootup.callgraph
Class CallSequenceComparator
java.lang.Object
sootup.callgraph.CallSequenceComparator
- All Implemented Interfaces:
Comparator<CallGraph.Call>
Comparator for ordering
CallGraph.Call objects by their source location.
Ordering is performed using three keys (in priority order):
- line number
- start column
- end column
Calls that lack precise LinePosition information are treated as having the largest
possible line/column values (Integer.MAX_VALUE) so that they are consistently placed after calls
that do have source locations.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CallSequenceComparator
public CallSequenceComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<CallGraph.Call>
-