Object/Trait

io.dylemma.spac.xml

SingleElementContextMatcher

Related Docs: trait SingleElementContextMatcher | package xml

Permalink

object SingleElementContextMatcher

Source
SingleElementContextMatcher.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SingleElementContextMatcher
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class And[A, B, R](left: SingleElementContextMatcher[A], right: SingleElementContextMatcher[B])(implicit reduce: Aux[A, B, R]) extends SingleElementContextMatcher[R] with Product with Serializable

    Permalink

    Combines two SingleElementContextMatchers such that the resulting matcher will succeed if both the right and left matchers succeed, and returns the results of both matchers (as a tuple, but reduced via the TypeReduce rules)

    Combines two SingleElementContextMatchers such that the resulting matcher will succeed if both the right and left matchers succeed, and returns the results of both matchers (as a tuple, but reduced via the TypeReduce rules)

    A

    The left matcher's context type

    B

    The right matcher's context type

    R

    The type reduction of (A, B)

    left

    The left matcher, with a context type of A

    right

    The right matcher, with a context type of B

    reduce

    The TypeReduce rule

  2. class Default[A] extends SingleElementContextMatcher[A]

    Permalink

    SingleElementContextMatcher that delegates to the given function f to perform its match.

    SingleElementContextMatcher that delegates to the given function f to perform its match.

    A

    The matched context type

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

    Permalink

    Similar to ContextMatcher.Mapped, but specialized for SingleElementContextMatcher

  4. case class Or[A](left: SingleElementContextMatcher[A], right: SingleElementContextMatcher[A]) extends SingleElementContextMatcher[A] with Product with Serializable

    Permalink

    Similar to ContextMatcher.Or, but specialized for SingleElementContextMatcher

  5. class Predicate extends SingleElementContextMatcher[Unit]

    Permalink

    SingleElementContextMatcher that successfully matches (with no result) if the given predicate function returns true for the matched element.

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[A](name: String, f: (StartElement) ⇒ Option[A]): SingleElementContextMatcher[A]

    Permalink

    Create a new single-element matcher which calls the given matcher function f on the first element of the stack.

    Create a new single-element matcher which calls the given matcher function f on the first element of the stack. If f returns None, the match fails, otherwise, the match succeeds.

    A

    The match result type

    name

    This value will be used as the matcher's toString

    f

    The matcher function

    returns

    A new single-element matcher which applies f to the stack head

  5. def apply[A](f: (StartElement) ⇒ Option[A]): SingleElementContextMatcher[A]

    Permalink

    Create a new single-element matcher which calls the given matcher function f on the first element of the stack.

    Create a new single-element matcher which calls the given matcher function f on the first element of the stack. If f returns None, the match fails, otherwise, the match succeeds.

    A

    The match result type

    f

    The matcher function

    returns

    A new single-element matcher which applies f to the stack head

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def predicate(name: String, f: (StartElement) ⇒ Boolean): SingleElementContextMatcher[Unit]

    Permalink

    Create a new single-element matcher which calls the given predicate function f on the first element of the stack.

    Create a new single-element matcher which calls the given predicate function f on the first element of the stack. If f returns true, the match succeeds. Otherwise, the match fails.

    name

    This value will be used as the matcher's toString

    f

    The predicate function

    returns

    A new single-element matcher which uses f to determine a match

  18. def predicate(f: (StartElement) ⇒ Boolean): SingleElementContextMatcher[Unit]

    Permalink

    Create a new single-element matcher which calls the given predicate function f on the first element of the stack.

    Create a new single-element matcher which calls the given predicate function f on the first element of the stack. If f returns true, the match succeeds. Otherwise, the match fails.

    f

    The predicate function

    returns

    A new single-element matcher which uses f to determine a match

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped