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.int
Retrieve the item flags.long
Retrieve the item id.int
Get item length within a line.getLine()
Get the line that contains this item.int
Get the item offset within a line.int
Get the item end offset (exclusive) within a line.getText()
Get the text of the item.void
setClassId
(ItemClassIdentifiers classId) void
setItemFlags
(int flags) void
setItemId
(long itemId) void
setLength
(int length) void
void
setOffset
(int offset) toString()
-
Constructor Details
-
TextItem
public TextItem(int offset, int length) -
TextItem
-
TextItem
-
-
Method Details
-
getOffset
public int getOffset()Description copied from interface:ITextItem
Get the item offset within a line. -
setOffset
public void setOffset(int offset) -
getLength
public int getLength()Description copied from interface:ITextItem
Get item length within a line. -
setLength
public void setLength(int length) -
getOffsetEnd
public int getOffsetEnd()Description copied from interface:ITextItem
Get the item end offset (exclusive) within a line.- Specified by:
getOffsetEnd
in interfaceITextItem
- Returns:
-
getClassId
Description copied from interface:IVisualItem
Retrieve the item class id, if any.- Specified by:
getClassId
in interfaceIVisualItem
- Returns:
- the class id, null if none
-
setClassId
-
getItemId
public long getItemId()Description copied from interface:IActionableItem
Retrieve the item id.- Specified by:
getItemId
in interfaceIActionableItem
- Returns:
- the item id, 0 if none
-
setItemId
public void setItemId(long itemId) -
getItemFlags
public int getItemFlags()Description copied from interface:IActionableItem
Retrieve 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:
getItemFlags
in interfaceIActionableItem
- Returns:
- the items flags
-
setItemFlags
public void setItemFlags(int flags) -
getLine
Description copied from interface:ITextItem
Get the line that contains this item. -
setLine
-
getText
Description copied from interface:ITextItem
Get the text of the item. -
toString
-