org.scalactic

Bool

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
Learn more about member selection
Visibility
  1. Public
  2. All

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

    returns

    a binary macro Bool

  6. def binaryMacroBool(left: Any, operator: String, right: Any, expression: Boolean): 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

    returns

    a binary macro Bool

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def existsMacroBool(left: Any, right: Any, expression: Boolean): 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

    returns

    a exists macro Bool

  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def isInstanceOfMacroBool(left: Any, operator: String, className: String, bool: Bool): 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

    returns

    a Bool instance that represents a isInstanceOf method call

  16. def isInstanceOfMacroBool(left: Any, operator: String, className: String, expression: Boolean): 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

    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: Long, expected: Long): 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

    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): Bool

    Create a negated version of the given Bool

    Create a negated version of the given Bool

    bool

    the given Bool

    returns

    a negated version of the given Bool

  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def simpleMacroBool(expression: Boolean, expressionText: String): 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)

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

    returns

    a binary macro Bool

  27. def unaryMacroBool(left: Any, operator: String, expression: Boolean): 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

    returns

    a unary macro Bool

  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped