Trait/Object

io.dylemma.spac

Transformer

Related Docs: object Transformer | package spac

Permalink

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, 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 StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

Concrete 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 Transformer[In, B] to any2stringadd[Transformer[In, B]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Transformer[In, B], B)

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >>[Out](end: Parser[B, Out]): Parser[In, Out]

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

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

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

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

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

    Permalink

    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
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def cast[B2](implicit ev: <:<[B, B2]): Transformer[In, B2]

    Permalink
  14. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

    Permalink
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def flatten[B2](implicit ev: <:<[B, Iterable[B2]]): Transformer[In, B2]

    Permalink
  28. def formatted(fmtstr: String): String

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

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

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

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

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

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

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

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

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

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

    Permalink
  39. def parseFirst: Parser[In, B]

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

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

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

    Permalink
  43. def parseToMap[K, V](implicit ev: <:<[B, (K, V)]): Parser[In, Map[K, V]]

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

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

    Permalink
  46. def sink: Parser[In, Unit]

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

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

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

    Permalink
  50. def toString(): String

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

    Permalink

    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.

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

    Permalink
  53. def upcast[In2 <: In, B2 >: B]: Transformer[In2, B2]

    Permalink
  54. final def wait(): Unit

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

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

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

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

    Permalink
  59. def wrapSafe: Transformer[In, Try[B]]

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

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

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

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped