public class

CodeItem

extends TextItem
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.text.impl.TextItem
     ↳ com.pnfsoftware.jeb.core.output.code.CodeItem

Class Overview

Class for code items. Code items are generated by CodeDocument, which are reserved for ICodeUnits. IDs of code items have a special format: the upper-8 bits are used to specify the type of the item. Negative items (those whose upper 8-bits will be 1xxxxxxx) are using reserved types, in the range 0x80-0xFF. When using a well-known type, getItemObject() should return an adequate object, as specified by the contract.

Well-known item types:

  • 0x81: address - the item object should be a Long representing the address
  • 0x82: register - the item object should be a Long whose lower 32-bit are an Integer, representing an index into an IRegisterBank
  • 0x83: mnemonic - TO BE DEFINED, DO NOT USE

Summary

Constants
long ITEM_TYPE_ADDRESS Identifier for address items
long ITEM_TYPE_IMMEDIATE Identifier for immediate items
long ITEM_TYPE_MASK Mask of reserved item identifiers
long ITEM_TYPE_MNEMONIC Identifier for mnemonic items
long ITEM_TYPE_REGISTER Identifier for register items
[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.output.IActionableItem
Public Constructors
CodeItem(int offset, int length)
CodeItem(int offset, int length, ItemClassIdentifiers classId, long itemId, int flags)
[Expand]
Inherited Methods
From class com.pnfsoftware.jeb.core.output.text.impl.TextItem
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.IActionableItem
From interface com.pnfsoftware.jeb.core.output.IVisualItem
From interface com.pnfsoftware.jeb.core.output.text.ITextItem

Constants

public static final long ITEM_TYPE_ADDRESS

Identifier for address items

Constant Value: -9151314442816847872 (0x8100000000000000)

public static final long ITEM_TYPE_IMMEDIATE

Identifier for immediate items

Constant Value: -8935141660703064064 (0x8400000000000000)

public static final long ITEM_TYPE_MASK

Mask of reserved item identifiers

Constant Value: -72057594037927936 (0xff00000000000000)

public static final long ITEM_TYPE_MNEMONIC

Identifier for mnemonic items

Constant Value: -9007199254740992000 (0x8300000000000000)

public static final long ITEM_TYPE_REGISTER

Identifier for register items

Constant Value: -9079256848778919936 (0x8200000000000000)

Public Constructors

public CodeItem (int offset, int length)

public CodeItem (int offset, int length, ItemClassIdentifiers classId, long itemId, int flags)