Class AssemblyItem
java.lang.Object
com.pnfsoftware.jeb.core.output.text.impl.TextItem
com.pnfsoftware.jeb.core.output.code.AssemblyItem
- All Implemented Interfaces:
IActionableItem
,IItem
,IVisualItem
,IActionableTextItem
,ITextItem
,IVisualTextItem
Class for code items. Code items are generated by
CodeDocument
, which are reserved for
ICodeUnit
s. 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
IRegisterData
- 0x83: mnemonic - TO BE DEFINED, DO NOT USE
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
Identifier for address itemsstatic final long
static final long
Identifier for data objectsstatic final long
Identifier for field objects; do not confuse withITEM_TYPE_STRUCTFIELD
.static final long
static final long
Identifier for immediate itemsstatic final long
Identifier for local variable itemsstatic final long
Identifier for method/routine/function objectsstatic final long
Identifier for mnemonic itemsstatic final long
Identifier for packagesstatic final long
Identifier for register itemsstatic final long
Identifier for structures' fieldsstatic final long
Identifier for typesFields inherited from interface com.pnfsoftware.jeb.core.output.IActionableItem
HAS_RELATED_ITEMS, ITEM_TYPE_IDENTITY, ITEM_TYPE_MASK, ROLE_MASTER
-
Constructor Summary
ConstructorsConstructorDescriptionAssemblyItem
(int offset, int length) AssemblyItem
(int offset, int length, ItemClassIdentifiers classId, long itemId, int flags) -
Method Summary
Methods inherited from class com.pnfsoftware.jeb.core.output.text.impl.TextItem
getClassId, getItemFlags, getItemId, getLength, getLine, getOffset, getOffsetEnd, getText, setClassId, setItemFlags, setItemId, setLength, setLine, setOffset, toString
-
Field Details
-
ITEM_TYPE_ADDRESS
public static final long ITEM_TYPE_ADDRESSIdentifier for address items- See Also:
-
ITEM_TYPE_REGISTER
public static final long ITEM_TYPE_REGISTERIdentifier for register items- See Also:
-
ITEM_TYPE_MNEMONIC
public static final long ITEM_TYPE_MNEMONICIdentifier for mnemonic items- See Also:
-
ITEM_TYPE_IMMEDIATE
public static final long ITEM_TYPE_IMMEDIATEIdentifier for immediate items- See Also:
-
ITEM_TYPE_LOCAL
public static final long ITEM_TYPE_LOCALIdentifier for local variable items- See Also:
-
ITEM_TYPE_TYPE
public static final long ITEM_TYPE_TYPEIdentifier for types- See Also:
-
ITEM_TYPE_METHOD
public static final long ITEM_TYPE_METHODIdentifier for method/routine/function objects- See Also:
-
ITEM_TYPE_STRUCTFIELD
public static final long ITEM_TYPE_STRUCTFIELDIdentifier for structures' fields- See Also:
-
ITEM_TYPE_DATA
public static final long ITEM_TYPE_DATAIdentifier for data objects- See Also:
-
ITEM_TYPE_IDENT
public static final long ITEM_TYPE_IDENT- See Also:
-
ITEM_TYPE_CLASS
public static final long ITEM_TYPE_CLASS- See Also:
-
ITEM_TYPE_FIELD
public static final long ITEM_TYPE_FIELDIdentifier for field objects; do not confuse withITEM_TYPE_STRUCTFIELD
.- See Also:
-
ITEM_TYPE_PACKAGE
public static final long ITEM_TYPE_PACKAGEIdentifier for packages- See Also:
-
-
Constructor Details
-
AssemblyItem
public AssemblyItem(int offset, int length) -
AssemblyItem
-