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
- Alphabetic
- By Inheritance
- Bool
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
failureMessageArgs: IndexedSeq[Any]
Arguments to construct final failure message with raw message returned from
rawFailureMessage
. -
abstract
def
midSentenceFailureMessageArgs: IndexedSeq[Any]
Arguments to construct final mid sentence failure message with raw message returned from
rawMidSentenceFailureMessage
. -
abstract
def
midSentenceNegatedFailureMessageArgs: IndexedSeq[Any]
Arguments to construct final negated mid sentence failure message with raw message returned from
rawMidSentenceNegatedFailureMessage
. -
abstract
def
negatedFailureMessageArgs: IndexedSeq[Any]
Arguments to construct final negated failure message with raw message returned from
rawNegatedFailureMessage
. - abstract val prettifier: Prettifier
-
abstract
def
rawFailureMessage: String
raw message to report a failure
-
abstract
def
rawMidSentenceFailureMessage: String
raw mid sentence message to report a failure
-
abstract
def
rawMidSentenceNegatedFailureMessage: String
raw mid sentence message with a meaning opposite to that of the failure message
-
abstract
def
rawNegatedFailureMessage: String
raw message with a meaning opposite to that of the failure message
-
abstract
def
value: Boolean
the
Boolean
value of thisBool
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
&(bool: Bool): Bool
Logical
and
thisBool
with anotherBool
Logical
and
thisBool
with anotherBool
- bool
another
Bool
- returns
a
Bool
that represents the result of logicaland
-
def
&&(bool: Bool): Bool
Logical
and
thisBool
with anotherBool
Logical
and
thisBool
with anotherBool
- bool
another
Bool
- returns
a
Bool
that represents the result of logicaland
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
failureMessage: String
Construct and return failure message, by applying arguments returned from
failureMessageArgs
to raw message returned fromrawFailureMessage
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
midSentenceFailureMessage: String
Construct and return mid sentence failure message, by applying arguments returned from
midSentenceFailureMessageArgs
to raw message returned fromrawMidSentenceFailureMessage
-
def
midSentenceNegatedFailureMessage: String
Construct and return mid sentence negated failure message, by applying arguments returned from
midSentenceNegatedFailureMessageArgs
to raw message returned fromrawMidSentenceNegatedFailureMessage
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
negatedFailureMessage: String
Construct and return negated failure message, by applying arguments returned from
negatedFailureMessageArgs
to raw message returned fromrawNegatedFailureMessage
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unary_!: Bool
Negate this
Bool
Negate this
Bool
- returns
a
Bool
that represents the result of negating the originalBool
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
|(bool: ⇒ Bool): Bool
Logical
or
thisBool
with anotherBool
Logical
or
thisBool
with anotherBool
- bool
another
Bool
- returns
a
Bool
that represents the result of logicalor
-
def
||(bool: ⇒ Bool): Bool
Logical
or
thisBool
with anotherBool
Logical
or
thisBool
with anotherBool
- bool
another
Bool
- returns
a
Bool
that represents the result of logicalor