コード例 #1
0
ファイル: DomDocument.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object importNode(global::org.w3c.dom.Node n1, bool n2){
//XMLVM_BEGIN_WRAPPER[gnu.xml.dom.DomDocument: org.w3c.dom.Node importNode(org.w3c.dom.Node, boolean)]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r11_o = null;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    _r11_o = this;
    _r12_o = n1;
    _r13.i = n2 ? 1 : 0;
    _r10.i = 0;
    _r1.i = ((global::org.w3c.dom.Node) _r12_o).getNodeType();
    switch (_r1.i) {
    case 1: goto label225;
    case 2: goto label181;
    case 3: goto label17;
    case 4: goto label39;
    case 5: goto label143;
    case 6: goto label95;
    case 7: goto label59;
    case 8: goto label49;
    case 11: goto label153;
    case 12: goto label73;
    }
    _r1_o = new global::gnu.xml.dom.DomDOMException();
    _r2.i = 9;
    _r3_o = null;
    ((global::gnu.xml.dom.DomDOMException) _r1_o).@this((short) _r2.i, (global::java.lang.String) _r3_o, (global::org.w3c.dom.Node) _r12_o, (int) _r10.i);
    throw new global::org.xmlvm._nExceptionAdapter((global::gnu.xml.dom.DomDOMException) _r1_o);
    label17:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNodeValue();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createTextNode((global::java.lang.String) _r1_o);
    _r2_o = _r1_o;
    label26:;
    _r1.i = ((_r12_o != null) && (_r12_o is global::gnu.xml.dom.DomNode)) ? 1 : 0;
    if (_r1.i == 0) goto label38;
    _r0_o = _r12_o;
    _r1_o = _r0_o;
    _r3.i = 2;
    ((global::gnu.xml.dom.DomNode) _r1_o).notifyUserDataHandlers((short) _r3.i, (global::org.w3c.dom.Node) _r12_o, (global::org.w3c.dom.Node) _r2_o);
    label38:;
    return (global::org.w3c.dom.Node) _r2_o;
    label39:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNodeValue();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createCDATASection((global::java.lang.String) _r1_o);
    _r2_o = _r1_o;
    goto label26;
    label49:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNodeValue();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createComment((global::java.lang.String) _r1_o);
    _r2_o = _r1_o;
    goto label26;
    label59:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNodeName();
    _r2_o = ((global::org.w3c.dom.Node) _r12_o).getNodeValue();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createProcessingInstruction((global::java.lang.String) _r1_o, (global::java.lang.String) _r2_o);
    _r2_o = _r1_o;
    goto label26;
    label73:;
    _r0_o = _r12_o;
    _r1_o = _r0_o;
    _r2_o = new global::gnu.xml.dom.DomNotation();
    _r3_o = ((global::org.w3c.dom.Notation) _r1_o).getNodeName();
    _r4_o = ((global::org.w3c.dom.Notation) _r1_o).getPublicId();
    _r1_o = ((global::org.w3c.dom.Notation) _r1_o).getSystemId();
    ((global::gnu.xml.dom.DomNotation) _r2_o).@this((global::gnu.xml.dom.DomDocument) _r11_o, (global::java.lang.String) _r3_o, (global::java.lang.String) _r4_o, (global::java.lang.String) _r1_o);
    goto label26;
    label95:;
    _r0_o = _r12_o;
    _r2_o = _r0_o;
    _r1_o = new global::gnu.xml.dom.DomEntity();
    _r3_o = ((global::org.w3c.dom.Entity) _r2_o).getNodeName();
    _r4_o = ((global::org.w3c.dom.Entity) _r2_o).getPublicId();
    _r5_o = ((global::org.w3c.dom.Entity) _r2_o).getSystemId();
    _r6_o = ((global::org.w3c.dom.Entity) _r2_o).getNotationName();
    _r2_o = _r11_o;
    ((global::gnu.xml.dom.DomEntity) _r1_o).@this((global::gnu.xml.dom.DomDocument) _r2_o, (global::java.lang.String) _r3_o, (global::java.lang.String) _r4_o, (global::java.lang.String) _r5_o, (global::java.lang.String) _r6_o);
    if (_r13.i == 0) goto label350;
    _r2_o = ((global::org.w3c.dom.Node) _r12_o).getFirstChild();
    label127:;
    if (_r2_o != null) goto label131;
    _r2_o = _r1_o;
    goto label26;
    label131:;
    _r3_o = ((global::gnu.xml.dom.DomDocument) _r11_o).importNode((global::org.w3c.dom.Node) _r2_o, 0!=_r13.i);
    ((global::org.w3c.dom.Node) _r1_o).appendChild((global::org.w3c.dom.Node) _r3_o);
    _r2_o = ((global::org.w3c.dom.Node) _r2_o).getNextSibling();
    goto label127;
    label143:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNodeName();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createEntityReference((global::java.lang.String) _r1_o);
    _r2_o = _r1_o;
    goto label26;
    label153:;
    _r1_o = new global::gnu.xml.dom.DomDocumentFragment();
    ((global::gnu.xml.dom.DomDocumentFragment) _r1_o).@this((global::gnu.xml.dom.DomDocument) _r11_o);
    if (_r13.i == 0) goto label347;
    _r2_o = ((global::org.w3c.dom.Node) _r12_o).getFirstChild();
    label164:;
    if (_r2_o != null) goto label169;
    _r2_o = _r1_o;
    goto label26;
    label169:;
    _r3_o = ((global::gnu.xml.dom.DomDocument) _r11_o).importNode((global::org.w3c.dom.Node) _r2_o, 0!=_r13.i);
    ((global::org.w3c.dom.Node) _r1_o).appendChild((global::org.w3c.dom.Node) _r3_o);
    _r2_o = ((global::org.w3c.dom.Node) _r2_o).getNextSibling();
    goto label164;
    label181:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNamespaceURI();
    if (_r1_o == null) goto label204;
    _r2_o = ((global::org.w3c.dom.Node) _r12_o).getNodeName();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createAttributeNS((global::java.lang.String) _r1_o, (global::java.lang.String) _r2_o);
    label195:;
    _r2_o = ((global::org.w3c.dom.Node) _r12_o).getFirstChild();
    label199:;
    if (_r2_o != null) goto label213;
    _r2_o = _r1_o;
    goto label26;
    label204:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNodeName();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createAttribute((global::java.lang.String) _r1_o);
    goto label195;
    label213:;
    _r3_o = ((global::gnu.xml.dom.DomDocument) _r11_o).importNode((global::org.w3c.dom.Node) _r2_o, 0!=_r10.i);
    ((global::org.w3c.dom.Node) _r1_o).appendChild((global::org.w3c.dom.Node) _r3_o);
    _r2_o = ((global::org.w3c.dom.Node) _r2_o).getNextSibling();
    goto label199;
    label225:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNamespaceURI();
    if (_r1_o == null) goto label266;
    _r2_o = ((global::org.w3c.dom.Node) _r12_o).getNodeName();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createElementNS((global::java.lang.String) _r1_o, (global::java.lang.String) _r2_o);
    _r3_o = _r1_o;
    label240:;
    _r4_o = ((global::org.w3c.dom.Node) _r12_o).getAttributes();
    _r5_o = ((global::org.w3c.dom.Node) _r3_o).getAttributes();
    _r6.i = ((global::org.w3c.dom.NamedNodeMap) _r4_o).getLength();
    _r7.i = _r10.i;
    label253:;
    if (_r7.i < _r6.i) goto label276;
    if (_r13.i == 0) goto label344;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getFirstChild();
    label261:;
    if (_r1_o != null) goto label331;
    _r2_o = _r3_o;
    goto label26;
    label266:;
    _r1_o = ((global::org.w3c.dom.Node) _r12_o).getNodeName();
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).createElement((global::java.lang.String) _r1_o);
    _r3_o = _r1_o;
    goto label240;
    label276:;
    _r1_o = ((global::org.w3c.dom.NamedNodeMap) _r4_o).item((int) _r7.i);
    _r2_o = ((global::org.w3c.dom.Attr) _r1_o).getNodeName();
    _r2_o = ((global::org.w3c.dom.NamedNodeMap) _r5_o).getNamedItem((global::java.lang.String) _r2_o);
    if (_r2_o == null) goto label321;
    _r8_o = ((global::org.w3c.dom.Attr) _r1_o).getNodeValue();
    _r9_o = ((global::org.w3c.dom.Attr) _r2_o).getNodeValue();
    _r9.i = ((global::java.lang.String) _r9_o).equals((global::java.lang.Object) _r8_o) ? 1 : 0;
    if (_r9.i == 0) goto label314;
    _r1.i = ((global::org.w3c.dom.Attr) _r1_o).getSpecified() ? 1 : 0;
    if (_r1.i == 0) goto label317;
    label314:;
    ((global::org.w3c.dom.Attr) _r2_o).setNodeValue((global::java.lang.String) _r8_o);
    label317:;
    _r1.i = _r7.i + 1;
    _r7.i = _r1.i;
    goto label253;
    label321:;
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r11_o).importNode((global::org.w3c.dom.Node) _r1_o, 0!=_r10.i);
    ((global::org.w3c.dom.NamedNodeMap) _r5_o).setNamedItem((global::org.w3c.dom.Node) _r1_o);
    goto label317;
    label331:;
    _r2.i = 1;
    _r2_o = ((global::gnu.xml.dom.DomDocument) _r11_o).importNode((global::org.w3c.dom.Node) _r1_o, 0!=_r2.i);
    ((global::org.w3c.dom.Node) _r3_o).appendChild((global::org.w3c.dom.Node) _r2_o);
    _r1_o = ((global::org.w3c.dom.Node) _r1_o).getNextSibling();
    goto label261;
    label344:;
    _r2_o = _r3_o;
    goto label26;
    label347:;
    _r2_o = _r1_o;
    goto label26;
    label350:;
    _r2_o = _r1_o;
    goto label26;
