IScanner class abstract
Defines scanner that can read and unread characters and count lines. This scanner is used by tokenizers to process input streams.
- Implementers
Constructors
- IScanner()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
column(
) → int - Gets the column in the current line Returns The column in the current line in the stream
-
line(
) → int - Gets the current line number Returns The current line number in the stream
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
peek(
) → int - Returns the character from the top of the stream without moving the stream pointer. Returns A character from the top of the stream or -1 if stream is empty.
-
peekColumn(
) → int - Gets the next character column number Returns The next character column number in the stream
-
peekLine(
) → int - Gets the next character line number Returns The next character line number in the stream
-
read(
) → int - Reads character from the top of the stream. Returns A read character or -1 if stream processed to the end.
-
reset(
) → void - Resets scanner to the initial position
-
toString(
) → String -
A string representation of this object.
inherited
-
unread(
) → void - Puts the one character back into the stream stream.
-
unreadMany(
int count) → void - Pushes the specified number of characters to the top of the stream.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited