io.dylemma.spac

Transformer

trait Transformer[-In, +B] extends (Any) ⇒ Transformer[In, B]

A transformation function for a stream, i.e. Stream => Stream. Transformers operate by wrapping a downstream handler with a new handler that manages the transformation.

Transformers themselves are immutable; they act as handler factories (though not specifically the HandlerFactory trait, as a transformer requires a downstream handler in order to create its own handler.

Self Type
Transformer[In, B]
Source
Transformer.scala
Linear Supertypes
(Any) ⇒ Transformer[In, B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Transformer
  2. Function1
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def makeHandler[Out](next: Handler[B, Out]): Handler[In, Out]

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to ArrowAssoc[Transformer[In, B]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def >>[Out](end: Parser[B, Out]): Parser[In, Out]

  9. def >>[C](nextT: Transformer[B, C]): Transformer[In, C]

  10. def andThen[Out](end: Parser[B, Out]): Parser[In, Out]

  11. def andThen[C](nextT: Transformer[B, C]): Transformer[In, C]

  12. def andThen[A](g: (Transformer[In, B]) ⇒ A): (Any) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  13. def apply(v1: Any): Transformer[In, B]

    Transformers count as functions that return themselves, so they can be used easily with Splitter's throughT method.

    Transformers count as functions that return themselves, so they can be used easily with Splitter's throughT method.

    v1

    ignored

    returns

    this transformer

    Definition Classes
    Transformer → Function1
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def collect[C](pf: PartialFunction[B, C]): Transformer[In, C]

  17. def compose[A](g: (A) ⇒ Any): (A) ⇒ Transformer[In, B]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  18. def drop(n: Int): Transformer[In, B]

  19. def dropWhile(p: (B) ⇒ Boolean): Transformer[In, B]

  20. def ensuring(cond: (Transformer[In, B]) ⇒ Boolean, msg: ⇒ Any): Transformer[In, B]

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to Ensuring[Transformer[In, B]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (Transformer[In, B]) ⇒ Boolean): Transformer[In, B]

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

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to Ensuring[Transformer[In, B]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): Transformer[In, B]

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to Ensuring[Transformer[In, B]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  26. def filter(p: (B) ⇒ Boolean): Transformer[In, B]

  27. def finalize(): Unit

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

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  29. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  32. def map[C](f: (B) ⇒ C): Transformer[In, C]

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. def parallel[In2 <: In, B2 >: B](other: Transformer[In2, B2]): Transformer[In2, B2]

  37. def parallelEither[In2 <: In, C](other: Transformer[In2, C]): Transformer[In2, Either[B, C]]

  38. def parseAsFold[Out](init: Out)(f: (Out, B) ⇒ Out): Parser[In, Out]

  39. def parseFirst: Parser[In, B]

  40. def parseFirstOption: Parser[In, Option[B]]

  41. def parseForeach(f: (B) ⇒ Any): Parser[In, Unit]

  42. def parseToList: Parser[In, List[B]]

  43. def parseWith[Out](consumer: Parser[B, Out], setDebugName: Option[String] = None): Parser[In, Out]

  44. def scan[S](init: S)(f: (S, B) ⇒ S): Transformer[In, S]

  45. def sink: Parser[In, Unit]

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

    Definition Classes
    AnyRef
  47. def take(n: Int): Transformer[In, B]

  48. def takeWhile(p: (B) ⇒ Boolean): Transformer[In, B]

  49. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  50. def transform[R](src: R)(implicit cl: ConsumableLike[R, In]): Iterator[B] with Closeable

    Transform a src resource with this transformer, yielding an iterator which will lazily consume the resource stream.

    Transform a src resource with this transformer, yielding an iterator which will lazily consume the resource stream.

    R

    The resource type

    src

    A resource which can be treated as a stream of In events

    cl

    Evidence that the src can be treated as a stream of In events

    returns

    An iterator resulting from passing the src stream through this transformer.

  51. def unwrapSafe[T](implicit ev: <:<[B, Try[T]]): Transformer[In, T]

  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def withFilter(p: (B) ⇒ Boolean): Transformer[In, B]

  56. def withSideEffect(effect: (B) ⇒ Any): Transformer[In, B]

  57. def wrapSafe: Transformer[In, Try[B]]

  58. def [B](y: B): (Transformer[In, B], B)

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to ArrowAssoc[Transformer[In, B]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (transformer: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (transformer: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Transformer[In, B]

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to ArrowAssoc[Transformer[In, B]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (transformer: ArrowAssoc[Transformer[In, B]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Transformer[In, B]

    Implicit information
    This member is added by an implicit conversion from Transformer[In, B] to Ensuring[Transformer[In, B]] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (transformer: Ensuring[Transformer[In, B]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from (Any) ⇒ Transformer[In, B]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Transformer[In, B] to StringAdd

Inherited by implicit conversion any2stringfmt from Transformer[In, B] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Transformer[In, B] to ArrowAssoc[Transformer[In, B]]

Inherited by implicit conversion any2Ensuring from Transformer[In, B] to Ensuring[Transformer[In, B]]

Ungrouped