Class DWARFRange

java.lang.Object
ghidra.app.util.bin.format.dwarf4.DWARFRange
All Implemented Interfaces:
Comparable<DWARFRange>

public class DWARFRange extends Object implements Comparable<DWARFRange>
Holds the start (inclusive) and end (exclusive) addresses of a range.
  • Constructor Details

    • DWARFRange

      public DWARFRange(long start, long end)
      Constructs a new DWARFRange using start and end values.
      Parameters:
      start - long starting address, inclusive
      end - long ending address, exclusive
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(DWARFRange other)
      Specified by:
      compareTo in interface Comparable<DWARFRange>
    • getFrom

      public long getFrom()
      Returns starting address.
      Returns:
      long starting address
    • getTo

      public long getTo()
      Returns ending address, exclusive.
      Returns:
      long ending address, exclusive.