Class LineNumberPosition


  • public class LineNumberPosition
    extends java.lang.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 Detail

      • _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 Detail

      • 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 Detail

      • getOriginalLine

        public int getOriginalLine()
      • getEmittedLine

        public int getEmittedLine()
      • getEmittedColumn

        public int getEmittedColumn()
      • computeMaxLineNumber

        public static int computeMaxLineNumber​(java.util.List<LineNumberPosition> lineNumPositions)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object