Package ghidra.app.util.viewer.util
Class AddressIndexMapConverter
- java.lang.Object
-
- ghidra.app.util.viewer.util.AddressIndexMap
-
- ghidra.app.util.viewer.util.AddressIndexMapConverter
-
public class AddressIndexMapConverter extends AddressIndexMap
-
-
Field Summary
-
Fields inherited from class ghidra.app.util.viewer.util.AddressIndexMap
DEFAULT_UNVIEWABLE_GAP_SIZE, PERCENT_DIVIDER
-
-
Constructor Summary
Constructors Constructor Description AddressIndexMapConverter(AddressIndexMap addressIndexMap, Program mapProgram, Program otherProgram)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressgetAddress(java.math.BigInteger index)Returns the i'th address in the set.AddressSetgetAddressSet(FieldSelection sel)Returns the Address set corresponding to the set of indexesFieldSelectiongetFieldSelection(AddressSetView set)Returns a FieldSelection containing the set of indexes represented by the given address setjava.math.BigIntegergetIndex(Address addr)Returns the index for the given address.AddressSetViewgetIndexedAddressSet()Returns the total set of addresses in this index mapping (not including those that have been closed)java.math.BigIntegergetMaxIndex(Address addr)Returns the the maximum address for the range containing the given address.java.math.BigIntegergetMinIndex(Address addr)Returns the the minimum address for the range containing the given address.AddressSetViewgetOriginalAddressSet()Returns the total set of addresses in this map include addresses that have been closed-
Methods inherited from class ghidra.app.util.viewer.util.AddressIndexMap
getIndexAtOrAfter, getIndexCount, getMiniumUnviewableGapSize, isGapAddress, isGapIndex, removeUnviewableAddressRanges, reset
-
-
-
-
Constructor Detail
-
AddressIndexMapConverter
public AddressIndexMapConverter(AddressIndexMap addressIndexMap, Program mapProgram, Program otherProgram)
-
-
Method Detail
-
getAddress
public Address getAddress(java.math.BigInteger index)
Description copied from class:AddressIndexMapReturns the i'th address in the set.- Overrides:
getAddressin classAddressIndexMap- Parameters:
index- the index of the address to retrieve.- Returns:
- the address associated with the given index
-
getOriginalAddressSet
public AddressSetView getOriginalAddressSet()
Description copied from class:AddressIndexMapReturns the total set of addresses in this map include addresses that have been closed- Overrides:
getOriginalAddressSetin classAddressIndexMap- Returns:
- the total set of addresses in the map including addresses that have been closed
-
getIndexedAddressSet
public AddressSetView getIndexedAddressSet()
Description copied from class:AddressIndexMapReturns the total set of addresses in this index mapping (not including those that have been closed)- Overrides:
getIndexedAddressSetin classAddressIndexMap- Returns:
- the total set of addresses in this index mapping (not including those that have been closed)
-
getAddressSet
public AddressSet getAddressSet(FieldSelection sel)
Description copied from class:AddressIndexMapReturns the Address set corresponding to the set of indexes- Overrides:
getAddressSetin classAddressIndexMap- Parameters:
sel- the FieldSelection containing the set of indexes to include.- Returns:
- the AddressSet for the given field selection.
-
getFieldSelection
public FieldSelection getFieldSelection(AddressSetView set)
Description copied from class:AddressIndexMapReturns a FieldSelection containing the set of indexes represented by the given address set- Overrides:
getFieldSelectionin classAddressIndexMap- Parameters:
set- the set of addresses to convert into a set of indexes.- Returns:
- a FieldSelection for the given address set.
-
getIndex
public java.math.BigInteger getIndex(Address addr)
Description copied from class:AddressIndexMapReturns the index for the given address. If the address is not mapped, null will be returned- Overrides:
getIndexin classAddressIndexMap- Parameters:
addr- the address for which to retrieve the index.- Returns:
- the index associated with the given address.
-
getMaxIndex
public java.math.BigInteger getMaxIndex(Address addr)
Description copied from class:AddressIndexMapReturns the the maximum address for the range containing the given address.- Overrides:
getMaxIndexin classAddressIndexMap- Parameters:
addr- the address to find its containing range's max address.- Returns:
- the the maximum address for the range containing the given address.
-
getMinIndex
public java.math.BigInteger getMinIndex(Address addr)
Description copied from class:AddressIndexMapReturns the the minimum address for the range containing the given address.- Overrides:
getMinIndexin classAddressIndexMap- Parameters:
addr- the address to find its containing range's min address.- Returns:
- the the minimum address for the range containing the given address.
-
-