Class LineNumberPosition

java.lang.Object
com.strobel.decompiler.languages.LineNumberPosition

public class LineNumberPosition extends Object
Indicates the position of a line number in a decompiler-written Java class. For example, an expression which originally came from line number 13 might have actually been emitted at column 65 of line 27 in the decompiler-emitted source file.
  • Field Details

    • _originalLine

      private final int _originalLine
      the line number from the original source code
    • _emittedLine

      private final int _emittedLine
      the line number in the decompiler-emitted source file
    • _emittedColumn

      private final int _emittedColumn
      the 1-indexed column number in the decompiler-emitted source file
  • Constructor Details

    • LineNumberPosition

      public LineNumberPosition(int originalLine, int emittedLine, int emittedColumn)
      Creates a new line number position from a decompiler-emitted expression or statement.
      Parameters:
      originalLine - the line number of the expression/statement in the original code
      emittedLine - the line number of the expression/statement in the decompiler-emitted code
      emittedColumn - the 1-indexed column number of the expression/statement in the decompiler-emitted code
  • Method Details

    • getOriginalLine

      public int getOriginalLine()
    • getEmittedLine

      public int getEmittedLine()
    • getEmittedColumn

      public int getEmittedColumn()
    • computeMaxLineNumber

      public static int computeMaxLineNumber(List<LineNumberPosition> lineNumPositions)
    • toString

      public String toString()
      Overrides:
      toString in class Object