public new void write(XMLOutputStream stream) { libsbmlPINVOKE.ASTNode_write(swigCPtr, XMLOutputStream.getCPtr(stream)); if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); }