scala.util.parsing.combinator.PackratParsers

class PackratReader

[source: scala/util/parsing/combinator/PackratParsers.scala]

class PackratReader[+T](underlying : Reader[T])
extends Reader[T]
A specialized Reader class that wraps an underlying Reader and provides memoization of parse results.
Method Summary
def atEnd : Boolean
true iff there are no more elements in this reader
def first : T
Returns the first element of the reader
override def offset : Int
def pos : Position
The position of the first element in the reader
def rest : Reader[T]
Returns an abstract reader consisting of all elements except the first
override def source : java.lang.CharSequence
If this is a reader over character sequences, the underlying char sequence If not, throws a NoSuchMethodError exception.
Methods inherited from Reader
drop
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def source : java.lang.CharSequence
If this is a reader over character sequences, the underlying char sequence If not, throws a NoSuchMethodError exception.
Overrides
Reader.source

override def offset : Int
Overrides
Reader.offset

def first : T
Returns the first element of the reader
Overrides
Reader.first

def rest : Reader[T]
Returns an abstract reader consisting of all elements except the first
Returns
If atEnd is true, the result will be this'; otherwise, it's a Reader containing more elements.
Overrides
Reader.rest

def pos : Position
The position of the first element in the reader
Overrides
Reader.pos

def atEnd : Boolean
true iff there are no more elements in this reader
Overrides
Reader.atEnd