Class Index | File Index

Classes


Class YNode


Defined in: YNode.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
YNode(value)
Method Summary
Method Attributes Method Name and Description
 
addChild(ynode)
 
addChildAt(ynode, index)
 
addChilds(ynodeList)
 
addNext(ynode)
add ynode after this one in his parent list.
 
addPrev(ynode)
add ynode before this one in his parent list.
 
exchange(ynode, index)
exchange node and childs.
 
find(Function, datas)
 
findAll(Function, datas)
 
 
 
 
 
 
 
hasIndex(index)
 
parse(Function, datas)
 
parseBA(FunctionBefore, FunctionAfter, datas)
 
parseChilds(Function, datas)
 
parseFromLeafs(Function, datas)
 
 
parseUp(Function, datas)
 
remove every node childs.
 
removeChild(ynode)
 
remove child at 'index'.
 
 
setValue(value)
 
substitute(ynode, index)
exchange node but keep replaced node childs.
 
swapChild(indexA, indexB)
Class Detail
YNode(value)
Parameters:
value
Method Detail
addChild(ynode)
Parameters:
ynode

addChildAt(ynode, index)
Parameters:
ynode
index

addChilds(ynodeList)
Parameters:
ynodeList

addNext(ynode)
add ynode after this one in his parent list.
Parameters:
{YNode} ynode
the new and next node.

addPrev(ynode)
add ynode before this one in his parent list.
Parameters:
{YNode} ynode
the new and previous node.

{YNode} exchange(ynode, index)
exchange node and childs.
Parameters:
{YNode} ynode
new node.
{int} index
replaced node index.
Returns:
{YNode} the replaced node and childs.

find(Function, datas)
Parameters:
Function
datas

findAll(Function, datas)
Parameters:
Function
datas

getChildIndex(ynode)
Parameters:
ynode

getDepth()

getIndex()

getPath()

getRoot()

getValue()

hasIndex(index)
Parameters:
index

parse(Function, datas)
Parameters:
Function
datas

parseBA(FunctionBefore, FunctionAfter, datas)
Parameters:
FunctionBefore
FunctionAfter
datas

parseChilds(Function, datas)
Parameters:
Function
datas

parseFromLeafs(Function, datas)
Parameters:
Function
datas

parseResultToNode(presult)
Parameters:
presult

parseUp(Function, datas)
Parameters:
Function
datas

{YNode[]} removeAll()
remove every node childs.
Returns:
{YNode[]} removed nodes list.

removeChild(ynode)
Parameters:
ynode

{YNode} removeChildAt(index)
remove child at 'index'.
Parameters:
{int} index
removed node index.
Returns:
{YNode} the removed node and childs.

removeMe()

setValue(value)
Parameters:
value

{YNode} substitute(ynode, index)
exchange node but keep replaced node childs.
Parameters:
{YNode} ynode
new node.
{int} index
replaced node index.
Returns:
{YNode} the replaced node with the new node childs.

swapChild(indexA, indexB)
Parameters:
indexA
indexB

Documentation generated by JsDoc Toolkit 2.4.0 on Sat Nov 16 2013 03:47:43 GMT+0100 (CET)