ModuleNode
extends Node
in package
Represents a module node.
Consider this class as being final. If you need to customize the behavior of the generated class, consider adding nodes to the following nodes: display_start, display_end, constructor_start, constructor_end, and class_end.
Tags
Table of Contents
- $attributes : mixed
- $lineno : mixed
- $nodes : mixed
- $tag : mixed
- $name : mixed
- $sourceContext : mixed
- __construct() : mixed
- __toString() : mixed
- compile() : mixed
- count() : int
- getAttribute() : mixed
- getIterator() : Traversable
- getNode() : Node
- getNodeTag() : mixed
- getSourceContext() : mixed
- getTemplateLine() : mixed
- getTemplateName() : mixed
- hasAttribute() : bool
- hasNode() : bool
- removeAttribute() : mixed
- removeNode() : mixed
- setAttribute() : mixed
- setIndex() : mixed
- setNode() : mixed
- setSourceContext() : mixed
- setTemplateName() : mixed
- compileClassFooter() : mixed
- compileClassHeader() : mixed
- compileConstructor() : mixed
- compileDebugInfo() : mixed
- compileDisplay() : mixed
- compileGetParent() : mixed
- compileGetSourceContext() : mixed
- compileGetTemplateName() : mixed
- compileIsTraitable() : mixed
- compileLoadTemplate() : mixed
- compileMacros() : mixed
- compileTemplate() : mixed
Properties
$attributes
protected
mixed
$attributes
$lineno
protected
mixed
$lineno
$nodes
protected
mixed
$nodes
$tag
protected
mixed
$tag
$name
private
mixed
$name
$sourceContext
private
mixed
$sourceContext
Methods
__construct()
public
__construct(Node $body, AbstractExpression|null $parent, Node $blocks, Node $macros, Node $traits, mixed $embeddedTemplates, Source $source) : mixed
Parameters
- $body : Node
- $parent : AbstractExpression|null
- $blocks : Node
- $macros : Node
- $traits : Node
- $embeddedTemplates : mixed
- $source : Source
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —compile()
public
compile(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —count()
public
count() : int
Return values
int —getAttribute()
public
getAttribute(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —getIterator()
public
getIterator() : Traversable
Return values
Traversable —getNode()
public
getNode(mixed $name) : Node
Parameters
- $name : mixed
Return values
Node —getNodeTag()
public
getNodeTag() : mixed
Return values
mixed —getSourceContext()
public
getSourceContext() : mixed
Return values
mixed —getTemplateLine()
public
getTemplateLine() : mixed
Return values
mixed —getTemplateName()
public
getTemplateName() : mixed
Return values
mixed —hasAttribute()
public
hasAttribute(mixed $name) : bool
Parameters
- $name : mixed
Return values
bool —hasNode()
public
hasNode(mixed $name) : bool
Parameters
- $name : mixed
Return values
bool —removeAttribute()
public
removeAttribute(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —removeNode()
public
removeNode(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —setAttribute()
public
setAttribute(string $name, mixed $value) : mixed
Parameters
- $name : string
- $value : mixed
Return values
mixed —setIndex()
public
setIndex(mixed $index) : mixed
Parameters
- $index : mixed
Return values
mixed —setNode()
public
setNode(mixed $name, self $node) : mixed
Parameters
- $name : mixed
- $node : self
Return values
mixed —setSourceContext()
public
setSourceContext(Source $source) : mixed
Parameters
- $source : Source
Return values
mixed —setTemplateName()
public
setTemplateName(mixed $name) : mixed
Parameters
- $name : mixed
Tags
Return values
mixed —compileClassFooter()
protected
compileClassFooter(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileClassHeader()
protected
compileClassHeader(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileConstructor()
protected
compileConstructor(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileDebugInfo()
protected
compileDebugInfo(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileDisplay()
protected
compileDisplay(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileGetParent()
protected
compileGetParent(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileGetSourceContext()
protected
compileGetSourceContext(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileGetTemplateName()
protected
compileGetTemplateName(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileIsTraitable()
protected
compileIsTraitable(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileLoadTemplate()
protected
compileLoadTemplate(Compiler $compiler, mixed $node, mixed $var) : mixed
Parameters
- $compiler : Compiler
- $node : mixed
- $var : mixed
Return values
mixed —compileMacros()
protected
compileMacros(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —compileTemplate()
protected
compileTemplate(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler