Trait/Object

com.rallyhealth.weepickle.v1.core.Types

TaggedFromTo

Related Docs: object TaggedFromTo | package Types

Permalink

trait TaggedFromTo[T] extends FromTo[T] with TaggedTo[T] with TaggedFrom[T] with SimpleTo[T]

Linear Supertypes
TaggedFrom[T], TaggedTo[T], Tagged, SimpleTo[T], SimpleVisitor[Any, T], FromTo[T], To[T], Visitor[Any, T], AutoCloseable, From[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TaggedFromTo
  2. TaggedFrom
  3. TaggedTo
  4. Tagged
  5. SimpleTo
  6. SimpleVisitor
  7. FromTo
  8. To
  9. Visitor
  10. AutoCloseable
  11. From
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def findFrom(v: Any): (String, CaseW[T])

    Permalink
    Definition Classes
    TaggedFrom
  2. abstract def findTo(s: String): To[T]

    Permalink
    Definition Classes
    TaggedTo
  3. abstract def tagName: String

    Permalink

    Name of the object key used to identify the subclass tag.

    Name of the object key used to identify the subclass tag. Tos will fast path if this is the first field of the object. Otherwise, Tos will have to buffer the content and find the tag later. While naming, consider that some implementations (e.g. vpack) may sort object keys, so symbol prefixes work well for ensuring the tag is the first property.

    Definition Classes
    Tagged

Concrete 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 bimap[In](f: (In) ⇒ T, g: (T) ⇒ In): FromTo[In]

    Permalink
    Definition Classes
    FromTo
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink

    Generally, whoever creates the visitor should be responsible for closing it, i.e.

    Responsibility

    Generally, whoever creates the visitor should be responsible for closing it, i.e. not intermediate transform(v: Visitor) methods themselves.

    Self Closing

    Given that common usage is most often single-valued (e.g. "{}"), rather than multi-valued (e.g. "{} {} {}"), Visitors may self-close (e.g. visitor.map{v => Try(v.close); v)} after a single value to prevent resource leaks, but are encouraged to expose both forms (i.e. single/multiple), if supportable.

    Multiple close() calls/Idempotency

    Visitors are encouraged to respond gracefully if close() is called multiple times. If an underlying resource would throw if already closed, this may mean adding a private var isClosed: Boolean field to prevent multiple calls.

    Definition Classes
    Visitor → AutoCloseable
  8. def comap[U](f: (U) ⇒ T): MapFrom[U, T]

    Permalink
    Definition Classes
    From
  9. def comapNulls[U](f: (U) ⇒ T): MapFromNulls[U, T]

    Permalink
    Definition Classes
    From
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def expectedMsg: String

    Permalink
    Definition Classes
    TaggedToSimpleVisitor
  13. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  17. def map[Z](f: (T) ⇒ Z): To[Z]

    Permalink
    Definition Classes
    ToVisitor
  18. def mapNulls[Z](f: (T) ⇒ Z): To[Z]

    Permalink
    Definition Classes
    ToVisitor
  19. def narrow[K]: FromTo[K]

    Permalink
    Definition Classes
    FromToToFrom
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def transform[Out](in: T, out: Visitor[_, Out]): Out

    Permalink
    Definition Classes
    From
  26. def transform0[Out](in: T, out: Visitor[_, Out]): Out

    Permalink
    Definition Classes
    TaggedFromFrom
  27. def visitArray(length: Int): ArrVisitor[Any, T]

    Permalink

    returns

    a Visitor used for visiting the elements of the array

    Definition Classes
    TaggedFromToTaggedToSimpleVisitorVisitor
  28. def visitBinary(bytes: Array[Byte], offset: Int, len: Int): T

    Permalink

    Raw bytes.

    Raw bytes.

    Definition Classes
    SimpleVisitorVisitor
  29. def visitChar(c: Char): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  30. def visitExt(tag: Byte, bytes: Array[Byte], offset: Int, len: Int): T

    Permalink

    MsgPack extension type.

    MsgPack extension type.

    Definition Classes
    SimpleVisitorVisitor
  31. def visitFalse(): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  32. def visitFloat32(d: Float): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  33. def visitFloat64(d: Double): T

    Permalink

    Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g.

    Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).

    Delegates to visitFloat64StringParts if not overriden

    d

    the input number

    Definition Classes
    SimpleVisitorVisitor
  34. def visitFloat64String(s: String): T

    Permalink

    Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

    Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

    s

    the text string being visited

    Definition Classes
    SimpleVisitorVisitor
  35. def visitFloat64StringParts(cs: CharSequence, decIndex: Int, expIndex: Int): T

    Permalink

    Visit the number in its text representation.

    Visit the number in its text representation.

    cs

    unparsed text representation of the number.

    decIndex

    index of the ., relative to the start of the CharSequence, or -1 if omitted

    expIndex

    index of e or E relative to the start of the CharSequence, or -1 if omitted

    Definition Classes
    SimpleVisitorVisitor
  36. def visitInt32(i: Int): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  37. def visitInt64(l: Long): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  38. def visitNull(): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  39. def visitObject(length: Int): ObjVisitor[Any, T]

    Permalink

    returns

    a ObjVisitor used for visiting the keys/values of the object

    Definition Classes
    TaggedFromToTaggedToSimpleVisitorVisitor
  40. def visitString(cs: CharSequence): T

    Permalink

    cs

    the text string being visited

    Definition Classes
    SimpleVisitorVisitor
  41. def visitTimestamp(instant: Instant): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  42. def visitTrue(): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  43. def visitUInt64(ul: Long): T

    Permalink
    Definition Classes
    SimpleVisitorVisitor
  44. final def wait(): Unit

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

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

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

Inherited from TaggedFrom[T]

Inherited from TaggedTo[T]

Inherited from Tagged

Inherited from SimpleTo[T]

Inherited from SimpleVisitor[Any, T]

Inherited from FromTo[T]

Inherited from To[T]

Inherited from Visitor[Any, T]

Inherited from AutoCloseable

Inherited from From[T]

Inherited from AnyRef

Inherited from Any

Ungrouped