Class: Node
new Node
(parent, childrenArray)
Name |
Type |
Default |
Description |
parent |
Node
|
|
optional
|
childrenArray |
Array.<Node>
|
[]
|
optional
|
Methods
-
-
Name |
Type |
Description |
aNode |
Node
|
|
-
-
Name |
Type |
Description |
aNode |
Node
|
|
-
allChildren
()Array.<Node>
-
Returns:
Type |
Description |
Array.<Node>
|
|
-
-
Returns:
Type |
Description |
Array.<Node>
|
|
-
allParents
()Array.<Node>
-
Returns:
Type |
Description |
Array.<Node>
|
|
-
anyChild
(aPredicate)boolean
-
Name |
Type |
Description |
aPredicate |
function
|
|
Returns:
-
-
Returns:
-
forAllChildren
(aFunction)
-
Name |
Type |
Description |
aFunction |
function
|
|
-
init
(parent, childrenArray)
-
Name |
Type |
Default |
Description |
parent |
Node
|
|
optional
|
childrenArray |
Array.<Node>
|
[]
|
optional
|
-
parentThatIsA
(constructor)Node
-
Name |
Type |
Description |
constructor |
function
|
|
Returns:
-
parentThatIsAnyOf
(constructors)Node
-
Name |
Type |
Description |
constructors |
Array.<function()>
|
|
Returns:
-
-
Name |
Type |
Description |
aNode |
Node
|
|
-
-
Returns:
-
-
Returns:
Type |
Description |
Array.<Node>
|
|
-
-
Returns:
Example
'a Node[5]'