Class YamlMappingLikeNode
A YAML node that may contain sub-nodes that can be identified by a name. I.e. a mapping, sequence, or scalar.
Is used in e.g. GithHub Actions, which is quite flexible in parsing YAML.
For example:
on: pull_request
and
on: [pull_request]
and
on:
pull_request:
are equivalent.
Import path
import javascript
Direct supertypes
Indirect supertypes
Known direct subtypes
Predicates
getElementCount |
Gets the number of elements in this mapping or sequence. |
getNode |
Gets sub-name identified by |
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 |
getAPrimaryQlClass |
Gets the primary QL class for the Locatable. |
from YamlNode |
getAnchor |
Gets the anchor associated with this node, if any. |
from YamlNode |
getChild |
Gets the |
from YamlNode |
getChildNode |
Gets the |
from YamlNode |
getDocument |
Gets the toplevel document to which this node belongs. |
from YamlNode |
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 YamlNode |
getNumChild |
Gets the number of child nodes of this node. |
from YamlNode |
getNumLines |
Gets the number of lines covered by this element. |
from Locatable |
getParentNode |
Gets the parent node of this node, which is always a collection. |
from YamlNode |
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 |
getTag |
Gets the tag of this node. |
from YamlNode |
hasStandardTypeTag |
Holds if this node is tagged with a standard type tag of the form |
from YamlNode |
toString |
Gets a textual representation of this element. |
from YamlNode |