private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { s.defaultReadObject(); //fix parent for (Iterator it = _children.iterator(); it.hasNext();) ((LeafInfo) it.next()).setParentDirectly(this); } }
public boolean removeChild(NodeInfo child) { if (child != null && _children.remove(child)) { ((LeafInfo) child).setParentDirectly(null); //except root, all are LeafInfo fixEvaluatorRefDown(child, null); return true; } return false; }
public boolean removeChild(NodeInfo child) { if (child != null && _children.remove(child)) { ((LeafInfo) child).setParentDirectly(null); //except root, all are LeafInfo BranchInfo.fixEvaluatorRefDown(child, null); return true; } return false; }
public void appendChild(NodeInfo child) { NodeInfo oldp = child.getParent(); if (oldp != null) oldp.removeChild(child); _children.add(child); ((LeafInfo) child).setParentDirectly(this); //except root, all are LeafInfo fixEvaluatorRefDown(child, _evalr); }
public void appendChild(NodeInfo child) { NodeInfo oldp = child.getParent(); if (oldp != null) oldp.removeChild(child); _children.add(child); ((LeafInfo) child).setParentDirectly(this); //except root, all are LeafInfo BranchInfo.fixEvaluatorRefDown(child, getEvaluatorRef()); //Use getEvaluatorRef() to force _evalr being assigned }