Class Location::Location

A location maps language elements to positions in source files.

Direct supertypes

Predicates

getEndColumn

Gets the column number where this location ends.

getEndLine

Gets the line number where this location ends.

getFile

Gets the file containing this location.

getNumberOfCommentLines

Gets the number of comment lines that this location ranges over.

getNumberOfLines

Gets the total number of lines that this location ranges over, including lines of code, comment and whitespace-only lines.

getNumberOfLinesOfCode

Gets the number of lines of code that this location ranges over.

getStartColumn

Gets the column number where this location starts.

getStartLine

Gets the line number where this location starts.

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.

toString

Gets a string representation containing the file and range for this location.