//XMLVM_END_WRAPPER[gnu.xml.dom.DomDocument: org.w3c.dom.Node importNode(org.w3c.dom.Node, boolean)]
}
コード例 #2
0
ファイル: DomDoctype.cs プロジェクト: shannah/CN1WindowsPort
public virtual global::System.Object declareNotation(global::java.lang.String n1, global::java.lang.String n2, global::java.lang.String n3){
//XMLVM_BEGIN_WRAPPER[gnu.xml.dom.DomDoctype: org.w3c.dom.Notation declareNotation(java.lang.String, java.lang.String, java.lang.String)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    _r2_o = this;
    _r3_o = n1;
    _r4_o = n2;
    _r5_o = n3;
    _r0.i = ((global::gnu.xml.dom.DomDoctype) _r2_o).isReadonly() ? 1 : 0;
    if (_r0.i == 0) goto label13;
    _r0_o = new global::gnu.xml.dom.DomDOMException();
    _r1.i = 7;
    ((global::gnu.xml.dom.DomDOMException) _r0_o).@this((short) _r1.i);
    throw new global::org.xmlvm._nExceptionAdapter((global::gnu.xml.dom.DomDOMException) _r0_o);
    label13:;
    ((global::gnu.xml.dom.DomDoctype) _r2_o).getNotations();
    _r0_o = ((global::gnu.xml.dom.DomDoctype) _r2_o)._fowner;
    if (_r0_o == null) goto label48;
    // Value=1.1
    _r0_o = new global::java.lang.String();
    ((global::java.lang.String)_r0_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)49)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 49))}));
    _r1_o = ((global::gnu.xml.dom.DomDoctype) _r2_o)._fowner;
    _r1_o = ((global::gnu.xml.dom.DomDocument) _r1_o).getXmlVersion();
    _r0.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r1_o) ? 1 : 0;
    label32:;
    global::gnu.xml.dom.DomDocument.checkName((global::java.lang.String) _r3_o, 0!=_r0.i);
    _r0_o = new global::gnu.xml.dom.DomNotation();
    _r1_o = ((global::gnu.xml.dom.DomDoctype) _r2_o)._fowner;
    ((global::gnu.xml.dom.DomNotation) _r0_o).@this((global::gnu.xml.dom.DomDocument) _r1_o, (global::java.lang.String) _r3_o, (global::java.lang.String) _r4_o, (global::java.lang.String) _r5_o);
    _r1_o = ((global::gnu.xml.dom.DomDoctype) _r2_o)._fnotations;
    ((global::gnu.xml.dom.DomNamedNodeMap) _r1_o).setNamedItem((global::org.w3c.dom.Node) _r0_o);
    return (global::org.w3c.dom.Notation) _r0_o;
    label48:;
    _r0.i = 0;
    goto label32;
//XMLVM_END_WRAPPER[gnu.xml.dom.DomDoctype: org.w3c.dom.Notation declareNotation(java.lang.String, java.lang.String, java.lang.String)]
}