Package com.strobel.decompiler.languages
Class LineNumberPosition
java.lang.Object
com.strobel.decompiler.languages.LineNumberPosition
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
FieldsModifier and TypeFieldDescriptionprivate final int
the 1-indexed column number in the decompiler-emitted source fileprivate final int
the line number in the decompiler-emitted source fileprivate final int
the line number from the original source code -
Constructor Summary
ConstructorsConstructorDescriptionLineNumberPosition
(int originalLine, int emittedLine, int emittedColumn) Creates a new line number position from a decompiler-emitted expression or statement. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
computeMaxLineNumber
(List<LineNumberPosition> lineNumPositions) int
int
int
toString()
-
Field Details
-
_originalLine
private final int _originalLinethe line number from the original source code -
_emittedLine
private final int _emittedLinethe line number in the decompiler-emitted source file -
_emittedColumn
private final int _emittedColumnthe 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 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 Details