Class

laika.parse

Position

Related Doc: package parse

Permalink

case class Position(s: Source, offset: Int) extends Product with Serializable

Represents an offset into a source string. Its main purpose is error reporting, e.g. printing a visual representation of the line containing the error.

s

the source for this position

offset

the offset into the source string

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Position
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Position(s: Source, offset: Int)

    Permalink

    s

    the source for this position

    offset

    the offset into the source string

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. lazy val column: Int

    Permalink

    The column number referred to by this position, starting at 1.

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  11. lazy val line: Int

    Permalink

    The line number referred to by this position, starting at 1.

  12. lazy val lineContent: String

    Permalink

    The contents of the line at the current offset (not including a newline).

  13. def lineContentWithCaret: String

    Permalink

    The contents of the line at the current offset, decorated with a caret indicating the column.

    The contents of the line at the current offset, decorated with a caret indicating the column. Example:

    The content of the current line with a caret under the c.
        ^
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. val offset: Int

    Permalink

    the offset into the source string

  18. val s: Source

    Permalink

    the source for this position

  19. val source: String

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. lazy val toString: String

    Permalink

    A string representation of this Position of the form line.column.

    A string representation of this Position of the form line.column.

    Definition Classes
    Position → AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped