scala.util.parsing.combinator.testing.RegexTest

ParseResult

class ParseResult[+T] extends AnyRef

A base class for parser results. A result is either successful or not (failure may be fatal, i.e., an Error, or not, i.e., a Failure) On success, provides a result of type T.

attributes: sealed abstract
definition classes: Parsers

Inherits

  1. AnyRef
  2. Any

Value Members

  1. def append[U >: T](a: ⇒ ParseResult[U]): ParseResult[U]

  2. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  3. def flatMapWithNext[U](f: (T) ⇒ (Reader[Elem]) ⇒ ParseResult[U]): ParseResult[U]

  4. def get: T

    Returns the embedded result

  5. def getOrElse[B >: T](default: ⇒ B): B

  6. def hashCode(): Int

    Returns a hash code value for the object

  7. def isEmpty: Boolean

  8. def map[U](f: (T) ⇒ U): ParseResult[U]

    Functional composition of ParseResults

  9. def mapPartial[U](f: PartialFunction[T, U], error: (T) ⇒ String): ParseResult[U]

    Partial functional composition of ParseResults

  10. val next: Reader[Elem]

  11. val successful: Boolean

  12. def toString(): String

    Returns a string representation of the object

Instance constructors

  1. new ParseResult()