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
- Protected
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
Boolin place ofBooleanexpression to create a new binary macroBool.Overloaded method that takes a
Boolin place ofBooleanexpression to create a new binary macroBool.- left
the left-hand-side (LHS) of the
Booleanexpression- operator
the operator (method name) of the
Booleanexpression- right
the right-hand-side (RHS) of the
Booleanexpression- bool
the
Boolthat will provide theBooleanexpression value withbool.value- prettifier
the
Prettifierused 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
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression, which includesBooleanexpression that uses==,===,!=,!==,>,>=,<,<=,&&,&,||and|.Create binary macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression, which includesBooleanexpression that uses==,===,!=,!==,>,>=,<,<=,&&,&,||and|.- left
the left-hand-side (LHS) of the
Booleanexpression- operator
the operator (method name) of the
Booleanexpression- right
the right-hand-side (RHS) of the
Booleanexpression- expression
the
Booleanexpression- prettifier
the
Prettifierused 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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def existsMacroBool(left: Any, right: Any, expression: Boolean, prettifier: Prettifier): Bool
Create exists macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented byexistsmethod call.Create exists macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented byexistsmethod call.- left
the left-hand-side (LHS) of the
Booleanexpression- right
the right-hand-side (RHS) of the
Booleanexpression- expression
the
Booleanexpression- prettifier
the
Prettifierused 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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- 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
Boolin place ofBooleanexpression to create a newisInstanceOfmacroBool.Overloaded method that takes a
Boolin place ofBooleanexpression to create a newisInstanceOfmacroBool.- left
the left-hand-side (LHS) of the
Booleanexpression- operator
the operator (method name) of the
Booleanexpression- className
the class name passed to
isInstanceOfmethod call- bool
the
Boolthat will provide theBooleanexpression value withbool.value- prettifier
the
Prettifierused 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
Boolinstance that represents aisInstanceOfmethod call
- def isInstanceOfMacroBool(left: Any, operator: String, className: String, expression: Boolean, prettifier: Prettifier): Bool
Create macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented by aisInstanceOfmethod call,Create macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented by aisInstanceOfmethod call,- left
the left-hand-side (LHS) of the
Booleanexpression- operator
the operator (method name) of the
Booleanexpression- className
the class name passed to
isInstanceOfmethod call- expression
the
Booleanexpression- prettifier
the
Prettifierused 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
Boolinstance that represents aisInstanceOfmethod call
- def isSimpleWithoutExpressionText(bool: Bool): Boolean
A helper method to check is the given
Boolis a simple macroBooland contains empty expression text.A helper method to check is the given
Boolis a simple macroBooland contains empty expression text.- bool
the
Boolto check- returns
trueif the givenBoolis a simple macroBooland contains empty expression text,falseotherwise.
- def lengthSizeMacroBool(left: Any, operator: String, actual: Any, expected: Any, prettifier: Prettifier): Bool
Create macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented bylengthandsizemethod call,Create macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented bylengthandsizemethod call,- left
the left-hand-side (LHS) of the
Booleanexpression- operator
the operator (method name) of the
Booleanexpression- actual
the actual value returned from
lengthorsizemethod call- expected
the expected value returned from
lengthorsizemethod call- prettifier
the
Prettifierused 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
Boolinstance that represents alengthorsizemethod call
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def notBool(bool: Bool, prettifier: Prettifier): Bool
Create a negated version of the given
BoolCreate a negated version of the given
Bool- bool
the given
Bool- prettifier
the
Prettifierused 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
Boolthat is used byBooleanMacroto wrap an unrecognizedBooleanexpression.Create simple macro
Boolthat is used byBooleanMacroto wrap an unrecognizedBooleanexpression.- expression
the
Booleanexpression- expressionText
the original expression text (source code)
- prettifier
the
Prettifierused 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
Boolin place ofBooleanexpression to create a new unary macroBool.Overloaded method that takes a
Boolin place ofBooleanexpression to create a new unary macroBool.- left
the left-hand-side (LHS) of the
Booleanexpression- operator
the operator (method name) of the
Booleanexpression- bool
the
Boolthat will provide theBooleanexpression value withbool.value- prettifier
the
Prettifierused 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
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented by a unary method call, which includesBooleanexpression that usesisEmpty.Create unary macro
Boolthat is used byBooleanMacroto wrap a recognizedBooleanexpression represented by a unary method call, which includesBooleanexpression that usesisEmpty.- left
the left-hand-side (LHS) of the
Booleanexpression- operator
the operator (method name) of the
Booleanexpression- expression
the
Booleanexpression- prettifier
the
Prettifierused 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()