- <init>
Create a new TokenQueue.
- addFirst
Add a string to the start of the queue.
- chompTo
Pulls a string off the queue (like consumeTo), and then pulls off the matched
string (but does not r
- consume
Consumes the supplied sequence of the queue. If the queue does not start with
the supplied sequence,
- consumeTo
Pulls a string off the queue, up to but exclusive of the match sequence, or to
the queue running out
- consumeWhitespace
Pulls the next run of whitespace characters of the queue.
- isEmpty
Is the queue empty?
- matchChomp
Tests if the queue matches the sequence (as with match), and if they do, removes
the matched string
- matches
Tests if the next characters on the queue match the sequence. Case insensitive.
- matchesAny
Tests if the next characters match any of the sequences. Case insensitive.
- matchesWhitespace
Tests if queue starts with a whitespace character.
- consumeAttributeKey
Consume an attribute key off the queue (letter, digit, -, _, :")