Class

argonaut

ParseWrap

Related Doc: package argonaut

Permalink

class ParseWrap[A] extends AnyRef

Utility for building the argonaut API over various types. This is used to implement StringWrap, and it is expected that it would be used by integrations with other toolkits to provide an argonaut API on their types.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ParseWrap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ParseWrap(value: A, parser: Parse[A])

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def decode[X](implicit arg0: DecodeJson[X]): Either[Either[String, (String, CursorHistory)], X]

    Permalink

    Parses the string value and decodes it returning a list of all the failures stemming from either the JSON parsing or the decoding.

  7. def decodeEither[X](implicit arg0: DecodeJson[X]): Either[String, X]

    Permalink

    Parses and decodes the string value to a possible JSON value.

  8. def decodeOption[X](implicit arg0: DecodeJson[X]): Option[X]

    Permalink

    Parses and decodes the string value to a possible JSON value.

  9. def decodeOr[Y, X](success: (X) ⇒ Y, default: ⇒ Y)(implicit arg0: DecodeJson[X]): Y

    Permalink

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    success

    Run this function if the parse produces a success.

    default

    Return this value of the parse or decode fails.

  10. def decodeWith[Y, X](success: (X) ⇒ Y, parsefailure: (String) ⇒ Y, decodefailure: (String, CursorHistory) ⇒ Y)(implicit arg0: DecodeJson[X]): Y

    Permalink

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    success

    Run this function if the parse produces a success.

    parsefailure

    Run this function if the parse produces a failure.

    decodefailure

    Run this function if the decode produces a failure.

  11. def decodeWithEither[Y, X](success: (X) ⇒ Y, failure: (Either[String, (String, CursorHistory)]) ⇒ Y)(implicit arg0: DecodeJson[X]): Y

    Permalink

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    success

    Run this function if the parse produces a success.

    failure

    Run this function if the parse produces a failure.

  12. def decodeWithMessage[Y, X](success: (X) ⇒ Y, failure: (String) ⇒ Y)(implicit arg0: DecodeJson[X]): Y

    Permalink

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    Parses the string value into a JSON value and if it succeeds, decodes to a data-type.

    success

    Run this function if the parse produces a success.

    failure

    Run this function if the parse produces a failure.

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def parse: Either[String, Json]

    Permalink

    Parses the string value and either returns a list of the failures from parsing the string or an instance of the Json type if parsing succeeds.

  23. def parseOption: Option[Json]

    Permalink

    Parses the string value to a possible JSON value.

  24. def parseOr[X](success: (Json) ⇒ X, failure: ⇒ X): X

    Permalink

    Parses the string value and executes one of the given functions, depending on the parse outcome.

    Parses the string value and executes one of the given functions, depending on the parse outcome. Any error message is ignored.

    success

    Run this function if the parse succeeds.

    failure

    Run this function if the parse produces a failure.

  25. def parseWith[X](success: (Json) ⇒ X, failure: (String) ⇒ X): X

    Permalink

    Parses the string value and executes one of the given functions, depending on the parse outcome.

    Parses the string value and executes one of the given functions, depending on the parse outcome.

    success

    Run this function if the parse succeeds.

    failure

    Run this function if the parse produces a failure.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped