Class Top
Top is the root of the QL type hierarchy; it defines some default
methods for obtaining locations and a standard toString()
method.
Import path
import java
Direct supertypes
Known direct subtypes
Predicates
getAPrimaryQlClass |
Gets the name of a primary CodeQL class to which this element belongs. |
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. |
getPrimaryQlClasses |
Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. |
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 |
toString |
Gets a textual representation of this element. |