Packages

object MatchResult extends Serializable

Companion object for the MatchResult case class.

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any]): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, failureMessageArgs and negatedFailureMessageArgs fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, failureMessageArgs and negatedFailureMessageArgs fields. The rawMidSentenceFailureMessage will return the same string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the same string as rawNegatedFailureMessage. The midSentenceFailureMessageArgs will return the same as failureMessageArgs, and the midSentenceNegatedFailureMessageArgs will return the same as negatedFailureMessageArgs. This is suitable to create MatchResult with lazy error messages that have same mid-sentence and use different arguments for negated messages.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    failureMessageArgs

    arguments for constructing failure message to report if a match fails

    negatedFailureMessageArgs

    arguments for constructing message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  5. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, args: IndexedSeq[Any]): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage and args fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage and args fields. The rawMidSentenceFailureMessage will return the same string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the same string as rawNegatedFailureMessage. All argument fields will use args as arguments. This is suitable to create MatchResult with lazy error messages that have same mid-sentence messages and arguments.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    args

    arguments for error messages construction

    returns

    a MatchResult instance

  6. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, and rawNegativeFailureMessage fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, and rawNegativeFailureMessage fields. The rawMidSentenceFailureMessage will return the same string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the same string as rawNegatedFailureMessage. All argument fields will have Vector.empty values. This is suitable to create MatchResult with eager error messages that have same mid-sentence messages.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  7. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, rawMidSentenceFailureMessage, and rawMidSentenceNegatedFailureMessage fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, rawMidSentenceFailureMessage, and rawMidSentenceNegatedFailureMessage fields. All argument fields will have Vector.empty values. This is suitable to create MatchResult with eager error messages, and its mid-sentence messages need to be different.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    rawMidSentenceFailureMessage

    raw failure message to report if a match fails

    rawMidSentenceNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  8. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any]): MatchResult

    Factory method that constructs a new MatchResult with passed matches, failureMessage, negativeFailureMessage, midSentenceFailureMessage, midSentenceNegatedFailureMessage, failureMessageArgs, and negatedFailureMessageArgs fields.

    Factory method that constructs a new MatchResult with passed matches, failureMessage, negativeFailureMessage, midSentenceFailureMessage, midSentenceNegatedFailureMessage, failureMessageArgs, and negatedFailureMessageArgs fields. failureMessageArgs, and negatedFailureMessageArgs will be used in place of midSentenceFailureMessageArgs and midSentenceNegatedFailureMessageArgs.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    rawMidSentenceFailureMessage

    raw failure message to report if a match fails

    rawMidSentenceNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    failureMessageArgs

    arguments for constructing failure message to report if a match fails

    negatedFailureMessageArgs

    arguments for constructing message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped