Class/Object

org.scalatest.matchers

MatcherFactory1

Related Docs: object MatcherFactory1 | package matchers

Permalink

abstract class MatcherFactory1[-SC, TC1[_]] extends AnyRef

A matcher factory that can produce a matcher given one typeclass instance.

In the type parameters for this class, "SC" means superclass; "TC" (in TC1, TC2, etc.) means typeclass. This class's matcher factory method will produce a Matcher[T], where T is a subtype of (or the same type as) SC, given a typeclass instance for each TCn implicit parameter (for example, a TC1[T], TC2[T], etc.).

Self Type
MatcherFactory1[SC, TC1]
Source
MatcherFactory1.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MatcherFactory1
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatcherFactory1()

    Permalink

Type Members

  1. final class AndBeWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  2. final class AndContainWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  3. final class AndEndWithWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  4. final class AndFullyMatchWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  5. final class AndHaveWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  6. final class AndIncludeWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  7. final class AndNotWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  8. final class AndStartWithWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  9. final class OrBeWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  10. final class OrContainWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  11. final class OrEndWithWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  12. final class OrFullyMatchWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  13. final class OrHaveWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  14. final class OrIncludeWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  15. final class OrNotWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

  16. final class OrStartWithWord extends AnyRef

    Permalink

    This class is part of the ScalaTest matchers DSL.

    This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

Abstract Value Members

  1. abstract def matcher[T <: SC](implicit arg0: TC1[T]): Matcher[T]

    Permalink

    Factory method that will produce a Matcher[T], where T is a subtype of (or the same type as) SC, given a typeclass instance for each TCn implicit parameter (for example, a TC1[T], TC2[T], etc.).

    Factory method that will produce a Matcher[T], where T is a subtype of (or the same type as) SC, given a typeclass instance for each TCn implicit parameter (for example, a TC1[T], TC2[T], etc.).

