NumberScanner class abstract

Base class for all number scanners

Inheritance
Implementers

Constructors

NumberScanner.new({int width = -1, required bool ignore})
Creates a number scanner with the given maximum amount of digits
const

Properties

hashCode int
The hash code for this object.
no setterinherited
ignore bool
Should be ignored in resulting matches
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
The maximum amount of characters to scan
finalinherited

Methods

addMatch(List matches, Object value) → void
Adds a match to the list of matches. The type of match ("value") depends on the respective scanner.
inherited
negative(CharGet chars) bool
Scans the sign of the value. Returns "true" if negative.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
number(CharGet chars, int base) int?
Scans a number and returns its value or "null" if no number is scanned.
scan(CharGet chars, List matches) bool
Scans characters and adds matches to "matches". Returns true if a match is found.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited