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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. 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

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

  9. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  12. 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

  13. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  17. 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

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

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

  20. def lengthSizeMacroBool(left: Any, operator: String, actual: Any, expected: Any): 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

  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. 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

  23. final def notify(): Unit

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

    Definition Classes
    AnyRef
  25. 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

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. 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

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

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped