Class TextItem
java.lang.Object
com.pnfsoftware.jeb.core.output.text.impl.TextItem
- All Implemented Interfaces:
IActionableItem,IItem,IVisualItem,IActionableTextItem,ITextItem,IVisualTextItem
- Direct Known Subclasses:
AssemblyItem
A simple implementation for an actionable text item within a line.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.output.IActionableItem
HAS_RELATED_ITEMS, ITEM_TYPE_IDENTITY, ITEM_TYPE_MASK, ROLE_MASTER -
Constructor Summary
ConstructorsConstructorDescriptionTextItem(int offset, int length) TextItem(int offset, int length, ItemClassIdentifiers classId) TextItem(int offset, int length, ItemClassIdentifiers classId, long itemId, int flags) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the item class id, if any.intRetrieve the item flags.longRetrieve the item id.intGet item length within a line.getLine()Get the line that contains this item.intGet the item offset within a line.intGet the item end offset (exclusive) within a line.getText()Get the text of the item.voidsetClassId(ItemClassIdentifiers classId) voidsetItemFlags(int flags) voidsetItemId(long itemId) voidsetLength(int length) voidvoidsetOffset(int offset) toString()
-
Constructor Details
-
TextItem
public TextItem(int offset, int length) -
TextItem
-
TextItem
-
-
Method Details
-
getOffset
public int getOffset()Description copied from interface:ITextItemGet the item offset within a line. -
setOffset
public void setOffset(int offset) -
getLength
public int getLength()Description copied from interface:ITextItemGet item length within a line. -
setLength
public void setLength(int length) -
getOffsetEnd
public int getOffsetEnd()Description copied from interface:ITextItemGet the item end offset (exclusive) within a line.- Specified by:
getOffsetEndin interfaceITextItem- Returns:
-
getClassId
Description copied from interface:IVisualItemRetrieve the item class id, if any.- Specified by:
getClassIdin interfaceIVisualItem- Returns:
- the class id, null if none
-
setClassId
-
getItemId
public long getItemId()Description copied from interface:IActionableItemRetrieve the item id.- Specified by:
getItemIdin interfaceIActionableItem- Returns:
- the item id, 0 if none
-
setItemId
public void setItemId(long itemId) -
getItemFlags
public int getItemFlags()Description copied from interface:IActionableItemRetrieve the item flags. Currently, allowed flags are:
-IActionableItem.ROLE_MASTER
-IActionableItem.HAS_RELATED_ITEMS
For
code nodes, this is not to be confused with the generic flags.- Specified by:
getItemFlagsin interfaceIActionableItem- Returns:
- the items flags
-
setItemFlags
public void setItemFlags(int flags) -
getLine
Description copied from interface:ITextItemGet the line that contains this item. -
setLine
-
getText
Description copied from interface:ITextItemGet the text of the item. -
toString
-