CodeQL library for Python
codeql/python-all 2.1.2-dev (changelog, source)
Search

Class Make::YamlMapping

A YAML mapping.

Example:

x: 0
y: 1

Import path

import codeql.yaml.Yaml

Direct supertypes

Indirect supertypes

Predicates

getAPrimaryQlClass

Gets the primary QL class for this node.

getKey

Gets the ith key of this mapping, as a YAML value.

getKeyNode

Gets the ith key of this mapping.

getValue

Gets the ith value of this mapping, as a YAML value.

getValueNode

Gets the ith value of this mapping.

lookup

Gets the value that this mapping maps key to.

maps

Holds if this mapping maps key to value.

Inherited predicates

eval

Gets the YAML value this node corresponds to after resolving aliases and includes.

from YamlNode
getAChild

Gets a child of this node, as a YAML value.

from YamlNode
getAChildNode

Gets a child node of this node.

from YamlNode
getAnchor

Gets the anchor associated with this node, if any.

from YamlNode
getChild

Gets the ith child of this node, as a YAML value.

from YamlNode
getChildNode

Gets the ith child node of this node.

from YamlNode
getDocument

Gets the toplevel document to which this node belongs.

from YamlNode
getFile

Gets the file this node comes from.

from YamlNode
getLocation

Gets the Location of this node.

from YamlNode
getNumChild

Gets the number of child nodes of this node.

from YamlNode
getParentNode

Gets the parent node of this node, which is always a collection.

from YamlNode
getTag

Gets the tag of this node.

from YamlNode
hasStandardTypeTag

Holds if this node is tagged with a standard type tag of the form tag:yaml.org,2002:<t>.

from YamlNode
toString

Gets a textual representation of this node.

from YamlNode