ChildrenAccessor
in package
implements
SubNodeAccessor
FinalYes
The default field: the ordinary children of a CompoundNode.
Table of Contents
Interfaces
- SubNodeAccessor
- Describes one edge type of the node tree: where child nodes of an owner are stored, and how a child is replaced or removed. Nodes are immutable, so the modifying methods return the new owner.
Methods
- items() : Node[]
- removeAt() : Node
- replaceAt() : Node
- compound() : CompoundNode<string|int, Node>
Methods
items()
public
items(Node $owner) : Node[]
Parameters
- $owner : Node
Return values
Node[]removeAt()
public
removeAt(Node $owner, int|string|null $key) : Node
Parameters
- $owner : Node
- $key : int|string|null
Return values
NodereplaceAt()
public
replaceAt(Node $owner, int|string|null $key, Node $node) : Node
Parameters
Return values
Nodecompound()
private
compound(Node $owner, int|string|null $key) : CompoundNode<string|int, Node>
Parameters
- $owner : Node
- $key : int|string|null