IdentifierFunctionLine extends AbstractLine
FinalYes
A line with a function assignment using the ":=" operator: "foo.bar := addToList(42)".
Contains $identifierTokenStream for the left side ("foo" and "bar" token), a single token for the function name ("addToList"), and an optional token for the value ("42"). Note the value token is optional since there are functions without values (eg. "uniqueList()").
Tags
Table of Contents
Properties
Methods
- getFunctionNameToken() : Token
- getFunctionValueTokenStream() : TokenStreamInterface
- getIdentifierTokenStream() : IdentifierTokenStream
- getTokenStream() : TokenStreamInterface
- setFunctionNameToken() : IdentifierFunctionLine
- setFunctionValueTokenStream() : IdentifierFunctionLine
- setIdentifierTokenStream() : IdentifierFunctionLine
- 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.
Properties
$tokenStream
protected
TokenStreamInterface
$tokenStream
Methods
getFunctionNameToken()
public
getFunctionNameToken() : Token
Return values
TokengetFunctionValueTokenStream()
public
getFunctionValueTokenStream() : TokenStreamInterface
Return values
TokenStreamInterfacegetIdentifierTokenStream()
public
getIdentifierTokenStream() : IdentifierTokenStream
Return values
IdentifierTokenStreamgetTokenStream()
public
getTokenStream() : TokenStreamInterface
Return values
TokenStreamInterfacesetFunctionNameToken()
public
setFunctionNameToken(Token $token) : IdentifierFunctionLine
Parameters
- $token : Token
Return values
IdentifierFunctionLinesetFunctionValueTokenStream()
public
setFunctionValueTokenStream(TokenStreamInterface $tokenStream) : IdentifierFunctionLine
Parameters
- $tokenStream : TokenStreamInterface
Return values
IdentifierFunctionLinesetIdentifierTokenStream()
public
setIdentifierTokenStream(IdentifierTokenStream $tokenStream) : IdentifierFunctionLine
Parameters
- $tokenStream : IdentifierTokenStream
Return values
IdentifierFunctionLinesetTokenStream()
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