Scala Library
|
|
sealed abstract
class
ParseResult[+T]
extends
AnyRefT
.Value Summary | |
abstract val
|
next : Reader |
abstract val
|
successful : Boolean |
Method Summary | |
abstract def
|
get
: T
Returns the embedded result
|
def
|
getOrElse [B >: T](default : => B) : B |
def
|
isEmpty : Boolean |
abstract def
|
map
[U](f : (T) => U) : ParseResult[U]
Functional composition of ParseResults
|
abstract def
|
mapPartial
[U](f : PartialFunction[T, U], error : (T) => java.lang.String) : ParseResult[U]
Partial functional composition of ParseResults
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
Method Details |
abstract
def
map[U](f : (T) => U) : ParseResult[U]
`f' -
the function to be lifted over this resultabstract
def
mapPartial[U](f : PartialFunction[T, U], error : (T) => java.lang.String) : ParseResult[U]
`f' -
the partial function to be lifted over this resulterror -
a function that takes the same argument as `f' and produces an error message to explain why `f' wasn't applicable (it is called when this is the case)
def
isEmpty : Boolean
abstract
def
get : T
Scala Library
|
|