Пример #1
0
public virtual global::System.Object createElementNS(global::java.lang.String n1, global::java.lang.String n2){
//XMLVM_BEGIN_WRAPPER[gnu.xml.dom.DomDocument: org.w3c.dom.Element createElementNS(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::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    _r5_o = this;
    _r6_o = n1;
    _r7_o = n2;
    _r4.i = 14;
    _r3.i = 0;
    // Value=http://www.w3.org/XML/1998/namespace
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)104)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 88)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 49)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101))}));
    _r0.i = ((global::gnu.xml.dom.DomDocument) _r5_o)._fcheckingCharacters ? 1 : 0;
    if (_r0.i == 0) goto label20;
    // 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.DomDocument) _r5_o)._fversion;
    _r0.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r1_o) ? 1 : 0;
    global::gnu.xml.dom.DomDocument.checkNCName((global::java.lang.String) _r7_o, 0!=_r0.i);
    label20:;
    // Value=
    _r0_o = new global::java.lang.String();
    ((global::java.lang.String)_r0_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {}));
    _r0.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r6_o) ? 1 : 0;
    if (_r0.i == 0) goto label133;
    _r0_o = null;
    label29:;
    // Value=xml:
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 58))}));
    _r1.i = ((global::java.lang.String) _r7_o).startsWith((global::java.lang.String) _r1_o) ? 1 : 0;
    if (_r1.i == 0) goto label71;
    if (_r0_o == null) goto label55;
    // Value=http://www.w3.org/XML/1998/namespace
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)104)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 88)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 49)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101))}));
    _r0.i = ((global::java.lang.String) _r2_o).equals((global::java.lang.Object) _r0_o) ? 1 : 0;
    if (_r0.i != 0) goto label55;
    _r0_o = new global::gnu.xml.dom.DomDOMException();
    // Value=xml namespace is always http://www.w3.org/XML/1998/namespace
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 88)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 49)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101))}));
    ((global::gnu.xml.dom.DomDOMException) _r0_o).@this((short) _r4.i, (global::java.lang.String) _r1_o, (global::org.w3c.dom.Node) _r5_o, (int) _r3.i);
    throw new global::org.xmlvm._nExceptionAdapter((global::gnu.xml.dom.DomDOMException) _r0_o);
    label55:;
    // Value=http://www.w3.org/XML/1998/namespace
    _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)104)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 88)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 49)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101))}));
    _r0_o = _r2_o;
    label58:;
    _r1_o = new global::gnu.xml.dom.DomElement();
    ((global::gnu.xml.dom.DomElement) _r1_o).@this((global::gnu.xml.dom.DomDocument) _r5_o, (global::java.lang.String) _r0_o, (global::java.lang.String) _r7_o);
    _r0.i = ((global::gnu.xml.dom.DomDocument) _r5_o)._fdefaultAttributes ? 1 : 0;
    if (_r0.i == 0) goto label70;
    ((global::gnu.xml.dom.DomDocument) _r5_o).setDefaultAttributes((global::org.w3c.dom.Element) _r1_o, (global::java.lang.String) _r7_o);
    label70:;
    return (global::org.w3c.dom.Element) _r1_o;
    label71:;
    // Value=xmlns
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 115))}));
    _r1.i = ((global::java.lang.String) _r1_o).equals((global::java.lang.Object) _r7_o) ? 1 : 0;
    if (_r1.i != 0) goto label87;
    // Value=xmlns:
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 58))}));
    _r1.i = ((global::java.lang.String) _r7_o).startsWith((global::java.lang.String) _r1_o) ? 1 : 0;
    if (_r1.i == 0) goto label95;
    label87:;
    _r0_o = new global::gnu.xml.dom.DomDOMException();
    // Value=xmlns is reserved
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 118)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100))}));
    ((global::gnu.xml.dom.DomDOMException) _r0_o).@this((short) _r4.i, (global::java.lang.String) _r1_o, (global::org.w3c.dom.Node) _r5_o, (int) _r3.i);
    throw new global::org.xmlvm._nExceptionAdapter((global::gnu.xml.dom.DomDOMException) _r0_o);
    label95:;
    if (_r0_o != null) goto label58;
    _r1.i = 58;
    _r1.i = ((global::java.lang.String) _r7_o).indexOf((int) _r1.i);
    _r2.i = -1;
    if (_r1.i == _r2.i) goto label58;
    _r0_o = new global::gnu.xml.dom.DomDOMException();
    _r1_o = new global::java.lang.StringBuilder();
    // Value=prefixed name '
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)112)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 39))}));
    ((global::java.lang.StringBuilder) _r1_o).@this((global::java.lang.String) _r2_o);
    _r1_o = ((global::java.lang.StringBuilder) _r1_o).append((global::java.lang.String) _r7_o);
    // Value=' needs a URI
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)39)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 82)), unchecked((char) unchecked((uint) 73))}));
    _r1_o = ((global::java.lang.StringBuilder) _r1_o).append((global::java.lang.String) _r2_o);
    _r1_o = ((global::java.lang.StringBuilder) _r1_o).toString();
    ((global::gnu.xml.dom.DomDOMException) _r0_o).@this((short) _r4.i, (global::java.lang.String) _r1_o, (global::org.w3c.dom.Node) _r5_o, (int) _r3.i);
    throw new global::org.xmlvm._nExceptionAdapter((global::gnu.xml.dom.DomDOMException) _r0_o);
    label133:;
    _r0_o = _r6_o;
    goto label29;
