public void ReplaceBy(Node node) { if(parent_node != null) { parent_node.ReplaceChild(this, node); } }
internal override void RemoveChild(Node child) { if ( _sexp_.Contains(child) ) { _sexp_.Remove(child); return; } }
protected Node CloneNode(Node node) { if(node != null) { return (Node) node.Clone(); } return null; }
internal override void ReplaceChild(Node oldChild, Node newChild) { for ( int i = 0; i < _sexp_.Count; i++ ) { Node n = (Node)_sexp_[i]; if(n == oldChild) { if(newChild != null) { _sexp_[i] = newChild; oldChild.Parent(null); return; } _sexp_.RemoveAt(i); oldChild.Parent(null); return; } } }
internal override void ReplaceChild(Node oldChild, Node newChild) { if ( _t_word_ == oldChild ) { SetTWord ((TTWord) newChild); return; } }
public virtual Object GetIn(Node node) { if(inhash == null) { return null; } return inhash[node]; }
internal abstract void RemoveChild(Node child);
internal override void RemoveChild(Node child) { }
internal override void RemoveChild(Node child) { if ( _t_placeholder_ == child ) { _t_placeholder_ = null; return; } }
internal override void RemoveChild(Node child) { if ( _t_parenopen_ == child ) { _t_parenopen_ = null; return; } if ( _sexp_.Contains(child) ) { _sexp_.Remove(child); return; } }
public virtual void DefaultOut(Node node) { }
public virtual void DefaultIn(Node node) { }
public virtual void SetOut(Node node, Object outobj) { if(this.outhash == null) { this.outhash = new Hashtable(1); } if(outobj != null) { this.outhash[node] = outobj; } else { this.outhash.Remove(node); } }
public virtual void SetIn(Node node, Object inobj) { if(this.inhash == null) { this.inhash = new Hashtable(1); } if(inobj != null) { this.inhash[node] = inobj; } else { this.inhash.Remove(node); } }
public virtual Object GetOut(Node node) { if(outhash == null) { return null; } return outhash[node]; }
internal override void RemoveChild(Node child) { if(_base_ == child) { _base_ = null; return; } if(_eof_ == child) { _eof_ = null; return; } }
internal override void ReplaceChild(Node oldChild, Node newChild) { if(_base_ == oldChild) { SetPDocument((PDocument) newChild); return; } if(_eof_ == oldChild) { SetEOF((EOF) newChild); return; } }
internal override void ReplaceChild(Node oldChild, Node newChild) { if ( _t_placeholder_ == oldChild ) { SetTPlaceholder ((TTPlaceholder) newChild); return; } }
internal override void ReplaceChild(Node oldChild, Node newChild) { }
internal override void ReplaceChild(Node oldChild, Node newChild) { if ( _t_rational_ == oldChild ) { SetTRational ((TTRational) newChild); return; } }
internal void Parent(Node parent_node) { this.parent_node = parent_node; }
internal override void ReplaceChild(Node oldChild, Node newChild) { if ( _t_string_ == oldChild ) { SetTString ((TTString) newChild); return; } }
internal abstract void ReplaceChild(Node oldChild, Node newChild);
internal override void RemoveChild(Node child) { if ( _t_word_ == child ) { _t_word_ = null; return; } }
protected string ToString(Node node) { if(node != null) { return node.ToString(); } return ""; }
public virtual void DefaultCase(Node node) { }