Package

fabric

rw

Permalink

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. All

Type Members

  1. implicit class Asable extends AnyRef

    Permalink
  2. trait ClassR[T] extends Reader[T]

    Permalink
  3. trait ClassRW[T] extends ReaderWriter[T] with ClassR[T] with ClassW[T]

    Permalink

    ClassRW provides convenience functionality to simplify class mapping with ReaderWriter

  4. trait ClassW[T] extends Writer[T]

    Permalink
  5. trait CompileRW extends AnyRef

    Permalink
  6. implicit class Convertible[T] extends AnyRef

    Permalink
  7. trait Reader[T] extends AnyRef

    Permalink

    Reader provides a simple T => Value wrapper functionality

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

    Permalink

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

  9. trait Writer[T] extends AnyRef

    Permalink

    Writable provides a simple Value => T wrapper functionality

Value Members

  1. object RWMacros

    Permalink
  2. object Reader

    Permalink
  3. object ReaderWriter

    Permalink
  4. object Writer

    Permalink
  5. macro def ccR[T]: Reader[T]

    Permalink
    Definition Classes
    CompileRW
  6. macro def ccRW[T]: ReaderWriter[T]

    Permalink
    Definition Classes
    CompileRW
  7. macro def ccW[T]: Writer[T]

    Permalink
    Definition Classes
    CompileRW
  8. def defaultGetType[P](p: P): String

    Permalink

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

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

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

Inherited from CompileRW

Inherited from AnyRef

Inherited from Any

Ungrouped