Class

emblem.traversors.sync

EmblemToJsonTranslator

Related Doc: package sync

Permalink

class EmblemToJsonTranslator extends Traversor

translates emblematic types into json4s AST.

Source
EmblemToJsonTranslator.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EmblemToJsonTranslator
  2. Traversor
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EmblemToJsonTranslator()

    Permalink

Type Members

  1. trait CustomTraversor[A] extends AnyRef

    Permalink

    a custom traversor over type A

    a custom traversor over type A

    Definition Classes
    Traversor
  2. type CustomTraversorPool = TypeKeyMap[Any, CustomTraversor]

    Permalink

    a TypeKeyMap for custom traversors

    Definition Classes
    Traversor
  3. type PropInput[A <: imports.HasEmblem, B] = (imports.EmblemProp[A, B], TraverseInput[B])

    Permalink

    an input for traversing an EmblemProp

    an input for traversing an EmblemProp

    Attributes
    protected
    Definition Classes
    Traversor
  4. type PropResult[A <: imports.HasEmblem, B] = (imports.EmblemProp[A, B], TraverseResult[B])

    Permalink

    an output for traversing an EmblemProp

    an output for traversing an EmblemProp

    Attributes
    protected
    Definition Classes
    Traversor
  5. type TraverseInput[A] = A

    Permalink

    the input to a traversal step over type A

    the input to a traversal step over type A

    Definition Classes
    EmblemToJsonTranslatorTraversor
  6. type TraverseResult[A] = JValue

    Permalink

    the output to a traversal step over type A

    the output to a traversal step over type A

    Definition Classes
    EmblemToJsonTranslatorTraversor

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to any2stringadd[EmblemToJsonTranslator] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EmblemToJsonTranslator, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to ArrowAssoc[EmblemToJsonTranslator] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. object CustomTraversorPool

    Permalink
    Definition Classes
    Traversor
  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val customTraversors: CustomTraversorPool

    Permalink

    the custom traversors to use in the recursive traversal

    the custom traversors to use in the recursive traversal

    Attributes
    protected
    Definition Classes
    Traversor
  10. val emblemPool: imports.EmblemPool

    Permalink

    the emblems to use in the recursive traversal

    the emblems to use in the recursive traversal

    Attributes
    protected
    Definition Classes
    Traversor
  11. def ensuring(cond: (EmblemToJsonTranslator) ⇒ Boolean, msg: ⇒ Any): EmblemToJsonTranslator

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to Ensuring[EmblemToJsonTranslator] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (EmblemToJsonTranslator) ⇒ Boolean): EmblemToJsonTranslator

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to Ensuring[EmblemToJsonTranslator] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): EmblemToJsonTranslator

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to Ensuring[EmblemToJsonTranslator] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): EmblemToJsonTranslator

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to Ensuring[EmblemToJsonTranslator] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. val extractorPool: imports.ExtractorPool

    Permalink

    the extractors to use in the recursive traversal

    the extractors to use in the recursive traversal

    Attributes
    protected
    Definition Classes
    Traversor
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to StringFormat[EmblemToJsonTranslator] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def stageEmblemProps[A <: imports.HasEmblem](emblem: imports.Emblem[A], input: A)(implicit arg0: imports.TypeKey[A]): Iterable[PropInput[A, _]]

    Permalink

    stages the traversal of a emblem's props

    stages the traversal of a emblem's props

    A

    the type of the HasEmblem object to traverse

    emblem

    the emblem being traversed

    input

    the input to the emblem traversal

    returns

    an iteratable of inputs for the emblem props

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  27. def stageExtractor[Domain, Range](extractor: imports.Extractor[Domain, Range], input: TraverseInput[Domain])(implicit arg0: imports.TypeKey[Domain], arg1: imports.TypeKey[Range]): TraverseInput[Range]

    Permalink

    stages the traversal of a extractor

    stages the traversal of a extractor

    Domain

    the domain type for the extractor

    Range

    the range type for the extractor

    extractor

    the extractor being traversed

    input

    the input to the extractor traversal

    returns

    the input for traversing Extractor.inverse

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  28. def stageListElements[A](input: List[A])(implicit arg0: imports.TypeKey[A]): Iterable[A]

    Permalink

    stages the traversal of an list's elements

    stages the traversal of an list's elements

    A

    the type of the list elements

    input

    the input to traversing the list

    returns

    a iterable of inputs for the list's elements. an empty iterable is returned to avoid traversal into the list.

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  29. def stageOptionValue[A](input: TraverseInput[Option[A]])(implicit arg0: imports.TypeKey[A]): Iterable[TraverseInput[A]]

    Permalink

    stages the traversal of an option's value

    stages the traversal of an option's value

    A

    the type of the option's value

    input

    the input to traversing the option

    returns

    an iterable of 0 or 1 inputs of the option's value. an empty iterable is returned to avoid traversal into the option.

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  30. def stageSetElements[A](input: Set[A])(implicit arg0: imports.TypeKey[A]): Iterable[A]

    Permalink

    stages the traversal of an set's elements

    stages the traversal of an set's elements

    A

    the type of the set elements

    input

    the input to traversing the set

    returns

    a iterable of inputs for the set's elements. an empty iterable is returned to avoid traversal into the set.

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  31. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  33. def traverse[A](input: TraverseInput[A])(implicit arg0: imports.TypeKey[A]): TraverseResult[A]

    Permalink

    traverses an object of any supported type.

    traverses an object of any supported type.

    A

    the type of the object to traverse

    Definition Classes
    Traversor
    Exceptions thrown

    emblem.exceptions.CouldNotTraverseException when an unsupported type is encountered during the traversal

  34. def traverseBoolean(input: Boolean): JValue

    Permalink

    traverses a boolean

    traverses a boolean

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  35. def traverseChar(input: Char): JValue

    Permalink

    traverses a char

    traverses a char

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  36. def traverseDateTime(input: DateTime): JValue

    Permalink

    traverses a date-time

    traverses a date-time

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  37. def traverseDouble(input: Double): JValue

    Permalink

    traverses a double

    traverses a double

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  38. def traverseFloat(input: Float): JValue

    Permalink

    traverses a float

    traverses a float

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  39. def traverseInt(input: Int): JValue

    Permalink

    traverses an int

    traverses an int

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  40. def traverseLong(input: Long): JValue

    Permalink

    traverses a long

    traverses a long

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  41. def traverseString(input: String): JValue

    Permalink

    traverses a string

    traverses a string

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  42. def unstageEmblemProps[A <: imports.HasEmblem](emblem: imports.Emblem[A], result: Iterable[PropResult[A, _]])(implicit arg0: imports.TypeKey[A]): JValue

    Permalink

    unstages the traversal of a emblem's props

    unstages the traversal of a emblem's props

    A

    the type of the HasEmblem object to traverse

    emblem

    the emblem being traversed

    returns

    the output for the emblem

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  43. def unstageExtractor[Domain, Range](extractor: imports.Extractor[Domain, Range], rangeResult: TraverseResult[Range])(implicit arg0: imports.TypeKey[Domain], arg1: imports.TypeKey[Range]): TraverseResult[Domain]

    Permalink

    unstages the traversal of a extractor

    unstages the traversal of a extractor

    Domain

    the domain type for the extractor

    Range

    the range type for the extractor

    extractor

    the extractor being traversed

    rangeResult

    the result of traversing Extractor.inverse

    returns

    the result of traversing the extractor

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  44. def unstageListElements[A](input: List[A], result: Iterable[JValue])(implicit arg0: imports.TypeKey[A]): JValue

    Permalink

    unstages the traversal of a list's elements

    unstages the traversal of a list's elements

    A

    the type of the list elements

    input

    the input to traversing the list

    result

    an iterable of results for the list's elements. an empty iterable indicates that traversal into the list has been avoided

    returns

    the result of travering the list

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  45. def unstageOptionValue[A](input: Option[A], result: Iterable[JValue])(implicit arg0: imports.TypeKey[A]): JValue

    Permalink

    unstages the traversal of an option's value

    unstages the traversal of an option's value

    A

    the type of the option's value

    input

    the input to traversing the option

    result

    an iterable of 0 or 1 results of the option's value. an empty iterable indicates that traversal into the option has been avoided.

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  46. def unstageSetElements[A](input: TraverseInput[Set[A]], result: Iterable[JValue])(implicit arg0: imports.TypeKey[A]): JValue

    Permalink

    unstages the traversal of an set's elements

    unstages the traversal of an set's elements

    A

    the type of the set elements

    input

    the input to traversing the set

    result

    an iterable of results for the set's elements. an empty iterable indicates that traversal into the set has been avoided

    returns

    the result of traversing the set

    Attributes
    protected
    Definition Classes
    EmblemToJsonTranslatorTraversor
  47. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. def [B](y: B): (EmblemToJsonTranslator, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from EmblemToJsonTranslator to ArrowAssoc[EmblemToJsonTranslator] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Traversor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from EmblemToJsonTranslator to any2stringadd[EmblemToJsonTranslator]

Inherited by implicit conversion StringFormat from EmblemToJsonTranslator to StringFormat[EmblemToJsonTranslator]

Inherited by implicit conversion Ensuring from EmblemToJsonTranslator to Ensuring[EmblemToJsonTranslator]

Inherited by implicit conversion ArrowAssoc from EmblemToJsonTranslator to ArrowAssoc[EmblemToJsonTranslator]

Ungrouped