public class

CodeLine

extends Object
implements ILine
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.code.CodeLine

Class Overview

Class for code lines. Code lines items are of type AssemblyItem. Optionnally, coordinates can be attached to code lines:

In the latter case, coordinates will be attached to the characters between the last attached character (excluded) up to the currently last character in the line (included).

Summary

[Expand]
Inherited Fields
From interface com.pnfsoftware.jeb.core.output.text.ILine
Public Constructors
CodeLine()
Public Methods
Map<Integer, ICodeCoordinates> getCoordinates()
ICodeCoordinates getCoordinates(int offset)
List<AssemblyItem> getItems()
Get the list of text items within the current line.
ICodeCoordinates getLineCoordinates()
List<TextMark> getMarks()
Get the list of marks for this line.
CharSequence getText()
Get the line text.
void setCoordinates(ICodeCoordinates coord)
void setLineCoordinates(ICodeCoordinates coord)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.text.ILine

Public Constructors

public CodeLine ()

Public Methods

public Map<Integer, ICodeCoordinates> getCoordinates ()

public ICodeCoordinates getCoordinates (int offset)

public List<AssemblyItem> getItems ()

Get the list of text items within the current line. It is the responsibility of the implementor to make sure that items are non overlapping and are sorted.

Returns
  • a list, possibly empty, of text items

public ICodeCoordinates getLineCoordinates ()

public List<TextMark> getMarks ()

Get the list of marks for this line.

public CharSequence getText ()

Get the line text. It is the responsibility of the implementor to make sure that lines do not contain CR/LF characters.

Returns
  • the line

public void setCoordinates (ICodeCoordinates coord)

public void setLineCoordinates (ICodeCoordinates coord)

public String toString ()