Class Locations::Location

A location as given by a file, a start line, a start column, an end line, and an end column.

For more information about locations see LGTM locations.

Direct supertypes

Predicates

contains

Holds if this location contains location that, meaning that it starts before and ends after it.

endsAfter

Holds if this location ends after location that.

getEndColumn

Gets the end column of this location.

getEndLine

Gets the end line of this location.

getFile

Gets the file for this location.

getNumLines

Gets the number of lines covered by this location.

getStartColumn

Gets the start column of this location.

getStartLine

Gets the start line of this location.

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see LGTM locations.

isEmpty

Holds if this location is empty.

startsBefore

Holds if this location starts before location that.

toString

Gets a textual representation of this element.