//XMLVM_END_WRAPPER[gnu.xml.dom.DomDocument: org.w3c.dom.Element createElementNS(java.lang.String, java.lang.String)]
}
Пример #2
0
public virtual global::System.Object createElement(global::java.lang.String n1){
//XMLVM_BEGIN_WRAPPER[gnu.xml.dom.DomDocument: org.w3c.dom.Element createElement(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;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    _r6_o = this;
    _r7_o = n1;
    _r2_o = null;
    _r0.i = ((global::gnu.xml.dom.DomDocument) _r6_o)._fcheckingCharacters ? 1 : 0;
    if (_r0.i == 0) goto label16;
    // 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.DomDocument) _r6_o)._fversion;
    _r0.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r1_o) ? 1 : 0;
    global::gnu.xml.dom.DomDocument.checkName((global::java.lang.String) _r7_o, 0!=_r0.i);
    label16:;
    // Value=xml:
    _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)120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 58))}));
    _r0.i = ((global::java.lang.String) _r7_o).startsWith((global::java.lang.String) _r0_o) ? 1 : 0;
    if (_r0.i == 0) goto label36;
    _r0_o = ((global::gnu.xml.dom.DomDocument) _r6_o).createElementNS((global::java.lang.String) _r2_o, (global::java.lang.String) _r7_o);
    label28:;
    _r1.i = ((global::gnu.xml.dom.DomDocument) _r6_o)._fdefaultAttributes ? 1 : 0;
    if (_r1.i == 0) goto label35;
    ((global::gnu.xml.dom.DomDocument) _r6_o).setDefaultAttributes((global::org.w3c.dom.Element) _r0_o, (global::java.lang.String) _r7_o);
    label35:;
    return (global::org.w3c.dom.Element) _r0_o;
    label36:;
    _r0_o = new global::gnu.xml.dom.DomElement();
    _r1_o = _r6_o;
    _r3_o = _r7_o;
    _r4_o = _r2_o;
    _r5_o = _r2_o;
    ((global::gnu.xml.dom.DomElement) _r0_o).@this((global::gnu.xml.dom.DomDocument) _r1_o, (global::java.lang.String) _r2_o, (global::java.lang.String) _r3_o, (global::java.lang.String) _r4_o, (global::java.lang.String) _r5_o);
    goto label28;
//XMLVM_END_WRAPPER[gnu.xml.dom.DomDocument: org.w3c.dom.Element createElement(java.lang.String)]
}