class TokenStream
CSS selector token stream.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.
Methods
TokenStream | push(Token $token) Pushes a token. | |
TokenStream | freeze() Freezes stream. | |
Token | getNext() Returns next token. | |
Token | getPeek() Returns peeked token. | |
Token[] | getUsed() Returns used tokens. | |
string | getNextIdentifier() Returns nex identifier token. | |
null|string | getNextIdentifierOrStar() Returns nex identifier or star delimiter token. | |
skipWhitespace() Skips next whitespace if any. |
Details
TokenStream push(Token $token)
Pushes a token.
TokenStream freeze()
Freezes stream.
Token getNext()
Returns next token.
Token getPeek()
Returns peeked token.
Token[] getUsed()
Returns used tokens.
string getNextIdentifier()
Returns nex identifier token.
null|string getNextIdentifierOrStar()
Returns nex identifier or star delimiter token.
skipWhitespace()
Skips next whitespace if any.
Please login to continue.