Class Token
A token occurring in a piece of JavaScript source code.
Examples:
x
/\w+/
12.3
;
Import path
import javascriptIndirect supertypes
Known direct subtypes
Predicates
| getIndex | Gets the index of the token inside its toplevel structure. |
| getNextToken | Gets the token following this token inside the same toplevel structure, if any. |
| getPreviousToken | Gets the token preceding this token inside the same toplevel structure, if any. |
| getTopLevel | Gets the toplevel syntactic structure to which this token belongs. |
| getValue | Gets the source text of this token. |
| toString | Gets a textual representation of this element. |
Inherited predicates
| getAPrimaryQlClass | Gets the primary QL class for the Locatable. | from Locatable |
| getEndLine | Gets the line on which this element ends. | from Locatable |
| getFile | Gets the file this program element comes from. | from Locatable |
| getLocation | Gets this element’s location. | from Locatable |
| getNumLines | Gets the number of lines covered by this element. | from Locatable |
| getPrimaryQlClasses | Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. | from Locatable |
| getStartLine | Gets the line on which this element starts. | from Locatable |