Class YNode
Defined in: YNode.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YNode(value)
|
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)
|
|
getChildIndex(ynode)
|
|
getDepth()
|
|
getIndex()
|
|
getPath()
|
|
getRoot()
|
|
getValue()
|
|
hasIndex(index)
|
|
parse(Function, datas)
|
|
parseBA(FunctionBefore, FunctionAfter, datas)
|
|
parseChilds(Function, datas)
|
|
parseFromLeafs(Function, datas)
|
|
parseResultToNode(presult)
|
|
parseUp(Function, datas)
|
|
remove every node childs.
|
|
removeChild(ynode)
|
|
removeChildAt(index)
remove child at 'index'.
|
|
removeMe()
|
|
setValue(value)
|
|
substitute(ynode, index)
exchange node but keep replaced node childs.
|
|
swapChild(indexA, indexB)
|
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