‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface:
TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractTokenStream TYPO3\CMS\Core\TypoScript\Tokenizer\Token\ConstantAwareTokenStream TYPO3\CMS\Core\TypoScript\Tokenizer\Token\IdentifierTokenStream TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStream

Public Member Functions

 __toString ()
 
 append (TokenInterface $token)
 
 isEmpty ()
 
 reset ()
 
 getNext ()
 
 peekNext ()
 
TokenInterface[] getAll ()
 
 setAll (array $tokens)
 

Detailed Description

A generic stream of tokens used in single LineInterface lines.

The tokenizers create these streams for various lists of tokens, the generic implementation is class TokenStream. For lists of identifier tokens the special class TokenStreamIdentifier is created.

: Internal tokenizer structure.

Definition at line 29 of file TokenStreamInterface.php.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface::__toString ( )

◆ append()

◆ getAll()

TokenInterface [] TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface::getAll ( )

Only used internally when one Stream is transferred to another, in particular when a TokenStream is turned into TokenStreamConstantAware.

Returns
TokenInterface[]

Implemented in TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractTokenStream.

◆ getNext()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface::getNext ( )

◆ isEmpty()

◆ peekNext()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface::peekNext ( )

◆ reset()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface::reset ( )

Reset current pointer. Typically, call this before iterating with getNext().

Implemented in TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractTokenStream.

Referenced by TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor\parseNodeComment().

◆ setAll()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface::setAll ( array  $tokens)

Only used internally when one Stream is transferred to another, in particular when a TokenStream is turned into TokenStreamConstantAware.

Parameters
TokenInterface[]$tokens

Implemented in TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractTokenStream.