abstract class ParserInput extends IsReachable
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
- Protected
Instance Constructors
- new ParserInput()
Abstract Value Members
- abstract def apply(index: Int): Char
- 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 def prettyIndex(index: Int): String
- abstract def slice(from: Int, until: Int): String
- 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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.