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
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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def binaryMacroBool(left: Any, operator: String, right: Any, bool: Bool, prettifier: Prettifier): Bool

    Overloaded method that takes a Bool in place of Boolean expression to create a new binary macro Bool.

    Overloaded method that takes a Bool in place of Boolean expression to create a new binary macro Bool.

    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 the Boolean expression value with bool.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

  6. def binaryMacroBool(left: Any, operator: String, right: Any, expression: Boolean, prettifier: Prettifier): Bool

    Create binary macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression, which includes Boolean expression that uses ==, ===, !=, !==, >, >=, <, <=, &&, &, || and |.

    Create binary macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression, which includes Boolean 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

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def existsMacroBool(left: Any, right: Any, expression: Boolean, prettifier: Prettifier): Bool

    Create exists macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by exists method call.

    Create exists macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by exists 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

  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def isInstanceOfMacroBool(left: Any, operator: String, className: String, bool: Bool, prettifier: Prettifier): Bool

    Overloaded method that takes a Bool in place of Boolean expression to create a new isInstanceOf macro Bool.

    Overloaded method that takes a Bool in place of Boolean expression to create a new isInstanceOf macro Bool.

    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 the Boolean expression value with bool.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 a isInstanceOf method call

  16. def isInstanceOfMacroBool(left: Any, operator: String, className: String, expression: Boolean, prettifier: Prettifier): Bool

    Create macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by a isInstanceOf method call,

    Create macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by a isInstanceOf 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 a isInstanceOf method call

  17. def isSimpleWithoutExpressionText(bool: Bool): Boolean

    A helper method to check is the given Bool is a simple macro Bool and contains empty expression text.

    A helper method to check is the given Bool is a simple macro Bool and contains empty expression text.

    bool

    the Bool to check

    returns

    true if the given Bool is a simple macro Bool and contains empty expression text, false otherwise.

  18. def lengthSizeMacroBool(left: Any, operator: String, actual: Any, expected: Any, prettifier: Prettifier): Bool

    Create macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by length and size method call,

    Create macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by length and size 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 or size method call

    expected

    the expected value returned from length or size 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 a length or size method call

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. 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

  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def simpleMacroBool(expression: Boolean, expressionText: String, prettifier: Prettifier): Bool

    Create simple macro Bool that is used by BooleanMacro to wrap an unrecognized Boolean expression.

    Create simple macro Bool that is used by BooleanMacro to wrap an unrecognized Boolean 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

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def unaryMacroBool(left: Any, operator: String, bool: Bool, prettifier: Prettifier): Bool

    Overloaded method that takes a Bool in place of Boolean expression to create a new unary macro Bool.

    Overloaded method that takes a Bool in place of Boolean expression to create a new unary macro Bool.

    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 the Boolean expression value with bool.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

  27. def unaryMacroBool(left: Any, operator: String, expression: Boolean, prettifier: Prettifier): Bool

    Create unary macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by a unary method call, which includes Boolean expression that uses isEmpty.

    Create unary macro Bool that is used by BooleanMacro to wrap a recognized Boolean expression represented by a unary method call, which includes Boolean expression that uses isEmpty.

    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

  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped