case class Failure[Elem, Repr](input: ParserInput[Elem, Repr], fullStack: Buffer[Frame], index: Int, lastParser: Parser[_, Elem, Repr], originalParser: Parser[_, Elem, Repr], originalIndex: Int, traceIndex: Int, traceParsers: Set[Parser[_, Elem, Repr]], cut: Boolean) extends Mutable[Nothing, Elem, Repr] with Product with Serializable
A mutable version of Parsed.Failure with extra data.
- originalParser
the original parser that was attempted and failed. Used to repeat the parse with tracing when generating error messages
- originalIndex
The original index that originalParser was attemped at
- traceIndex
The index at which parser traces are required; -1 if empty
- traceParsers
If a
traceIndex
is provided, this will contain any parsers within this Failure 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.
- Alphabetic
- By Inheritance
- Failure
- Serializable
- Serializable
- Product
- Equals
- Mutable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Failure(input: ParserInput[Elem, Repr], fullStack: Buffer[Frame], index: Int, lastParser: Parser[_, Elem, Repr], originalParser: Parser[_, Elem, Repr], originalIndex: Int, traceIndex: Int, traceParsers: Set[Parser[_, Elem, Repr]], cut: Boolean)
- originalParser
the original parser that was attempted and failed. Used to repeat the parse with tracing when generating error messages
- originalIndex
The original index that originalParser was attemped at
- traceIndex
The index at which parser traces are required; -1 if empty
- traceParsers
If a
traceIndex
is provided, this will contain any parsers within this Failure 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.
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] )
- val fullStack: Buffer[Frame]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- var index: Int
- var input: ParserInput[Elem, Repr]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var lastParser: Parser[_, Elem, Repr]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val originalIndex: Int
- val originalParser: Parser[_, Elem, Repr]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toResult: Parsed.Failure[Elem, Repr]
Snapshots this mutable result and converts it into an immutable Parsed object
- val traceIndex: Int
- var traceParsers: Set[Parser[_, Elem, Repr]]
-
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( ... )