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 newDWARFRangeusing start and end values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DWARFRange other)longgetFrom()Returns starting address.longgetTo()Returns ending address, exclusive.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DWARFRange
public DWARFRange(long start, long end)Constructs a newDWARFRangeusing start and end values.- Parameters:
start- long starting address, inclusiveend- long ending address, exclusive
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(DWARFRange other)
- Specified by:
compareToin 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.
-
-