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 Address
getAddress(java.math.BigInteger index)
Returns the i'th address in the set.AddressSet
getAddressSet(FieldSelection sel)
Returns the Address set corresponding to the set of indexesFieldSelection
getFieldSelection(AddressSetView set)
Returns a FieldSelection containing the set of indexes represented by the given address setjava.math.BigInteger
getIndex(Address addr)
Returns the index for the given address.AddressSetView
getIndexedAddressSet()
Returns the total set of addresses in this index mapping (not including those that have been closed)java.math.BigInteger
getMaxIndex(Address addr)
Returns the the maximum address for the range containing the given address.java.math.BigInteger
getMinIndex(Address addr)
Returns the the minimum address for the range containing the given address.AddressSetView
getOriginalAddressSet()
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:AddressIndexMap
Returns the i'th address in the set.- Overrides:
getAddress
in 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:AddressIndexMap
Returns the total set of addresses in this map include addresses that have been closed- Overrides:
getOriginalAddressSet
in classAddressIndexMap
- Returns:
- the total set of addresses in the map including addresses that have been closed
-
getIndexedAddressSet
public AddressSetView getIndexedAddressSet()
Description copied from class:AddressIndexMap
Returns the total set of addresses in this index mapping (not including those that have been closed)- Overrides:
getIndexedAddressSet
in 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:AddressIndexMap
Returns the Address set corresponding to the set of indexes- Overrides:
getAddressSet
in 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:AddressIndexMap
Returns a FieldSelection containing the set of indexes represented by the given address set- Overrides:
getFieldSelection
in 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:AddressIndexMap
Returns the index for the given address. If the address is not mapped, null will be returned- Overrides:
getIndex
in 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:AddressIndexMap
Returns the the maximum address for the range containing the given address.- Overrides:
getMaxIndex
in 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:AddressIndexMap
Returns the the minimum address for the range containing the given address.- Overrides:
getMinIndex
in 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.
-
-