object Bool
Bool
companion object that provides factory methods to create different sub types of Bool
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
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
binaryMacroBool(left: Any, operator: String, right: Any, bool: Bool, prettifier: Prettifier): Bool
Overloaded method that takes a
Bool
in place ofBoolean
expression to create a new binary macroBool
.Overloaded method that takes a
Bool
in place ofBoolean
expression to create a new binary macroBool
.- left
the left-hand-side (LHS) of the
Boolean
expression- operator
the operator (method name) of the
Boolean
expression- right
the right-hand-side (RHS) of the
Boolean
expression- bool
the
Bool
that will provide theBoolean
expression value withbool.value
- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a binary macro
Bool
-
def
binaryMacroBool(left: Any, operator: String, right: Any, expression: Boolean, prettifier: Prettifier): Bool
Create binary macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression, which includesBoolean
expression that uses==
,===
,!=
,!==
,>
,>=
,<
,<=
,&&
,&
,||
and|
.Create binary macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression, which includesBoolean
expression that uses==
,===
,!=
,!==
,>
,>=
,<
,<=
,&&
,&
,||
and|
.- left
the left-hand-side (LHS) of the
Boolean
expression- operator
the operator (method name) of the
Boolean
expression- right
the right-hand-side (RHS) of the
Boolean
expression- expression
the
Boolean
expression- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a binary macro
Bool
-
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
existsMacroBool(left: Any, right: Any, expression: Boolean, prettifier: Prettifier): Bool
Create exists macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented byexists
method call.Create exists macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented byexists
method call.- left
the left-hand-side (LHS) of the
Boolean
expression- right
the right-hand-side (RHS) of the
Boolean
expression- expression
the
Boolean
expression- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a exists macro
Bool
-
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
isInstanceOfMacroBool(left: Any, operator: String, className: String, bool: Bool, prettifier: Prettifier): Bool
Overloaded method that takes a
Bool
in place ofBoolean
expression to create a newisInstanceOf
macroBool
.Overloaded method that takes a
Bool
in place ofBoolean
expression to create a newisInstanceOf
macroBool
.- left
the left-hand-side (LHS) of the
Boolean
expression- operator
the operator (method name) of the
Boolean
expression- className
the class name passed to
isInstanceOf
method call- bool
the
Bool
that will provide theBoolean
expression value withbool.value
- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a
Bool
instance that represents aisInstanceOf
method call
-
def
isInstanceOfMacroBool(left: Any, operator: String, className: String, expression: Boolean, prettifier: Prettifier): Bool
Create macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented by aisInstanceOf
method call,Create macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented by aisInstanceOf
method call,- left
the left-hand-side (LHS) of the
Boolean
expression- operator
the operator (method name) of the
Boolean
expression- className
the class name passed to
isInstanceOf
method call- expression
the
Boolean
expression- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a
Bool
instance that represents aisInstanceOf
method call
-
def
isSimpleWithoutExpressionText(bool: Bool): Boolean
A helper method to check is the given
Bool
is a simple macroBool
and contains empty expression text.A helper method to check is the given
Bool
is a simple macroBool
and contains empty expression text.- bool
the
Bool
to check- returns
true
if the givenBool
is a simple macroBool
and contains empty expression text,false
otherwise.
-
def
lengthSizeMacroBool(left: Any, operator: String, actual: Any, expected: Any, prettifier: Prettifier): Bool
Create macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented bylength
andsize
method call,Create macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented bylength
andsize
method call,- left
the left-hand-side (LHS) of the
Boolean
expression- operator
the operator (method name) of the
Boolean
expression- actual
the actual value returned from
length
orsize
method call- expected
the expected value returned from
length
orsize
method call- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a
Bool
instance that represents alength
orsize
method call
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
notBool(bool: Bool, prettifier: Prettifier): Bool
Create a negated version of the given
Bool
Create a negated version of the given
Bool
- bool
the given
Bool
- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a negated version of the given
Bool
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
simpleMacroBool(expression: Boolean, expressionText: String, prettifier: Prettifier): Bool
Create simple macro
Bool
that is used byBooleanMacro
to wrap an unrecognizedBoolean
expression.Create simple macro
Bool
that is used byBooleanMacro
to wrap an unrecognizedBoolean
expression.- expression
the
Boolean
expression- expressionText
the original expression text (source code)
- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a simple macro
Bool
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unaryMacroBool(left: Any, operator: String, bool: Bool, prettifier: Prettifier): Bool
Overloaded method that takes a
Bool
in place ofBoolean
expression to create a new unary macroBool
.Overloaded method that takes a
Bool
in place ofBoolean
expression to create a new unary macroBool
.- left
the left-hand-side (LHS) of the
Boolean
expression- operator
the operator (method name) of the
Boolean
expression- bool
the
Bool
that will provide theBoolean
expression value withbool.value
- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a binary macro
Bool
-
def
unaryMacroBool(left: Any, operator: String, expression: Boolean, prettifier: Prettifier): Bool
Create unary macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented by a unary method call, which includesBoolean
expression that usesisEmpty
.Create unary macro
Bool
that is used byBooleanMacro
to wrap a recognizedBoolean
expression represented by a unary method call, which includesBoolean
expression that usesisEmpty
.- left
the left-hand-side (LHS) of the
Boolean
expression- operator
the operator (method name) of the
Boolean
expression- expression
the
Boolean
expression- prettifier
the
Prettifier
used for prettifying messages, this need to be implicit to let the compiler resolve it implicitly, it will be too tricky for our macro to resolve it and pass it over explicitly.- returns
a unary macro
Bool
-
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( ... )