/// <summary> /// accept a visitor. /// return the return value of the visitor's visit method /// </summary> public override object Accept(MathMLVisitor v, object args) { return(v.Visit(this, args)); }
/// <summary> /// Accept a visitor. Calls the Visitor's MathMLPlaceHolder Vist method /// </summary> public override object Accept(MathMLVisitor v, object args) { return v.Visit(this, args); }
object MathML.MathMLVisitor.Visit(MathMLTableCellElement e, object args) { MathMLVisitor v = this; return(v.Visit((MathMLPresentationContainer)e, args)); }
/// <summary> /// A way for a node to process a visitor. The visitor pattern allows the development /// of a wide variety of actions (rendering, compiling, etc...) to be applied to a /// node hierachy without adding code to the actuall MathMLElements, thus keeping the /// element hierarchy pure and conforming to the published specification. /// /// This is an extension to the w3c published specification. /// The descision to include this method was not taken lightly, as one of the goals /// of this probject is to implement the offcial w3c spec as closely as possible. /// </summary> public virtual object Accept(MathMLVisitor v, object args) { System.Diagnostics.Debug.WriteLine(string.Format("Warning, {0}.Accept() is not implemented", GetType().ToString())); return null; }
/// <summary> /// A way for a node to process a visitor. The visitor pattern allows the development /// of a wide variety of actions (rendering, compiling, etc...) to be applied to a /// node hierachy without adding code to the actuall MathMLElements, thus keeping the /// element hierarchy pure and conforming to the published specification. /// /// This is an extension to the w3c published specification. /// The descision to include this method was not taken lightly, as one of the goals /// of this probject is to implement the offcial w3c spec as closely as possible. /// </summary> public virtual object Accept(MathMLVisitor v, object args) { System.Diagnostics.Debug.WriteLine(string.Format("Warning, {0}.Accept() is not implemented", GetType().ToString())); return(null); }