scala.util.parsing.input

class PagedSeqReader

[source: scala/util/parsing/input/PagedSeqReader.scala]

class PagedSeqReader(seq : PagedSeq[Char], val override offset : Int)
extends Reader[Char]
A character array reader reads a stream of characters (keeping track of their positions) from an array.
Parameters
source - the source sequence
offset - starting offset.
Author
Martin Odersky
Direct Known Subclasses:
StreamReader

Additional Constructor Summary
def this (seq : PagedSeq[Char]) : PagedSeqReader
Construct a PagedSeqReader with its first element at source(0) and position (1,1).
Value Summary
override lazy val source : java.lang.CharSequence
If this is a reader over character sequences, the underlying char sequence If not, throws a NoSuchMethodError exception.
Method Summary
def atEnd : Boolean
true iff there are no more elements in this reader (except for trailing EofCh's)
override def drop (n : Int) : PagedSeqReader
Returns an abstract reader consisting of all elements except the first n elements.
def first : Char
Returns the first element of the reader, or EofCh if reader is at its end
def pos : Position
The position of the first element in the reader
def rest : PagedSeqReader
Returns a PagedSeqReader consisting of all elements except the first
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Additional Constructor Details
def this(seq : PagedSeq[Char]) : PagedSeqReader
Construct a PagedSeqReader with its first element at source(0) and position (1,1).

Value Details
override lazy val source : java.lang.CharSequence
If this is a reader over character sequences, the underlying char sequence If not, throws a NoSuchMethodError exception.
Overrides
Reader.source

Method Details
def first : Char
Returns the first element of the reader, or EofCh if reader is at its end
Overrides
Reader.first

def rest : PagedSeqReader
Returns a PagedSeqReader consisting of all elements except the first
Returns
If atEnd is true, the result will be this'; otherwise, it's a PagedSeqReader containing the rest of input.
Overrides
Reader.rest

def pos : Position
The position of the first element in the reader
Overrides
Reader.pos

def atEnd : Boolean
true iff there are no more elements in this reader (except for trailing EofCh's)
Overrides
Reader.atEnd

override def drop(n : Int) : PagedSeqReader
Returns an abstract reader consisting of all elements except the first n elements.
Overrides
Reader.drop