Concrete 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 and(notExist: ResultOfNotExist): MatcherFactory2[SC, TC1, Existence]

    Permalink

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and not (exist)
                    ^
    

  5. def and(existWord: ExistWord): MatcherFactory2[SC, TC1, Existence]

    Permalink

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and exist
                    ^
    

  6. def and(notWord: NotWord): AndNotWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and not contain value (3)
                    ^
    

  7. def and(endWithWord: EndWithWord): AndEndWithWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and endWith regex (decimalRegex)
                    ^
    

  8. def and(startWithWord: StartWithWord): AndStartWithWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and startWith regex ("1.7")
                    ^
    

  9. def and(includeWord: IncludeWord): AndIncludeWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and include regex ("wor.d")
                    ^
    

  10. def and(fullyMatchWord: FullyMatchWord): AndFullyMatchWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and fullyMatch regex (decimalRegex)
                    ^
    

  11. def and(beWord: BeWord): AndBeWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and be a ('file)
                    ^
    

  12. def and(containWord: ContainWord): AndContainWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and contain key ("one")
                    ^
    

  13. def and(haveWord: HaveWord): AndHaveWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory and have size (3 - 1)
                        ^
    

  14. def and[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_], TC9[_]](rightMatcherFactory: MatcherFactory8[U, TC2, TC3, TC4, TC5, TC6, TC7, TC8, TC9]): MatcherFactory9[U, TC1, TC2, TC3, TC4, TC5, TC6, TC7, TC8, TC9]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  15. def and[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_]](rightMatcherFactory: MatcherFactory7[U, TC2, TC3, TC4, TC5, TC6, TC7, TC8]): MatcherFactory8[U, TC1, TC2, TC3, TC4, TC5, TC6, TC7, TC8]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  16. def and[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_]](rightMatcherFactory: MatcherFactory6[U, TC2, TC3, TC4, TC5, TC6, TC7]): MatcherFactory7[U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  17. def and[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_]](rightMatcherFactory: MatcherFactory5[U, TC2, TC3, TC4, TC5, TC6]): MatcherFactory6[U, TC1, TC2, TC3, TC4, TC5, TC6]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  18. def and[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_]](rightMatcherFactory: MatcherFactory4[U, TC2, TC3, TC4, TC5]): MatcherFactory5[U, TC1, TC2, TC3, TC4, TC5]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  19. def and[U <: SC, TC2[_], TC3[_], TC4[_]](rightMatcherFactory: MatcherFactory3[U, TC2, TC3, TC4]): MatcherFactory4[U, TC1, TC2, TC3, TC4]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  20. def and[U <: SC, TC2[_], TC3[_]](rightMatcherFactory: MatcherFactory2[U, TC2, TC3]): MatcherFactory3[U, TC1, TC2, TC3]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  21. def and[U <: SC, TC2[_]](rightMatcherFactory: MatcherFactory1[U, TC2]): MatcherFactory2[U, TC1, TC2]

    Permalink

    Ands this matcher factory with the passed matcher factory.

  22. def and[U <: SC](rightMatcherFactory: MatcherFactory1[U, TC1]): MatcherFactory1[U, TC1]

    Permalink

    Ands this matcher factory with the passed MatcherFactory1 that has the same final typeclass as this one.

    Ands this matcher factory with the passed MatcherFactory1 that has the same final typeclass as this one.

  23. def and[U <: SC](rightMatcher: Matcher[U]): MatcherFactory1[U, TC1]

    Permalink

    Ands this matcher factory with the passed matcher.

  24. def apply[T <: SC](explicit: TC1[T]): Matcher[T]

    Permalink

    Enables the Explicitly DSL to be used directly on a MatcherFactory1, without invoking the matcher factory method.

    Enables the Explicitly DSL to be used directly on a MatcherFactory1, without invoking the matcher factory method.

    Here's an example of the kind of syntax this apply method can enable:

    result should equal (1) (decided by defaultEquality)
    

  25. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  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 or(notExist: ResultOfNotExist): MatcherFactory2[SC, TC1, Existence]

    Permalink

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory or not (exist)
                    ^
    

  37. def or(existWord: ExistWord): MatcherFactory2[SC, TC1, Existence]

    Permalink

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory or exist
                    ^
    

  38. def or(notWord: NotWord): OrNotWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory or not contain value (3)
                    ^
    

  39. def or(endWithWord: EndWithWord): OrEndWithWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory or endWith regex ("7b")
                    ^
    

  40. def or(startWithWord: StartWithWord): OrStartWithWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory or startWith regex ("1.7")
                    ^
    

  41. def or(includeWord: IncludeWord): OrIncludeWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory or include regex ("1.7")
                    ^
    

  42. def or(fullyMatchWord: FullyMatchWord): OrFullyMatchWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory or fullyMatch regex (decimal)
                    ^
    

  43. def or(beWord: BeWord): OrBeWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory or be a ('directory)
                    ^
    

  44. def or(containWord: ContainWord): OrContainWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    (aMatcherFactory or contain value (1))
                     ^
    

  45. def or(haveWord: HaveWord): OrHaveWord

    Permalink

    This method enables the following syntax given a MatcherFactory1:

    This method enables the following syntax given a MatcherFactory1:

    aMatcherFactory or have size (3 - 1)
                    ^
    

  46. def or[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_], TC9[_]](rightMatcherFactory: MatcherFactory8[U, TC2, TC3, TC4, TC5, TC6, TC7, TC8, TC9]): MatcherFactory9[U, TC1, TC2, TC3, TC4, TC5, TC6, TC7, TC8, TC9]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  47. def or[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_]](rightMatcherFactory: MatcherFactory7[U, TC2, TC3, TC4, TC5, TC6, TC7, TC8]): MatcherFactory8[U, TC1, TC2, TC3, TC4, TC5, TC6, TC7, TC8]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  48. def or[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_]](rightMatcherFactory: MatcherFactory6[U, TC2, TC3, TC4, TC5, TC6, TC7]): MatcherFactory7[U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  49. def or[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_], TC6[_]](rightMatcherFactory: MatcherFactory5[U, TC2, TC3, TC4, TC5, TC6]): MatcherFactory6[U, TC1, TC2, TC3, TC4, TC5, TC6]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  50. def or[U <: SC, TC2[_], TC3[_], TC4[_], TC5[_]](rightMatcherFactory: MatcherFactory4[U, TC2, TC3, TC4, TC5]): MatcherFactory5[U, TC1, TC2, TC3, TC4, TC5]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  51. def or[U <: SC, TC2[_], TC3[_], TC4[_]](rightMatcherFactory: MatcherFactory3[U, TC2, TC3, TC4]): MatcherFactory4[U, TC1, TC2, TC3, TC4]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  52. def or[U <: SC, TC2[_], TC3[_]](rightMatcherFactory: MatcherFactory2[U, TC2, TC3]): MatcherFactory3[U, TC1, TC2, TC3]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  53. def or[U <: SC, TC2[_]](rightMatcherFactory: MatcherFactory1[U, TC2]): MatcherFactory2[U, TC1, TC2]

    Permalink

    Ors this matcher factory with the passed matcher factory.

  54. def or[U <: SC](rightMatcherFactory: MatcherFactory1[U, TC1]): MatcherFactory1[U, TC1]

    Permalink

    Ors this matcher factory with the passed MatcherFactory1 that has the same final typeclass as this one.

    Ors this matcher factory with the passed MatcherFactory1 that has the same final typeclass as this one.

  55. def or[U <: SC](rightMatcher: Matcher[U]): MatcherFactory1[U, TC1]

    Permalink

    Ors this matcher factory with the passed matcher.

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped