Class/Object

laika.parse

ParserContext

Related Docs: object ParserContext | package parse

Permalink

case class ParserContext(source: Source, offset: Int, nestLevel: Int) extends Product with Serializable

Represents the state and context of a parsing operation, containing the input string as well as positional information/

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParserContext
  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 ParserContext(source: Source, offset: Int, nestLevel: Int)

    Permalink

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 atEnd: Boolean

    Permalink

    Indicates whether this contexts offset is behind the last character of the input string

  6. def capture(numChars: Int): String

    Permalink

    Captures a string containing the specified number of characters from the current offset.

    Captures a string containing the specified number of characters from the current offset. Throws an exception if the number of characters left is less than the specified number.

  7. def char: Char

    Permalink

    The character at the current offset.

  8. def charAt(relativeOffset: Int): Char

    Permalink

    The character at the specified offset, relative from the current offset.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def consume(numChars: Int): ParserContext

    Permalink

    Consumes the specified number of characters, returning a new ParserContext with the new offset.

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. val input: String

    Permalink

    The full input string, containing the string portions before and after the current offset.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. val nestLevel: Int

    Permalink
  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. val offset: Int

    Permalink
  21. def position: Position

    Permalink

    The current position in the input string.

  22. def remaining: Int

    Permalink

    Indicates the number of characters remaining in the input string after the current offset.

  23. def reverse: ParserContext

    Permalink

    Returns a new ParserContext with the input string being reversed, but pointing to the same character as this context.

    Returns a new ParserContext with the input string being reversed, but pointing to the same character as this context.

    This is a low-level optimization for parsers that look for strings like email addresses where the first character is not significant, so that parsing backwards from any @ encountered in the input provided better performance.

  24. val source: Source

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

    Permalink
    Definition Classes
    AnyRef
  26. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. 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