com.pnfsoftware.jeb.core.units.code.asm.items.INativeItem |
![]() |
Master interface for all native code items (objects, types, etc.).
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addFlags(int additions)
Add bits to the existing
flags . | ||||||||||
abstract void |
addListener(INativeItemListener listener)
Listen to events emitted by this native item.
| ||||||||||
abstract <T> T |
getAttribute(String name, Class<T> clazz)
Retrieve an attribute by name.
| ||||||||||
abstract Map<String, Object> |
getAttributes()
Retrieve a map of the item's attributes.
| ||||||||||
abstract boolean |
hasAttribute(String name)
Determine whether this item has an attribute.
| ||||||||||
abstract boolean |
hasFlag(int flag)
Indicate if
INativeItem has a particular flag. | ||||||||||
abstract boolean |
hasTrueAttribute(String name)
Convenience method to determine whether the item has an attribute and the attribute value is
true . | ||||||||||
abstract boolean |
isAutoGenerated()
Determine whether this item is marked as auto-generated.
| ||||||||||
abstract boolean |
isRenamed()
Convenience method used to determine whether this item has an effective name different than
its original name.
| ||||||||||
abstract boolean |
removeAttribute(String name)
Remove an attribute.
| ||||||||||
abstract void |
removeFlags(int subtractions)
Remove bits from the existing
flags . | ||||||||||
abstract void |
removeListener(INativeItemListener listener)
Stop listening to events emitted by this native item.
| ||||||||||
abstract boolean |
setAttribute(String name, Object data)
Set an attribute.
| ||||||||||
abstract void |
setAutoGenerated(boolean autoGenerated)
Set a flag specifying whether this item was auto-generated by the native analyzer.
| ||||||||||
abstract void |
setFlags(int newFlags)
Set the
flags . | ||||||||||
abstract void |
setName(String name)
Set the effective name of the native item.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Listen to events emitted by this native item.
Retrieve an attribute by name.
Retrieve a map of the item's attributes.
Determine whether this item has an attribute.
Indicate if INativeItem
has a particular flag.
Equivalent to (
.getGenericFlags()
& flag) != 0
Convenience method to determine whether the item has an attribute and the attribute value is
true
.
Determine whether this item is marked as auto-generated.
Convenience method used to determine whether this item has an effective name different than its original name.
Remove an attribute.
Stop listening to events emitted by this native item.
Set an attribute.
name | cannot be null |
---|---|
data | if null, the attribute is not set or removed if it were present |
Set a flag specifying whether this item was auto-generated by the native analyzer. This flag cna be used by other components and plugins. Typically, auto-generated items may be modified more liberally than non auto-generated items, which are likely to be created by users.s
Set the effective name of the native item. All native items can have a name.
name | the new name; use null to reset the item name to its original name |
---|