TreeFromLineStreamBuilder
FinalYes
Helper class of TreeBuilder classes: This class gets a node with a LineStream - a node created from a sys_template 'constants' or 'setup' field, or created from a file import or a string. It then looks for conditions and imports in the attached LineStream and splits the node into child nodes if needed.
So while SysTemplateTreeBuilder is all about creating includes from sys_template records in correct order, this class takes care of conditions and @import within single source streams.
This class has no cache-implementation itself: The higher level class caches include trees of token streams.
Tags
Table of Contents
Methods
- __construct() : mixed
- buildTree() : void
Methods
__construct()
public
__construct(FileNameValidator $fileNameValidator) : mixed
Parameters
- $fileNameValidator : FileNameValidator
buildTree()
public
buildTree(IncludeInterface $node, string $type, TokenizerInterface $tokenizer) : void
Parameters
- $node : IncludeInterface
- $type : string
- $tokenizer : TokenizerInterface