scala.util.parsing.input

CharArrayReader

class CharArrayReader extends CharSequenceReader

A character array reader reads a stream of characters (keeping track of their positions) from an array.

Inherits

  1. CharSequenceReader
  2. Reader
  3. AnyRef
  4. Any

Value Members

  1. def atEnd: Boolean

    true iff there are no more elements in this reader (except for trailing EofCh's)

  2. def drop(n: Int): CharSequenceReader

    Returns an abstract reader consisting of all elements except the first n elements

  3. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  4. def first: Char

    Returns the first element of the reader, or EofCh if reader is at its end

  5. def hashCode(): Int

    Returns a hash code value for the object

  6. val offset: Int

  7. def pos: Position

    The position of the first element in the reader

  8. def rest: CharSequenceReader

    Returns a CharSequenceReader consisting of all elements except the first

  9. val source: CharSequence

    If this is a reader over character sequences, the underlying char sequence If not, throws a NoSuchMethodError exception

  10. def toString(): String

    Returns a string representation of the object

Instance constructors

  1. new CharArrayReader(chars: Array[Char])

  2. new CharArrayReader(chars: Array[Char], index: Int)

  3. new CharArrayReader(source: CharSequence)

    Construct a CharSequenceReader with its first element at source(0) and position (1,1)

  4. new CharArrayReader(source: CharSequence, offset: Int)

  5. new CharArrayReader()