Object/Trait

org.scalactic

Bool

Related Docs: trait Bool | package scalactic

Permalink

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def binaryMacroBool(left: Any, operator: String, right: Any, bool: Bool, prettifier: Prettifier): Bool

    Permalink

    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

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def existsMacroBool(left: Any, right: Any, expression: Boolean, prettifier: Prettifier): Bool

    Permalink

    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

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

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

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

    Permalink
    Definition Classes
    Any
  15. def isInstanceOfMacroBool(left: Any, operator: String, className: String, bool: Bool, prettifier: Prettifier): Bool

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  20. def notBool(bool: Bool, prettifier: Prettifier): Bool

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  23. def simpleMacroBool(expression: Boolean, expressionText: String, prettifier: Prettifier): Bool

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def unaryMacroBool(left: Any, operator: String, bool: Bool, prettifier: Prettifier): Bool

    Permalink

    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

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped