scala.util.parsing.input

object NoPosition

[source: scala/util/parsing/input/NoPosition.scala]

object NoPosition
extends Position
Undefined position
Author
Martin Odersky, Adriaan Moors
Method Summary
def column : Int
The column number referred to by the position; column numbers start at 1
def line : Int
The line number referred to by the position; line numbers start at 1
def lineContents : java.lang.String
The contents of the line numbered `lnum' (must not contain a new-line character).
override def longString : java.lang.String
Returns a more ``visual'' representation of this position. More precisely, the resulting string consists of two lines:
  1. the line in the document referred to by this position
  2. a caret indicating the column
Example:
    List(this, is, a, line, from, the, document)
                    ^
override def toString : java.lang.String
Returns a string representation of the `Position', of the form `line.column'
Methods inherited from Position
<
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
def line : Int
The line number referred to by the position; line numbers start at 1
Overrides
Position.line

def column : Int
The column number referred to by the position; column numbers start at 1
Overrides
Position.column

override def toString : java.lang.String
Returns a string representation of the `Position', of the form `line.column'
Overrides
Position.toString

override def longString : java.lang.String
Returns a more ``visual'' representation of this position. More precisely, the resulting string consists of two lines:
  1. the line in the document referred to by this position
  2. a caret indicating the column
Example:
    List(this, is, a, line, from, the, document)
                    ^
Overrides
Position.longString

def lineContents : java.lang.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