Class

io.dylemma.spac.xml.SingleElementContextMatcher

Mapped

Related Doc: package SingleElementContextMatcher

Permalink

case class Mapped[A, B](inner: SingleElementContextMatcher[A], op: String = "map")(f: (A) ⇒ Option[B]) extends SingleElementContextMatcher[B] with Product with Serializable

Similar to ContextMatcher.Mapped, but specialized for SingleElementContextMatcher

Source
SingleElementContextMatcher.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, SingleElementContextMatcher[B], ContextMatcher[StartElement, B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mapped
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SingleElementContextMatcher
  7. ContextMatcher
  8. AnyRef
  9. 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 Mapped(inner: SingleElementContextMatcher[A], op: String = "map")(f: (A) ⇒ Option[B])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &[A1 >: B, B, R](that: SingleElementContextMatcher[B])(implicit reduce: Aux[A1, B, R]): SingleElementContextMatcher[R]

    Permalink

    Operator version of and

    Operator version of and

    Definition Classes
    SingleElementContextMatcher
  4. def +(other: String): String

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  7. def \[A1 >: B, B, R](next: ContextMatcher[StartElement, B])(implicit reduce: Aux[A1, B, R]): ContextMatcher[StartElement, R]

    Permalink
    Definition Classes
    ContextMatcher
  8. def and[A1 >: B, B, R](that: SingleElementContextMatcher[B])(implicit reduce: Aux[A1, B, R]): SingleElementContextMatcher[R]

    Permalink

    Creates a new single-element matcher which combines the results of both this matcher and that matcher.

    Creates a new single-element matcher which combines the results of both this matcher and that matcher. Both this and that will operate on the first element of the stack (as opposed to Chained matchers).

    A1

    To satisfy covariance on A

    B

    The other matcher's result type

    R

    The combined result type

    that

    The matcher to combine

    reduce

    The TypeReduce rule for combining the two match results

    returns

    A new matcher which combines the results of this and that

    Definition Classes
    SingleElementContextMatcher
  9. def apply(stack: IndexedSeq[StartElement], offset: Int, avail: Int): Option[B]

    Permalink
    Definition Classes
    ContextMatcher
  10. def applyChained[B](stack: IndexedSeq[StartElement], offset: Int, avail: Int, next: ContextMatcher[StartElement, B]): Option[(B, B)]

    Permalink
    Definition Classes
    SingleElementContextMatcher → ContextMatcher
  11. def applyElem(elem: StartElement): Option[B]

    Permalink

    The matching operation for single-element matchers.

    The matching operation for single-element matchers.

    elem

    The first element in the XML tag stack

    returns

    Some(context) for a successful match, None otherwise

    Definition Classes
    MappedSingleElementContextMatcher
  12. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def ensuring(cond: (Mapped[A, B]) ⇒ Boolean, msg: ⇒ Any): Mapped[A, B]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def filter(p: (B) ⇒ Boolean): SingleElementContextMatcher[B]

    Permalink
    Definition Classes
    MappedSingleElementContextMatcher → ContextMatcher
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def flatMap[B2](g: (B) ⇒ Option[B2]): SingleElementContextMatcher[B2]

    Permalink
    Definition Classes
    MappedSingleElementContextMatcher → ContextMatcher
  22. def formatted(fmtstr: String): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. val inner: SingleElementContextMatcher[A]

    Permalink
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def map[B2](g: (B) ⇒ B2): SingleElementContextMatcher[B2]

    Permalink
    Definition Classes
    MappedSingleElementContextMatcher → ContextMatcher
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. val op: String

    Permalink
  31. def or[A2 >: B](that: SingleElementContextMatcher[A2]): SingleElementContextMatcher[A2]

    Permalink

    Specialization of the default or method, specifically for SingleElementContextMatchers

    Specialization of the default or method, specifically for SingleElementContextMatchers

    Definition Classes
    SingleElementContextMatcher
  32. def or[A2 >: B](that: ContextMatcher[StartElement, A2]): ContextMatcher[StartElement, A2]

    Permalink
    Definition Classes
    ContextMatcher
  33. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Mapped → AnyRef → Any
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def |[A2 >: B](that: SingleElementContextMatcher[A2]): SingleElementContextMatcher[A2]

    Permalink

    Operator version of or, specialized for SingleElementContextMatchers

    Operator version of or, specialized for SingleElementContextMatchers

    Definition Classes
    SingleElementContextMatcher
  39. def |[A2 >: B](that: ContextMatcher[StartElement, A2]): ContextMatcher[StartElement, A2]

    Permalink
    Definition Classes
    ContextMatcher
  40. def [B](y: B): (Mapped[A, B], B)

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SingleElementContextMatcher[B]

Inherited from ContextMatcher[StartElement, B]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Mapped[A, B] to any2stringadd[Mapped[A, B]]

Inherited by implicit conversion StringFormat from Mapped[A, B] to StringFormat[Mapped[A, B]]

Inherited by implicit conversion Ensuring from Mapped[A, B] to Ensuring[Mapped[A, B]]

Inherited by implicit conversion ArrowAssoc from Mapped[A, B] to ArrowAssoc[Mapped[A, B]]

Ungrouped