Scala Library Documentation
|
|
scala/util/parsing/input/Reader.scala
]
abstract
class
Reader[+T]
extends
AnyRefMethod Summary | |
abstract def
|
atEnd
: Boolean
Whether there are any more elements in this reader besides the first.
(i.e., whether calling `rest' will yield a `Reader' with more elements)
|
abstract def
|
first
: T
Returns the first element of the stream
|
abstract def
|
pos
: Position
The position of the first element in the stream
|
abstract def
|
rest
: Reader[T]
Returns an abstract reader 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 |
Method Details |
abstract
def
first : T
atEnd
is true
, the result will be this'; otherwise, it's a Reader
containing
more elements.
abstract
def
pos : Position
abstract
def
atEnd : Boolean
Scala Library Documentation
|
|