DocumentNodeTraverser
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- traverse() : Node|null
- traverseForTransformer() : void
Properties
$nodeTransformerFactory read-only
private
NodeTransformerFactory
$nodeTransformerFactory
$priority read-only
private
int
$priority
Methods
__construct()
public
__construct(NodeTransformerFactory $nodeTransformerFactory, int $priority) : mixed
Parameters
- $nodeTransformerFactory : NodeTransformerFactory
- $priority : int
traverse()
public
traverse(DocumentNode $node, CompilerContext $compilerContext) : Node|null
Parameters
- $node : DocumentNode
- $compilerContext : CompilerContext
Return values
Node|nulltraverseForTransformer()
private
traverseForTransformer(NodeTransformer<string|int, Node> $transformer, TreeNode<string|int, Node>|TreeNode<string|int, DocumentNode> $shadowNode, CompilerContext $compilerContext) : void
Parameters
- $transformer : NodeTransformer<string|int, Node>
- $shadowNode : TreeNode<string|int, Node>|TreeNode<string|int, DocumentNode>
-
return TNode|null
- $compilerContext : CompilerContext