class Twig_TokenStream

Represents a token stream.

@package twig @author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_TokenStream

File

drupal/core/vendor/twig/twig/lib/Twig/TokenStream.php, line 19

View source

Members

Namesort descending Modifiers Type Description Overrides
Twig_TokenStream::$current protected property
Twig_TokenStream::$filename protected property
Twig_TokenStream::$tokens protected property
Twig_TokenStream::expect public function Tests a token and returns it or throws a syntax error.
Twig_TokenStream::getCurrent public function Gets the current token
Twig_TokenStream::getFilename public function Gets the filename associated with this stream
Twig_TokenStream::injectTokens public function
Twig_TokenStream::isEOF public function Checks if end of stream was reached
Twig_TokenStream::look public function Looks at the next token.
Twig_TokenStream::next public function Sets the pointer to the next token and returns the old one.
Twig_TokenStream::test public function Tests the current token
Twig_TokenStream::__construct public function Constructor.
Twig_TokenStream::__toString public function Returns a string representation of the token stream.