Interface LineInFileLocation
- All Superinterfaces:
- FileLocation,- Location
A basic location pointing to a specific part of a file using line number, column, and length for coordinates.
 
The line and column coordinates are one-indexed so that they can be easily matched to the content of a UI editor interface.
- Since:
- 8.6
- 
Method SummaryMethods inherited from interface org.gradle.tooling.events.problems.FileLocationgetPath
- 
Method Details- 
getLineint getLine()The line number within the file.The line is one-indexed, i.e. the first line in the file is line number 1. - Returns:
- the line number
- Since:
- 8.6
 
- 
getColumnint getColumn()The starting column on the selected line.The column is one-indexed, i.e. the first column in the file is column number 1. A non-positive value indicates that the column information is not available. - Returns:
- the column
- Since:
- 8.6
 
- 
getLengthint getLength()The length of the selected content starting from specified column. A negative value indicates that the column information is not available.- Returns:
- the length
- Since:
- 8.6
 
 
-