Copied!

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.

Cloneable Instantiable
Methods
public freeze () : static
 

Freezes stream.

  • return $this
public getNext () : Symfony\Component\CssSelector\Parser\Token
 

Returns next token.

  • throws InternalErrorException If there is no more token
public getNextIdentifier () : string
 

Returns next identifier token.

  • throws SyntaxErrorException If next token is not an identifier
public getNextIdentifierOrStar () : ? string
 

Returns next identifier or null if star delimiter token is found.

  • throws SyntaxErrorException If next token is not an identifier or a star delimiter
public getPeek () : Symfony\Component\CssSelector\Parser\Token
 

Returns peeked token.

public getUsed () : array
 

Returns used tokens.

public push ( Symfony\Component\CssSelector\Parser\Token $token ) : static
 

Pushes a token.

  • return $this
public skipWhitespace ()
 

Skips next whitespace if any.

Properties
private int $cursor
private Symfony\Component\CssSelector\Parser\Token $peeked
private bool $peeking
private array $tokens
private array $used
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration