public interface

INativeItem

implements ICodeItem INativeItemListenable
com.pnfsoftware.jeb.core.units.code.asm.items.INativeItem
Known Indirect Subclasses

Class Overview

Master interface for native code items.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
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)
abstract Map<String, Object> getAttributes()
abstract boolean hasAttribute(String name)
abstract boolean hasTrueAttribute(String name)
Convenience method.
abstract boolean isAutoGenerated()
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)
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)
abstract void setAutoGenerated(boolean autogenerated)
abstract void setFlags(int newFlags)
Set the flags.
abstract void setName(String name)
Set the effective name of the native item.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
From interface com.pnfsoftware.jeb.core.units.code.asm.items.INativeItemListenable

Public Methods

public abstract void addFlags (int additions)

Add bits to the existing flags.

public abstract void addListener (INativeItemListener listener)

Listen to events emitted by this native item.

public abstract T getAttribute (String name, Class<T> clazz)

public abstract Map<String, Object> getAttributes ()

public abstract boolean hasAttribute (String name)

public abstract boolean hasTrueAttribute (String name)

Convenience method.

public abstract boolean isAutoGenerated ()

public abstract boolean isRenamed ()

Convenience method used to determine whether this item has an effective name different than its original name.

Returns
  • true if the item was renamed

public abstract boolean removeAttribute (String name)

public abstract void removeFlags (int subtractions)

Remove bits from the existing flags.

public abstract void removeListener (INativeItemListener listener)

Stop listening to events emitted by this native item.

public abstract boolean setAttribute (String name, Object data)

Parameters
name cannot be null
data if null, the attribute is not set or removed if it were present

public abstract void setAutoGenerated (boolean autogenerated)

public abstract void setFlags (int newFlags)

Set the flags.

public abstract void setName (String name)

Set the effective name of the native item. All native items can have a name.

Parameters
name the new name; use null to reset the item name to its original name