trait Bool extends AnyRef

A trait that represent a rich-featured boolean value, which includes the following members:

  • a boolean value
  • methods useful for failure messages construction
  • logical expression methods that makes Bool composable

Bool is used by code generated from BooleanMacro (which AssertionsMacro and RequirementsMacro uses), it needs to be public so that the generated code can be compiled. It is expected that ScalaTest users would ever need to use Bool directly.

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

Abstract Value Members

  1. abstract def failureMessageArgs: IndexedSeq[Any]

    Arguments to construct final failure message with raw message returned from rawFailureMessage.

  2. abstract def midSentenceFailureMessageArgs: IndexedSeq[Any]

    Arguments to construct final mid sentence failure message with raw message returned from rawMidSentenceFailureMessage.

  3. abstract def midSentenceNegatedFailureMessageArgs: IndexedSeq[Any]

    Arguments to construct final negated mid sentence failure message with raw message returned from rawMidSentenceNegatedFailureMessage.

  4. abstract def negatedFailureMessageArgs: IndexedSeq[Any]

    Arguments to construct final negated failure message with raw message returned from rawNegatedFailureMessage.

  5. abstract val prettifier: Prettifier
  6. abstract def rawFailureMessage: String

    raw message to report a failure

  7. abstract def rawMidSentenceFailureMessage: String

    raw mid sentence message to report a failure

  8. abstract def rawMidSentenceNegatedFailureMessage: String

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

  9. abstract def rawNegatedFailureMessage: String

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

  10. abstract def value: Boolean

    the Boolean value of this Bool

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &(bool: => Bool): Bool

    Logical and this Bool with another Bool

    Logical and this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical and

  4. def &&(bool: => Bool): Bool

    Logical and this Bool with another Bool

    Logical and this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical and

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. lazy val analysis: IndexedSeq[String]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def failureMessage: String

    Construct and return failure message, by applying arguments returned from failureMessageArgs to raw message returned from rawFailureMessage

  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def midSentenceFailureMessage: String

    Construct and return mid sentence failure message, by applying arguments returned from midSentenceFailureMessageArgs to raw message returned from rawMidSentenceFailureMessage

  17. def midSentenceNegatedFailureMessage: String

    Construct and return mid sentence negated failure message, by applying arguments returned from midSentenceNegatedFailureMessageArgs to raw message returned from rawMidSentenceNegatedFailureMessage

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def negatedFailureMessage: String

    Construct and return negated failure message, by applying arguments returned from negatedFailureMessageArgs to raw message returned from rawNegatedFailureMessage

  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def unary_!: Bool

    Negate this Bool

    Negate this Bool

    returns

    a Bool that represents the result of negating the original Bool

  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. def |(bool: => Bool): Bool

    Logical or this Bool with another Bool

    Logical or this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical or

  29. def ||(bool: => Bool): Bool

    Logical or this Bool with another Bool

    Logical or this Bool with another Bool

    bool

    another Bool

    returns

    a Bool that represents the result of logical or

Inherited from AnyRef

Inherited from Any

Ungrouped