Package ghidra.program.model.listing
Class StackVariableComparator
- java.lang.Object
-
- ghidra.program.model.listing.StackVariableComparator
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.Object>
public class StackVariableComparator extends java.lang.Object implements java.util.Comparator<java.lang.Object>
Compares stack variable offsets; has a static factory method to get a StackVariableComparator.
-
-
Constructor Summary
Constructors Constructor Description StackVariableComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.Object obj1, java.lang.Object obj2)
Compares a stack variable offsets.static StackVariableComparator
get()
Returns a shared instance of a StackVariableComparator.
-
-
-
Method Detail
-
compare
public int compare(java.lang.Object obj1, java.lang.Object obj2)
Compares a stack variable offsets. One or both objects must be a StackVariable.- Specified by:
compare
in interfacejava.util.Comparator<java.lang.Object>
- Parameters:
obj1
- a StackVariable or Integerobj2
- a StackVariable or Integer- Returns:
- a negative integer, zero, or a positive integer if the first argument is less than, equal to, or greater than the second.
-
get
public static StackVariableComparator get()
Returns a shared instance of a StackVariableComparator.
-
-