Packages

package rw

Linear Supertypes
CompileRW, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. rw
  2. CompileRW
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class Asable extends AnyRef
  2. trait ClassR[T] extends Reader[T]
  3. trait ClassRW[T] extends ReaderWriter[T] with ClassR[T] with ClassW[T]

    ClassRW provides convenience functionality to simplify class mapping with ReaderWriter

  4. trait ClassW[T] extends Writer[T]
  5. trait CompileRW extends AnyRef
  6. implicit class Convertible[T] extends AnyRef
  7. trait Reader[T] extends AnyRef

    Reader provides a simple T => Value wrapper functionality

  8. trait ReaderWriter[T] extends Reader[T] with Writer[T]

    ReaderWriter provides a single class representation of a Reader and Writer for the same type

  9. trait Writer[T] extends AnyRef

    Writable provides a simple Value => T wrapper functionality

Value Members

  1. macro def ccR[T]: Reader[T]
    Definition Classes
    CompileRW
  2. macro def ccRW[T]: ReaderWriter[T]
    Definition Classes
    CompileRW
  3. macro def ccW[T]: Writer[T]
    Definition Classes
    CompileRW
  4. def defaultGetType[P](p: P): String

    Used by polyRW by default to getType using the class name with the first character lowercase

  5. def enumRW[T](fieldName: String, mapping: (String, T)*): ReaderWriter[T]

    Convenience functionality for working with enumerations

    Convenience functionality for working with enumerations

    fieldName

    the field name to refer to in the Value

    mapping

    a mapping of key/value pairs representing the String in fieldName to the representative value

  6. def polyRW[P](fieldName: String = "type", getType: (P) => String = defaultGetType)(matcher: PartialFunction[String, ReaderWriter[_ <: P]]): ReaderWriter[P]

    Convenience functionality for working with polymorphic types

    Convenience functionality for working with polymorphic types

    fieldName

    the field name stored in the value (defaults to "type")

    getType

    a function to determine the field value from an instance (defaults to the class name with the first character lowercase - defaultGetType)

    matcher

    a matcher for field values to get the representative ReaderWriter for that type

  7. def staticRW[T](value: T): ReaderWriter[T]

    Convenience functionality to provide a static / singleton value that represents that type

    Convenience functionality to provide a static / singleton value that represents that type

    value

    the singleton value to use

  8. object RWMacros
  9. object Reader
  10. object ReaderWriter
  11. object Writer

Inherited from CompileRW

Inherited from AnyRef

Inherited from Any

Ungrouped