Package com.pnfsoftware.jeb.core.units
Class AddressPrefixMetadataGroup
java.lang.Object
com.pnfsoftware.jeb.core.units.AbstractMetadataGroup
com.pnfsoftware.jeb.core.units.AddressPrefixMetadataGroup
- All Implemented Interfaces:
IMetadataGroup
A metadata group which filters by address prefix.
-
Field Summary
FieldsFields inherited from class com.pnfsoftware.jeb.core.units.AbstractMetadataGroup
name, type -
Constructor Summary
ConstructorsConstructorDescriptionCreate an address-prefix metadata group using the default name.AddressPrefixMetadataGroup(IAddressableUnit unit, String name) Create an address-prefix metadata group. -
Method Summary
Modifier and TypeMethodDescriptionGet a read-only map of all the key-value pairs of metadata items contained in this group.Retrieve the black-list with full access.Get the piece of metadata associated with the provided address.getData(String address, AddressConversionPrecision precision) Get the piece of metadata associated with the provided address.Retrieve the list of addresses that represent the start/change of a section, null if none.booleanSet or remove the piece of metadata associated with the given address.Methods inherited from class com.pnfsoftware.jeb.core.units.AbstractMetadataGroup
getName, getType
-
Field Details
-
DEFAULT_NAME
Default group name.- See Also:
-
-
Constructor Details
-
AddressPrefixMetadataGroup
Create an address-prefix metadata group using the default name.- Parameters:
unit- addressable unit
-
AddressPrefixMetadataGroup
Create an address-prefix metadata group.- Parameters:
unit- addressable unitname- optional group name
-
-
Method Details
-
getAllData
Description copied from interface:IMetadataGroupGet a read-only map of all the key-value pairs of metadata items contained in this group. Not all groups may be able to provide this functionality. If so, this method should return null.- Returns:
- a map of key-value pairs, possibly empty; if the operation is not supported, null is returned
-
setData
Description copied from interface:IMetadataGroupSet or remove the piece of metadata associated with the given address.- Parameters:
address- addressdata- metadata, use null to remove- Returns:
- true if the operation succeeded; false otherwise (eg, the operation is not supported)
-
getData
Description copied from interface:IMetadataGroupGet the piece of metadata associated with the provided address.- Parameters:
address- address- Returns:
- the data at address, null if none
-
getData
Description copied from interface:IMetadataGroupGet the piece of metadata associated with the provided address.- Parameters:
address- addressprecision- precision of the input address.AddressConversionPrecision.COARSEwill use raw references (may fasten result)- Returns:
- the data at address, null if none
-
getBlacklist
Retrieve the black-list with full access.- Returns:
- mutable list of address prefixes to ignore
-
getSectionAnchorIds
Description copied from interface:IMetadataGroupRetrieve the list of addresses that represent the start/change of a section, null if none.- Returns:
- the list of addresses
-