case class Success[T, Elem, Repr](value: T, index: Int, traceParsers: Set[Parser[_, Elem, Repr]], cut: Boolean = false) extends Mutable[T, Elem, Repr] with Product with Serializable
A mutable version of Parsed.Success with extra data.
- traceParsers
If a
traceIndex
is provided, this will contain any parsers within this Success that failed at exactly that index, which will be used for error reporting. If you are writing your own custom Parser and it contains sub-parsers, you should generally aggregate any the traceParsers of any of their results.- cut
Whether or not this parser crossed a cut and can not longer backtrack
- Alphabetic
- By Inheritance
- Success
- Serializable
- Serializable
- Product
- Equals
- Mutable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Success(value: T, index: Int, traceParsers: Set[Parser[_, Elem, Repr]], cut: Boolean = false)
- traceParsers
If a
traceIndex
is provided, this will contain any parsers within this Success that failed at exactly that index, which will be used for error reporting. If you are writing your own custom Parser and it contains sub-parsers, you should generally aggregate any the traceParsers of any of their results.- cut
Whether or not this parser crossed a cut and can not longer backtrack
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var cut: Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- var index: Int
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toResult: Parsed.Success[T, Elem, Repr]
Snapshots this mutable result and converts it into an immutable Parsed object
-
def
toString(): String
- Definition Classes
- Success → AnyRef → Any
- var traceParsers: Set[Parser[_, Elem, Repr]]
- var value: T
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )