Class LineColumnConverter
java.lang.Object
org.sonar.java.model.LineColumnConverter
There is a different convention in the JDT for line and column numbers.
The difference is only when there are some line continuation characters in text blocks.
Eclipse does not count the line continuation as a new line.
So we cannot use the following methods to get the line and column number:
CompilationUnit.getColumnNumber(int position)
CompilationUnit.getLineNumber(int position)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresent the position in a source String. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoPos(int absolutSourcePosition) toPosition(int absolutSourcePosition)
-
Constructor Details
-
LineColumnConverter
-
-
Method Details
-
toPos
-
toPosition
-