abstract class ParserInput[Elem, Repr] extends IsReachable[Elem]
ParserInput class represents data that is needed to parse.
It can be regular IndexedSeq
that behaves as simple array or
Iterator
of IndexedSeq
batches which is optimized by dropBuffer
method.
- Alphabetic
- By Inheritance
- ParserInput
- IsReachable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ParserInput()
Abstract Value Members
-
abstract
def
apply(index: Int): Elem
- Definition Classes
- ParserInput → IsReachable
- abstract def checkTraceable(): Unit
-
abstract
def
dropBuffer(index: Int): Unit
Special method for
Iterator
mode.Special method for
Iterator
mode. It drops the prefix of the internal buffer so that all the data strictly before becomes unavailable andindex
is the first valid element to access. - abstract def innerLength: Int
-
abstract
def
isReachable(index: Int): Boolean
Shows if we can access to the element at given
index
.Shows if we can access to the element at given
index
.- Definition Classes
- ParserInput → IsReachable
- abstract def length: Int
- abstract val repr: ReprOps[Elem, Repr]
-
abstract
def
slice(from: Int, until: Int): Repr
- returns
Slice of internal data. For
IndexedSeq
mode it works as regular slice, ifuntil
overshoots the end of input, it just ignores it and behaves likeuntil
equals to the length of input. Same forIterator
mode, but it requests batches while the index of last retrieved element is less thanuntil
and ifuntil
is farther away than any element, it ignores this too.
Concrete 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( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )