Class CodeLine

java.lang.Object
com.pnfsoftware.jeb.core.output.code.CodeLine
All Implemented Interfaces:
ILine

public class CodeLine extends Object implements ILine
Class for code lines. Code lines items are of type AssemblyItem. Optionally, 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).
  • Constructor Details

    • CodeLine

      public CodeLine()
  • Method Details

    • getText

      public CharSequence getText()
      Description copied from interface: ILine
      Get the line text. It is the responsibility of the implementor to make sure that lines do not contain CR/LF characters.
      Specified by:
      getText in interface ILine
      Returns:
      the line
    • getFlags

      public int getFlags()
      Description copied from interface: ILine
      Retrieve the flags for the entire line.
      Specified by:
      getFlags in interface ILine
      Returns:
      optional flags (may be 0)
    • setFlags

      public void setFlags(int f)
    • addFlags

      public void addFlags(int f)
    • removeFlags

      public void removeFlags(int f)
    • getItems

      public List<AssemblyItem> getItems()
      Description copied from interface: ILine
      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.
      Specified by:
      getItems in interface ILine
      Returns:
      a list, possibly empty, of text items
    • getMarks

      public List<TextMark> getMarks()
      Description copied from interface: ILine
      Get the list of marks for this line.
      Specified by:
      getMarks in interface ILine
      Returns:
    • setCoordinates

      public void setCoordinates(ICodeCoordinates coord)
    • getCoordinates

      public Map<Integer,ICodeCoordinates> getCoordinates()
    • getCoordinates

      public ICodeCoordinates getCoordinates(int offset)
    • setLineCoordinates

      public void setLineCoordinates(ICodeCoordinates coord)
    • getLineCoordinates

      public ICodeCoordinates getLineCoordinates()
    • toString

      public String toString()
      Overrides:
      toString in class Object