Package com.strobel.decompiler.languages
Class LineNumberPosition
- java.lang.Object
-
- com.strobel.decompiler.languages.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 Summary
Fields Modifier and Type Field Description private int
_emittedColumn
the 1-indexed column number in the decompiler-emitted source fileprivate int
_emittedLine
the line number in the decompiler-emitted source fileprivate int
_originalLine
the line number from the original source code
-
Constructor Summary
Constructors Constructor Description LineNumberPosition(int originalLine, int emittedLine, int emittedColumn)
Creates a new line number position from a decompiler-emitted expression or statement.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
computeMaxLineNumber(java.util.List<LineNumberPosition> lineNumPositions)
int
getEmittedColumn()
int
getEmittedLine()
int
getOriginalLine()
java.lang.String
toString()
-
-
-
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 codeemittedLine
- the line number of the expression/statement in the decompiler-emitted codeemittedColumn
- 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 classjava.lang.Object
-
-