Context

case class Context(line: String, offset: Int, annotations: List[StaticAnnotation], parameters: Map[String, Any], options: Options, idx: Int, debug: Boolean)

Parsing context used internally by Parser.

Value parameters:
annotations

list of annotations in context

idx

index if current context inside a lift or option

line

string being parsed

offset

position in line

options

optional parsing features

parameters

list of input parameters

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def +=(inc: Int): Context
def getAnnotation[T <: StaticAnnotation : ClassTag]: Option[T]
def getAnnotationOrFail[T <: StaticAnnotation : ClassTag]: T
def getParameter[T : ClassTag](param: String): Option[T]
def getParameterOrFail[T : ClassTag](param: String): T
def withAnnotations(annotations: List[StaticAnnotation]): Context
def withIndex(idx: Int): Context
def withOptions(options: Options): Context

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product