Class ScalarNode


  • public class ScalarNode
    extends Node
    Represents a scalar node.

    Scalar nodes form the leaves in the node graph.

    • Method Detail

      • getNodeId

        public NodeId getNodeId()
        Description copied from class: Node
        For error reporting.
        Specified by:
        getNodeId in class Node
        Returns:
        scalar, sequence, mapping
        See Also:
        "class variable 'id' in PyYAML"
      • getValue

        public java.lang.String getValue()
        Value of this scalar.
        Returns:
        Scalar's value.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isPlain

        public boolean isPlain()