LineInterface
The TypoScript tokenizers deliver streams of lines. This is the main line interface.
Each line is represented by a specific line type. For instance, "foo.bar {" creates an IdentifierBlockOpenLine and has the additional method getIdentifierTokenStream() to retrieve the "foo" and "bar" identifier tokens.
Tags
Table of Contents
Methods
- getTokenStream() : TokenStreamInterface
- setTokenStream() : static
- Set and get the token stream that represents the full line. This is mostly used in backend to for instance create a TypoScript string back from tokenized lines.
Methods
getTokenStream()
public
getTokenStream() : TokenStreamInterface
Return values
TokenStreamInterfacesetTokenStream()
Set and get the token stream that represents the full line. This is mostly used in backend to for instance create a TypoScript string back from tokenized lines.
public
setTokenStream(TokenStreamInterface $tokenStream) : static
Note: Only the LosslessTokenizer fills this 'full line' stream, LossyTokenizer does not for performance reasons.
Parameters
- $tokenStream : TokenStreamInterface