Class Location::Top

Top is the root of the QL type hierarchy; it defines some default methods for obtaining locations and a standard toString() method.

Direct supertypes

Known direct subtypes

Predicates

getFile

Gets the file associated with this element.

getLocation

Gets the source location for this element.

getNumberOfCommentLines

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

getNumberOfLinesOfCode

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

getTotalNumberOfLines

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

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 textual representation of this element.