scala.util.parsing.input
class CharArrayPosition

[source: `scala/util/parsing/input/CharArrayPosition.scala`]

`` `class` CharArrayPosition(`val` source : Array[Char], `val` line : Int, `val` column : Int)
  `extends` Position

  `CharArrayPosition` implements the general `Position` class for documents represented by an `Array` of `char's.

Parameters
  `source -` The contents of the document in which this position is contained
  `line -` The line number of the position (1-based)
  `columm -` The column number of the position (1-based)
Author
  Martin Odersky, Adriaan Moors

Method Summary
`protected def` | lineContents (lnum : Int) : String The contents of the line numbered `lnum' (must not contain a new-line character).

Methods inherited from Position
toString, longString, <

Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`protected` `def` lineContents(lnum : Int) : String

  The contents of the line numbered `lnum' (must not contain a new-line character).

Parameters
  `lnum -` a 1-based integer index into the `document'
Returns
  the line at `lnum' (not including a newline)

Overrides
  Position.lineContents