| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait PatternMatchers
extends
ScalaObject
PatternMatchers trait provides matchers which allow to use pattern matching
to match expressions.
| beSomething |
def beSomething
Alias for beSome[Any]
|
CaseMatcher[Any] |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| beAlsoNone |
def beAlsoNone[T](a : => Option[T])
[details]
|
Matcher[Option[T]] | |
| beAsNoneAs |
def beAsNoneAs[T](a : => Option[T])
Matches if a is None when v is None and a is not None when v is not None
|
Matcher[Option[T]] | |
| beLike |
def beLike(pattern : => (Any) => Boolean)
Matches if the value
v is like the pattern { case expression => boolean }It uses the fact that we can use the following syntax to map Options:
|
Matcher[Any] | |
| beNone |
def beNone[T]
Matches if the value
v is None
|
Matcher[Option[T]] | |
| beSome |
def beSome[T]
Matches if the value
v is Some(x)
|
CaseMatcher[T] | |
| clone |
protected def clone
|
Object | AnyRef |
| eq |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| finalize |
protected def finalize
|
Unit | AnyRef |
| getClass |
final def getClass
|
Class[Object] | AnyRef |
| hashCode |
def hashCode
|
Int | AnyRef |
| isInstanceOf |
final def isInstanceOf[T0]
|
Boolean | Any |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| synchronized |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString |
def toString
|
String | AnyRef |
| wait |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| wait |
final def wait
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |