Class DWARFRange
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.DWARFRange
-
- All Implemented Interfaces:
java.lang.Comparable<DWARFRange>
public class DWARFRange extends java.lang.Object implements java.lang.Comparable<DWARFRange>
Holds the start (inclusive) and end (exclusive) addresses of a range.
-
-
Constructor Summary
Constructors Constructor Description DWARFRange(long start, long end)
Constructs a newDWARFRange
using start and end values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DWARFRange other)
long
getFrom()
Returns starting address.long
getTo()
Returns ending address, exclusive.java.lang.String
toString()
-
-
-
Constructor Detail
-
DWARFRange
public DWARFRange(long start, long end)
Constructs a newDWARFRange
using start and end values.- Parameters:
start
- long starting address, inclusiveend
- long ending address, exclusive
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(DWARFRange other)
- Specified by:
compareTo
in interfacejava.lang.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.
-
-