Class CallSequenceComparator

java.lang.Object
sootup.callgraph.CallSequenceComparator
All Implemented Interfaces:
Comparator<CallGraph.Call>

public class CallSequenceComparator extends Object implements Comparator<CallGraph.Call>
Comparator for ordering CallGraph.Call objects by their source location.

Ordering is performed using three keys (in priority order):

  1. line number
  2. start column
  3. 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.