CodeQL library for JavaScript
Search

Class JSONBoolean

A JSON-encoded Boolean value.

Examples:

true
false

Import path

import javascript

Direct supertypes

Indirect supertypes

Predicates

getAPrimaryQlClass

Gets the primary QL class for the Locatable.

Inherited predicates

getBooleanValue

If this is a boolean constant, gets its boolean value.

from JSONValue
getChild

Gets the ith child value of this value.

from JSONValue
getElementValue

If this is an array, gets the value of the ith element.

from JSONValue
getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getIntValue

If this is an integer constant, gets its numeric value.

from JSONValue
getJsonFile

Gets the JSON file containing this value.

from JSONValue
getLocation

Gets this element’s location.

from JSONValue
getNumLines

Gets the number of lines covered by this element.

from Locatable
getParent

Gets the parent value to which this value belongs, if any.

from JSONValue
getPrimaryQlClasses

Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.

from Locatable
getPropValue

If this is an object, gets the value of property name.

from JSONValue
getRawValue

Gets the source text of the encoded value; for strings, this includes quotes.

from JSONPrimitiveValue
getStartLine

Gets the line on which this element starts.

from Locatable
getStringValue

If this is a string constant, gets the value of the string.

from JSONValue
getValue

Gets a string representation of the encoded value.

from JSONPrimitiveValue
isTopLevel

Holds if this JSON value is the top level element in its enclosing file.

from JSONValue
toString

Gets a textual representation of this element.

from JSONValue