public class

TextItem

extends Object
implements IActionableTextItem
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.text.impl.TextItem
Known Direct Subclasses

Class Overview

A simple implementation for an actionable text item within a line.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.output.IActionableItem
Public Constructors
TextItem(int offset, int length)
TextItem(int offset, int length, ItemClassIdentifiers classId)
TextItem(int offset, int length, ItemClassIdentifiers classId, long itemId, int flags)
Public Methods
ItemClassIdentifiers getClassId()
Retrieve the item class id, if any.
int getItemFlags()
Retrieve the item flags.
long getItemId()
Retrieve the item id.
int getLength()
Get item length within a line.
ILine getLine()
Get the line that contains this item.
int getOffset()
Get the item offset within a line.
int getOffsetEnd()
Get the item end offset (exclusive) within a line.
String getText()
Get the text of the item.
void setClassId(ItemClassIdentifiers classId)
void setItemFlags(int flags)
void setItemId(long itemId)
void setLength(int length)
void setLine(ILine line)
void setOffset(int offset)
String toString()
[Expand]
Inherited Methods
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

Public Constructors

public TextItem (int offset, int length)

public TextItem (int offset, int length, ItemClassIdentifiers classId)

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

Public Methods

public ItemClassIdentifiers getClassId ()

Retrieve the item class id, if any.

Returns
  • the class id, null if none

public int getItemFlags ()

Retrieve the item flags. Currently, allowed flags are:
- ROLE_MASTER
- HAS_RELATED_ITEMS

For code nodes, this is not to be confused with the generic flags.

Returns
  • the items flags

public long getItemId ()

Retrieve the item id.

Returns
  • the item id, 0 if none

public int getLength ()

Get item length within a line.

Returns
  • the item character count

public ILine getLine ()

Get the line that contains this item.

Returns
  • the line, or null if the item does not belong to any line

public int getOffset ()

Get the item offset within a line.

Returns
  • the item offset

public int getOffsetEnd ()

Get the item end offset (exclusive) within a line.

public String getText ()

Get the text of the item.

public void setClassId (ItemClassIdentifiers classId)

public void setItemFlags (int flags)

public void setItemId (long itemId)

public void setLength (int length)

public void setLine (ILine line)

public void setOffset (int offset)

public String toString ()