|
Scala Library
|
|
class
CharSequenceReader(val override source : java.lang.CharSequence, val override offset : Int)
extends Reader[Char]source - the source sequenceoffset - starting offset.| Additional Constructor Summary | |
def
|
this
(source : java.lang.CharSequence) : CharSequenceReader
Construct a
CharSequenceReader with its first element at
source(0) and position (1,1). |
| 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) : CharSequenceReader
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
: CharSequenceReader
Returns a CharSequenceReader 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(source : java.lang.CharSequence) : CharSequenceReader
CharSequenceReader with its first element at
source(0) and position (1,1).| Method Details |
def
first : Char
def
rest : CharSequenceReader
atEnd is true, the result will be this'; otherwise, it's a CharSequenceReader containing
the rest of input.
def
pos : Position
def
atEnd : Boolean
override
def
drop(n : Int) : CharSequenceReader
n elements.|
Scala Library
|
|