Class

io.parsek.syntax

PValueOps

Related Doc: package syntax

Permalink

final class PValueOps extends AnyVal

Self Type
PValueOps
Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PValueOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PValueOps(value: PValue)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def as[A](implicit arg0: Decoder[A]): PResult[A]

    Permalink

    Safe convert value to type A

  5. def as[A](key: Symbol)(implicit arg0: Decoder[A]): PResult[A]

    Permalink

    Get inner value by key and safe decode it to type A

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def asUnsafe[A](implicit arg0: Decoder[A]): A

    Permalink

    Unsafe convert value to type A

  8. def asUnsafe[A](key: Symbol)(implicit arg0: Decoder[A]): A

    Permalink

    Get inner value by key and unsafe decode it to type A

  9. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  10. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  11. def map[A, B](f: (A) ⇒ B)(implicit arg0: Decoder[A], arg1: Encoder[B]): PResult[PValue]

    Permalink

    Map value with function f

  12. def mapValues[A, B](f: (A) ⇒ B)(implicit arg0: Decoder[A], arg1: Encoder[B]): PResult[PValue]

    Permalink

    Map value with function f.

    Map value with function f. If underlying type is PArray or PStruct function f will call recursively.

  13. def mapWithKey[A, B](f: (Symbol, A) ⇒ (Symbol, B))(implicit arg0: Decoder[A], arg1: Encoder[B]): PResult[PValue]

    Permalink

    Map value with function f taken (Symbol, A) as arguments.

    Map value with function f taken (Symbol, A) as arguments. Applying only to PMap values.

  14. def opt: Option[PValue]

    Permalink

    Convert PValue to Option[PValue].

    Convert PValue to Option[PValue]. PValue.Null will convert to None

  15. def to[A](implicit arg0: Decoder[A]): A

    Permalink

    Alias to unsafe method

  16. def toString(): String

    Permalink
    Definition Classes
    Any
  17. def transform[A, B](f: (A) ⇒ PResult[B])(implicit arg0: Decoder[A], arg1: Encoder[B]): PResult[PValue]

    Permalink

    Map value with possible failed result.

  18. def typed: PValueTyped

    Permalink
  19. val value: PValue

    Permalink
  20. def withType(t: PType): PValueTyped

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped