public class DBASTModel.ASTNode extends DBTreeNode
| Modifier and Type | Field and Description |
|---|---|
int |
id |
boolean |
nil |
DBASTModel.ASTNode |
parentNode |
color, location, tokenallowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
DBASTModel.ASTNode(int id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(DBASTModel.ASTNode node)
Add a child
|
void |
becomeParent(DBASTModel.ASTNode node)
Replace the current parent node with another one
|
void |
detach()
Detach this node from its parent
|
void |
removeChild(DBASTModel.ASTNode node)
Remove a child
|
void |
replaceChild(DBASTModel.ASTNode oldNode,
DBASTModel.ASTNode newNode)
Replace a child with another one
|
String |
toString() |
findNodeWithToken, findNodeWithToken, getColor, getInfoString, getLocation, getToken, getTokenDisplayString, setColoradd, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObjectpublic int id
public boolean nil
public DBASTModel.ASTNode parentNode
public void addChild(DBASTModel.ASTNode node)
public void removeChild(DBASTModel.ASTNode node)
public void becomeParent(DBASTModel.ASTNode node)
public void replaceChild(DBASTModel.ASTNode oldNode, DBASTModel.ASTNode newNode)
public void detach()
public String toString()
toString in class DBTreeNodeCopyright © 2013. All rights reserved.