|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TreeNode
A node in a tree. A node may have a parent and one or more children.
QueryNode,
SQLNode| Method Summary | |
|---|---|
TreeNode |
getChildAt(int index)
Returns the child node at the specified position in the tree. |
int |
getChildCount()
Returns the number of children of this TreeNode. |
int |
getIndex(TreeNode node)
Return the index of the child node passed as a parameter. |
TreeNode |
getParent()
Return the parent node. |
boolean |
isLeaf()
Returns true if this node is a "leaf". |
| Method Detail |
|---|
boolean isLeaf()
true if this node is a "leaf".
A leaf is a final node, that is to say, a node that has no child nodes.
true when this node is a leafTreeNode getChildAt(int index)
index - the index of the child to return (0 based)
java.lang.ArrayIndexOutOfBoundsException - if index is out of range
(index < 0 || index >= getChildCount())int getChildCount()
TreeNode getParent()
For any valid index, it is guaranteed that for a
TreeNode t,
t.getChildAt(index).getParent() == t.
TreeNode, or null when there is no parentint getIndex(TreeNode node)
node - the child node to look for
-1 when node is not a child of this node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||