HexScanner class
Explicite hexadecimal scanner, used for %x or %X
- Inheritance
-
- Object
- Scanner
- Percent
- NumberScanner
- HexScanner
Constructors
- HexScanner.new({int width = -1, required bool ignore})
-
Generative constructor, forwards to super
const
Properties
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.
inherited
-
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.
inherited
-
scan(
CharGet chars, List matches) → bool -
Scans characters and adds matches to "matches".
Returns true if a match is found.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited