scala.util.parsing.combinator.Parsers

Success

class Success[+T](result: T, next: Reader[Elem]) extends ParseResult[T] with Product

The success case of ParseResult: contains the result and the remaining input .

result

The parser's output

next

The parser's remaining input

go to: companion
source: Parsers.scala

Inherited

  1. Hide All
  2. Show all
  1. Product
  2. Equals
  3. ParseResult
  4. AnyRef
  5. Any

Visibility

  1. Public
  2. All

Instance constructors

  1. new Success(result: T, next: Reader[Elem])

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

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

  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  10. def canEqual(arg0: Any): Boolean

    A method that should be called from every well-designed equals method that is open to be overridden in a subclass .

  11. def clone(): AnyRef

    This method creates and returns a copy of the receiver object .

  12. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  13. def equals(arg0: Any): Boolean

    The equality method defined in AnyRef.

  14. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object .

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

  16. def get: T

    Returns the embedded result

  17. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object .

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

  19. def hashCode(): Int

    Returns a hash code value for the object .

  20. def isEmpty: Boolean

  21. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  22. def map[U](f: (T) ⇒ U): Success[U]

    Functional composition of ParseResults

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

    Partial functional composition of ParseResults

  24. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  25. val next: Reader[Elem]

  26. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor .

  27. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor .

  28. def productArity: Int

    return k for a product A(x_1, .

  29. def productElement(arg0: Int): Any

    For a product A(x_1, .

  30. def productElementName(n: Int): String

    Returns the name of the field at the given index from the definition of the class .

  31. def productElements: Iterator[Any]

  32. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  33. def productPrefix: String

    By default the empty string .

  34. val result: T

  35. val successful: Boolean

  36. def synchronized[T0](arg0: T0): T0

  37. def toString(): String

    The toString method of a Success@return a string representation of the object .

  38. def wait(): Unit

  39. def wait(arg0: Long, arg1: Int): Unit

  40. def wait(arg0: Long): Unit