in scala/io
class Source

abstract class Source()
extends Iterator[Char]
with ScalaObject

an iterable representation of source files.
Author:
Burak Emir

Field Summary
protected abstract val iter: Iterator[Char]
  val tabinc: Int
     default col increment for tabs '\t', set to 4

Method Summary
  var ccol: Int
  var ch: Char
     the last character returned by next.
  var cline: Int
  var descr: String
     description of this source
  def hasNext: Boolean
     returns true if this source has more characters
  def next: Char
     returns next characters, updates positions and assigns the character ch as side effect
  var pos: Int
     position of last character returned by next

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterator-class
/:, :\, append, buffered, contains, copyToArray, drop, duplicate, exists, filter, find, flatMap, foldLeft, foldRight, forall, foreach, map, take, toList, zip

Methods inherited from scala/ScalaObject-class
getType

Field Detail

tabinc

  val tabinc: Int
default col increment for tabs '\t', set to 4

iter

  protected abstract val iter: Iterator[Char]
Method Detail

next

  def next: Char
returns next characters, updates positions and assigns the character ch as side effect

hasNext

  def hasNext: Boolean
returns true if this source has more characters

cline

  var cline: Int

ccol

  var ccol: Int

pos

  var pos: Int
position of last character returned by next

ch

  var ch: Char
the last character returned by next. the value before the first call to next is undefined

descr

  var descr: String
description of this source