Input

play.twirl.parser.TwirlParser.Input
case class Input()

Attributes

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

Members list

Value members

Concrete methods

def advance(): Unit

Advance input by one character

Advance input by one character

Attributes

def advance(increment: Int): Unit

Advance input by increment number of characters

Advance input by increment number of characters

Attributes

def apply(): Char

Peek at the current input. Does not check for EOF.

Peek at the current input. Does not check for EOF.

Attributes

def apply(length: Int): String

Peek length characters ahead. Does not check for EOF.

Peek length characters ahead. Does not check for EOF.

Attributes

Returns

string from current offset upto current offset + length

def atEnd(): Boolean
def isEOF: Boolean
def isPastEOF(len: Int): Boolean
def matches(str: String): Boolean

Equivalent to input(str.length) == str. Does not check for EOF.

Equivalent to input(str.length) == str. Does not check for EOF.

Attributes

def offset(): Int
def pos(): OffsetPosition
def regress(decrement: Int): Unit

Backtrack by decrement numner of characters

Backtrack by decrement numner of characters

Attributes

def regressTo(offset: Int): Unit

Backtrack to a known offset

Backtrack to a known offset

Attributes

def reset(source: String): Unit

Reset the input to have the given contents

Reset the input to have the given contents

Attributes

def source(): String

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val regressionStatistics: HashMap[String, (Int, Int)]