Packages

object Node

Source
Node.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Node
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait IContainer[+I <: Id, CI <: Id] extends IValue[I] with (CI) => INode[CI] with Iterable[ISome[CI]]

    A container node (map or sequence) that is both a function from child ids to child nodes and an iterable over its present children.

    A container node (map or sequence) that is both a function from child ids to child nodes and an iterable over its present children.

    I

    path type of this node

    CI

    path type of child nodes

  2. trait IMap[+I <: Id] extends IContainer[I, Key]

    A map (object) node whose children are addressed by Id.Key.

    A map (object) node whose children are addressed by Id.Key.

    Supports string-keyed lookup via the convenience overload apply(key: String) which constructs an Id.Key relative to this node's own id. The - operator returns a copy of the map with the given key removed.

  3. final case class INone[+I <: Id](id: I, parent: Container[_]) extends INode[I] with NodeError with Product with Serializable

    A missing key — the node was looked up but did not exist in the parent container.

    A missing key — the node was looked up but did not exist in the parent container.

    Also a NodeError; decoding fails when this node is encountered.

    id

    path at which the key was expected

    parent

    the container that was queried

  4. final case class INull[+I <: Id](id: I, tag: Option[String], location: Location) extends ISome[I] with NodeError with Product with Serializable

    An explicit null value in the source.

    An explicit null value in the source.

    Also a NodeError; decoders that do not explicitly handle null will fail.

    id

    path of this node

    tag

    optional YAML tag

    location

    source location

  5. final case class IScalar[+I <: Id](id: I, tag: Option[String], value: String, location: Location) extends IValue[I] with Product with Serializable

    A leaf node holding a single string value.

    A leaf node holding a single string value.

    Scalars are always represented as strings; type conversion is the decoder's responsibility.

    id

    path of this node

    tag

    optional YAML tag

    value

    raw string representation

    location

    source location

  6. trait ISeq[+I <: Id] extends IContainer[I, Index]

    A sequence node whose children are addressed by Id.Index.

    A sequence node whose children are addressed by Id.Index.

    Supports integer-indexed lookup via the convenience overload apply(index: Int) which constructs an Id.Index relative to this node's own id.

  7. sealed trait ISome[+I <: Id] extends INode[I]

    A node that is physically present in the source (has a tag and a location).

  8. sealed trait IValue[+I <: Id] extends ISome[I]

    A present, non-error node — either a scalar or a container.

  9. type Map = IMap[Id]

    Type alias for IMap with an unspecified path type.

  10. type None = INone[Id]

    Type alias for INone with an unspecified path type.

  11. type Null = INull[Id]

    Type alias for INull with an unspecified path type.

  12. type Scalar = IScalar[Id]

    Type alias for IScalar with an unspecified path type.

  13. type Seq = ISeq[Id]

    Type alias for ISeq with an unspecified path type.

  14. type Some = ISome[Id]

    Type alias for ISome with an unspecified path type.

  15. type Value = IValue[Id]

    Type alias for IValue with an unspecified path type.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. object None
  20. object Null
  21. object Scalar

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped