A look-ahead buffer wrapping a stream
no subtypes hierarchy
Initializer |
LookAhead(Iterator<T>&Positioned stream, Integer? lookAhead = 1) Parameters:
|
Attributes | |
column | Source Codeshared actual Integer column The column number within the current line. Refines Positioned.column |
line | Source Codeshared actual Integer line The line number within the input. Refines Positioned.line |
position | Source Codeshared actual Integer position The position (in characters) within the input. Refines Positioned.position |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Positioned |
Methods | |
next | Source Codeshared actual T|Finished next() The next element, or Repeated invocations of If an invocation of An iterator for a nonfinite stream may never produce
the value An iterator for a nonempty stream must produce at least
one value of type Refines Iterator.next |
peek | Source Codeshared T|Finished peek(Integer n = 1) Get the nth element ahead Parameters:
|
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Iterator<Element> |