FileParserInput

com.reactific.riddl.language.parsing.FileParserInput
case class FileParserInput(file: File) extends RiddlParserInput

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class ParserInput
trait IsReachable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(path: Path)

Concrete methods

override def isEmpty: Boolean

Attributes

Definition Classes
def origin: String

Inherited methods

def annotateErrorLine(index: At): String

Attributes

Inherited from:
RiddlParserInput
override def apply(index: Int): Char

Attributes

Definition Classes
RiddlParserInput -> ParserInput -> IsReachable
Inherited from:
RiddlParserInput

Attributes

Inherited from:
RiddlParserInput
override def dropBuffer(index: Int): Unit

Special method for Iterator mode.

Special method for Iterator mode. It drops the prefix of the internal buffer so that all the data strictly before becomes unavailable and index is the first valid element to access.

Attributes

Definition Classes
RiddlParserInput -> ParserInput
Inherited from:
RiddlParserInput
override def innerLength: Int

Attributes

Definition Classes
RiddlParserInput -> ParserInput
Inherited from:
RiddlParserInput
override def isReachable(index: Int): Boolean

Shows if we can access to the element at given index.

Shows if we can access to the element at given index.

Attributes

Definition Classes
RiddlParserInput -> ParserInput -> IsReachable
Inherited from:
RiddlParserInput
override def length: Int

Attributes

Definition Classes
RiddlParserInput -> ParserInput
Inherited from:
RiddlParserInput
final def location(index: Int): At

Attributes

Inherited from:
RiddlParserInput
final def nonEmpty: Boolean

Attributes

Inherited from:
RiddlParserInput
def prettyIndex(index: Int): String

Attributes

Inherited from:
RiddlParserInput

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def rangeOf(loc: At): (Int, Int)

Attributes

Inherited from:
RiddlParserInput
def rangeOf(index: Int): (Int, Int)

Attributes

Inherited from:
RiddlParserInput
override def slice(from: Int, until: Int): String

Attributes

Returns

Slice of internal data. For IndexedSeq mode it works as regular slice, if until overshoots the end of input, it just ignores it and behaves like until equals to the length of input. Same for Iterator mode, but it requests batches while the index of last retrieved element is less than until and if until is farther away than any element, it ignores this too.

Definition Classes
RiddlParserInput -> ParserInput
Inherited from:
RiddlParserInput

Concrete fields

lazy val data: String
val root: File

Inherited fields

val nl: String

Attributes

Inherited from:
RiddlParserInput