Esempio n. 1
0
private global::System.Object readExternalIds(bool n1, bool n2){
//XMLVM_BEGIN_WRAPPER[gnu.xml.aelfred2.XmlParser: gnu.xml.aelfred2.XmlParser$ExternalIdentifiers readExternalIds(boolean, 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::org.xmlvm._nElement _r5;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::org.xmlvm._nElement _r8;
    _r6_o = this;
    _r7.i = n1 ? 1 : 0;
    _r8.i = n2 ? 1 : 0;
    _r5.i = -1;
    _r0_o = new global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers();
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o).@this();
    _r1.i = 112;
    // Value=PUBLIC
    _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)80)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 66)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 73)), unchecked((char) unchecked((uint) 67))}));
    _r2.i = ((global::gnu.xml.aelfred2.XmlParser) _r6_o).tryRead((global::java.lang.String) _r2_o) ? 1 : 0;
    if (_r2.i == 0) goto label203;
    ((global::gnu.xml.aelfred2.XmlParser) _r6_o).requireWhitespace();
    _r2.i = _r1.i | 260;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r6_o).readLiteral((int) _r2.i);
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fpublicId = (global::java.lang.String) _r2_o;
    if (_r7.i == 0) goto label137;
    ((global::gnu.xml.aelfred2.XmlParser) _r6_o).skipWhitespace();
    _r2.i = ((global::gnu.xml.aelfred2.XmlParser) _r6_o).readCh();
    ((global::gnu.xml.aelfred2.XmlParser) _r6_o).unread((char) _r2.i);
    _r3.i = 34;
    if (_r2.i == _r3.i) goto label47;
    _r3.i = 39;
    if (_r2.i != _r3.i) goto label53;
    label47:;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r6_o).readLiteral((int) _r1.i);
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fsystemId = (global::java.lang.String) _r1_o;
    label53:;
    _r1.i = 0;
    label54:;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fpublicId;
    _r2.i = ((global::java.lang.String) _r2_o).length();
    if (_r1.i < _r2.i) goto label147;
    label62:;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fsystemId;
    if (_r1_o == null) goto label136;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fsystemId;
    _r2.i = 35;
    _r1.i = ((global::java.lang.String) _r1_o).indexOf((int) _r2.i);
    if (_r1.i == _r5.i) goto label98;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r6_o)._fhandler;
    _r2_o = new global::java.lang.StringBuilder();
    // Value=SYSTEM id has a URI fragment: 
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)83)), unchecked((char) unchecked((uint) 89)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 84)), unchecked((char) unchecked((uint) 69)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), 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)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 32))}));
    ((global::java.lang.StringBuilder) _r2_o).@this((global::java.lang.String) _r3_o);
    _r3_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fsystemId;
    _r2_o = ((global::java.lang.StringBuilder) _r2_o).append((global::java.lang.String) _r3_o);
    _r2_o = ((global::java.lang.StringBuilder) _r2_o).toString();
    ((global::gnu.xml.aelfred2.SAXDriver) _r1_o).verror((global::java.lang.String) _r2_o);
    label98:;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r6_o)._fhandler;
    _r1_o = ((global::gnu.xml.aelfred2.SAXDriver) _r1_o).getSystemId();
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fbaseUri = (global::java.lang.String) _r1_o;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fbaseUri;
    if (_r1_o != null) goto label136;
    _r1.i = global::gnu.xml.aelfred2.XmlParser._furiWarnings ? 1 : 0;
    if (_r1.i == 0) goto label136;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r6_o)._fhandler;
    _r2_o = new global::java.lang.StringBuilder();
    // Value=No base URI; hope URI is absolute: 
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)78)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 82)), unchecked((char) unchecked((uint) 73)), unchecked((char) unchecked((uint) 59)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 82)), unchecked((char) unchecked((uint) 73)), 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) 98)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 32))}));
    ((global::java.lang.StringBuilder) _r2_o).@this((global::java.lang.String) _r3_o);
    _r3_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fsystemId;
    _r2_o = ((global::java.lang.StringBuilder) _r2_o).append((global::java.lang.String) _r3_o);
    _r2_o = ((global::java.lang.StringBuilder) _r2_o).toString();
    ((global::gnu.xml.aelfred2.SAXDriver) _r1_o).warn((global::java.lang.String) _r2_o);
    label136:;
    return (global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o;
    label137:;
    ((global::gnu.xml.aelfred2.XmlParser) _r6_o).requireWhitespace();
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r6_o).readLiteral((int) _r1.i);
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fsystemId = (global::java.lang.String) _r1_o;
    goto label53;
    label147:;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fpublicId;
    _r2.i = ((global::java.lang.String) _r2_o).charAt((int) _r1.i);
    _r3.i = 97;
    if (_r2.i < _r3.i) goto label164;
    _r3.i = 122;
    if (_r2.i > _r3.i) goto label164;
    label161:;
    _r1.i = _r1.i + 1;
    goto label54;
    label164:;
    _r3.i = 65;
    if (_r2.i < _r3.i) goto label172;
    _r3.i = 90;
    if (_r2.i <= _r3.i) goto label161;
    label172:;
    // Value= \015\0120123456789-' ()+,./:=?;!*#@$_%
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)32)), unchecked((char) unchecked((uint) 13)), unchecked((char) unchecked((uint) 10)), unchecked((char) unchecked((uint) 48)), unchecked((char) unchecked((uint) 49)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 52)), unchecked((char) unchecked((uint) 53)), unchecked((char) unchecked((uint) 54)), unchecked((char) unchecked((uint) 55)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 39)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 40)), unchecked((char) unchecked((uint) 41)), unchecked((char) unchecked((uint) 43)), unchecked((char) unchecked((uint) 44)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 61)), unchecked((char) unchecked((uint) 63)), unchecked((char) unchecked((uint) 59)), unchecked((char) unchecked((uint) 33)), unchecked((char) unchecked((uint) 42)), unchecked((char) unchecked((uint) 35)), unchecked((char) unchecked((uint) 64)), unchecked((char) unchecked((uint) 36)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 37))}));
    _r3.i = ((global::java.lang.String) _r3_o).indexOf((int) _r2.i);
    if (_r3.i != _r5.i) goto label161;
    _r3_o = new global::java.lang.StringBuilder();
    // Value=illegal PUBLIC id character U+
    _r4_o = new global::java.lang.String();
    ((global::java.lang.String)_r4_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 80)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 66)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 73)), unchecked((char) unchecked((uint) 67)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 43))}));
    ((global::java.lang.StringBuilder) _r3_o).@this((global::java.lang.String) _r4_o);
    _r2_o = global::java.lang.Integer.toHexString((int) _r2.i);
    _r2_o = ((global::java.lang.StringBuilder) _r3_o).append((global::java.lang.String) _r2_o);
    _r2_o = ((global::java.lang.StringBuilder) _r2_o).toString();
    ((global::gnu.xml.aelfred2.XmlParser) _r6_o).error((global::java.lang.String) _r2_o);
    goto label161;
    label203:;
    // Value=SYSTEM
    _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)83)), unchecked((char) unchecked((uint) 89)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 84)), unchecked((char) unchecked((uint) 69)), unchecked((char) unchecked((uint) 77))}));
    _r2.i = ((global::gnu.xml.aelfred2.XmlParser) _r6_o).tryRead((global::java.lang.String) _r2_o) ? 1 : 0;
    if (_r2.i == 0) goto label222;
    ((global::gnu.xml.aelfred2.XmlParser) _r6_o).requireWhitespace();
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r6_o).readLiteral((int) _r1.i);
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r0_o)._fsystemId = (global::java.lang.String) _r1_o;
    goto label62;
    label222:;
    if (_r8.i != 0) goto label62;
    // Value=missing SYSTEM or PUBLIC keyword
    _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)109)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 89)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 84)), unchecked((char) unchecked((uint) 69)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 80)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 66)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 73)), unchecked((char) unchecked((uint) 67)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 107)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 100))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r6_o).error((global::java.lang.String) _r1_o);
    goto label62;
//XMLVM_END_WRAPPER[gnu.xml.aelfred2.XmlParser: gnu.xml.aelfred2.XmlParser$ExternalIdentifiers readExternalIds(boolean, boolean)]
}
Esempio n. 2
0
private void parseElement(bool n1){
//XMLVM_BEGIN_WRAPPER[gnu.xml.aelfred2.XmlParser: void parseElement(boolean)]
    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::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r9_o = null;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    _r12_o = this;
    _r13.i = n1 ? 1 : 0;
    _r6_o = null;
    _r11.i = 62;
    _r1.i = 1;
    _r7.i = 0;
    _r8.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fcurrentElementContent;
    _r9_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fcurrentElement;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._ftagAttributePos = _r7.i;
    _r10_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).readNmtoken(0!=_r1.i);
    if (_r13.i == 0) goto label114;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    _r2_o = ((global::gnu.xml.aelfred2.SAXDriver) _r2_o).getSystemId();
    _r0_o = ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).getExternalSubset((global::java.lang.String) _r10_o, (global::java.lang.String) _r2_o);
    if (_r0_o == null) goto label114;
    _r4_o = ((global::org.xml.sax.InputSource) _r0_o).getPublicId();
    _r5_o = ((global::org.xml.sax.InputSource) _r0_o).getSystemId();
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    // Value=modifying document by adding DTD
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)109)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 68)), unchecked((char) unchecked((uint) 84)), unchecked((char) unchecked((uint) 68))}));
    ((global::gnu.xml.aelfred2.SAXDriver) _r2_o).warn((global::java.lang.String) _r3_o);
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r2_o).doctypeDecl((global::java.lang.String) _r10_o, (global::java.lang.String) _r4_o, (global::java.lang.String) _r5_o);
    // Value=>
    _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)62))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).pushString((global::java.lang.String) _r6_o, (global::java.lang.String) _r2_o);
    // Value=[dtd]
    _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)91)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 93))}));
    _r3_o = new global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers();
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o).@this((global::java.lang.String) _r4_o, (global::java.lang.String) _r5_o, (global::java.lang.String) _r6_o);
    _r4_o = ((global::org.xml.sax.InputSource) _r0_o).getCharacterStream();
    _r5_o = ((global::org.xml.sax.InputSource) _r0_o).getByteStream();
    _r6_o = ((global::org.xml.sax.InputSource) _r0_o).getEncoding();
    _r0_o = _r12_o;
    ((global::gnu.xml.aelfred2.XmlParser) _r0_o).pushURL(0!=_r1.i, (global::java.lang.String) _r2_o, (global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o, (global::java.io.Reader) _r4_o, (global::java.io.InputStream) _r5_o, (global::java.lang.String) _r6_o, 0!=_r7.i);
    label79:;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fexpandPE = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fdoReport = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).skipWhitespace();
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fexpandPE = 0!=_r7.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fdoReport = 0!=_r7.i;
    _r0.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).tryRead((char) _r11.i) ? 1 : 0;
    if (_r0.i == 0) goto label164;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._finputStack;
    _r0.i = ((global::java.util.LinkedList) _r0_o).size();
    if (_r0.i == _r1.i) goto label109;
    // Value=external subset has unmatched '>'
    _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)101)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 39)), unchecked((char) unchecked((uint) 62)), unchecked((char) unchecked((uint) 39))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).error((global::java.lang.String) _r0_o);
    label109:;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).endDoctype();
    label114:;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fcurrentElement = (global::java.lang.String) _r10_o;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._felementInfo;
    _r0_o = ((global::java.util.HashMap) _r0_o).get((global::java.lang.Object) _r10_o);
    _r1.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).getContentType((global::gnu.xml.aelfred2.XmlParser_2ElementDecl) _r0_o, (int) _r1.i);
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fcurrentElementContent = _r1.i;
    _r1.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).tryWhitespace() ? 1 : 0;
    _r2.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).readCh();
    label138:;
    _r3.i = 47;
    if (_r2.i == _r3.i) goto label144;
    if (_r2.i != _r11.i) goto label172;
    label144:;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).declaredAttributes((global::gnu.xml.aelfred2.XmlParser_2ElementDecl) _r0_o);
    if (_r1_o == null) goto label156;
    label150:;
    _r0.i = ((global::java.util.Iterator) _r1_o).hasNext() ? 1 : 0;
    if (_r0.i != 0) goto label194;
    label156:;
    switch (_r2.i) {
    case 47: goto label235;
    case 62: goto label226;
    }
    label159:;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fcurrentElement = (global::java.lang.String) _r9_o;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fcurrentElementContent = _r8.i;
    return;
    label164:;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fexpandPE = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).parseMarkupdecl();
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fexpandPE = 0!=_r7.i;
    goto label79;
    label172:;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).unread((char) _r2.i);
    if (_r1.i != 0) goto label182;
    // Value=need whitespace between attributes
    _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)110)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 116)), 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) 98)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).error((global::java.lang.String) _r1_o);
    label182:;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).parseAttribute((global::java.lang.String) _r10_o);
    _r1.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).tryWhitespace() ? 1 : 0;
    _r2.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).readCh();
    goto label138;
    label194:;
    _r0_o = ((global::java.util.Iterator) _r1_o).next();
    _r3.i = _r7.i;
    label201:;
    _r4.i = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._ftagAttributePos;
    if (_r3.i < _r4.i) goto label217;
    _r3_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o).getAttributeDefaultValue((global::java.lang.String) _r10_o, (global::java.lang.String) _r0_o);
    if (_r3_o == null) goto label150;
    _r4_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r4_o).attribute((global::java.lang.String) _r0_o, (global::java.lang.String) _r3_o, 0!=_r7.i);
    goto label150;
    label217:;
    _r4_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._ftagAttributes;
    _r4_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r3.i];
    if (_r4_o == _r0_o) goto label150;
    _r3.i = _r3.i + 1;
    goto label201;
    label226:;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).startElement((global::java.lang.String) _r10_o);
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).parseContent();
    goto label159;
    label235:;
    ((global::gnu.xml.aelfred2.XmlParser) _r12_o).require((char) _r11.i);
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).startElement((global::java.lang.String) _r10_o);
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r12_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).endElement((global::java.lang.String) _r10_o);
    goto label159;
//XMLVM_END_WRAPPER[gnu.xml.aelfred2.XmlParser: void parseElement(boolean)]
}
Esempio n. 3
0
public virtual void doParse(global::java.lang.String n1, global::java.lang.String n2, global::java.io.Reader n3, global::java.io.InputStream n4, global::java.lang.String n5){
//XMLVM_BEGIN_WRAPPER[gnu.xml.aelfred2.XmlParser: void doParse(java.lang.String, java.lang.String, java.io.Reader, java.io.InputStream, java.lang.String)]
    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::org.xmlvm._nElement _r7;
    global::System.Object _r8_o = null;
    global::System.Object _r9_o = null;
    global::System.Object _r10_o = null;
    global::System.Object _r11_o = null;
    global::System.Object _r12_o = null;
    global::System.Object _r13_o = null;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r9_o = this;
    _r10_o = n1;
    _r11_o = n2;
    _r12_o = n3;
    _r13_o = n4;
    _r14_o = n5;
    _r8_o = null;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fhandler;
    if (_r0_o != null) goto label13;
    _r0_o = new global::java.lang.IllegalStateException();
    // Value=no callback handler
    _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)110)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 107)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114))}));
    ((global::java.lang.IllegalStateException) _r0_o).@this((global::java.lang.String) _r1_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.IllegalStateException) _r0_o);
    label13:;
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).initializeVariables();
    // Value=amp
    _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)97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 112))}));
    // Value=&#38;
    _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)38)), unchecked((char) unchecked((uint) 35)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 59))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).setInternalEntity((global::java.lang.String) _r0_o, (global::java.lang.String) _r1_o);
    // Value=lt
    _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)108)), unchecked((char) unchecked((uint) 116))}));
    // Value=&#60;
    _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)38)), unchecked((char) unchecked((uint) 35)), unchecked((char) unchecked((uint) 54)), unchecked((char) unchecked((uint) 48)), unchecked((char) unchecked((uint) 59))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).setInternalEntity((global::java.lang.String) _r0_o, (global::java.lang.String) _r1_o);
    // Value=gt
    _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)103)), unchecked((char) unchecked((uint) 116))}));
    // Value=&#62;
    _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)38)), unchecked((char) unchecked((uint) 35)), unchecked((char) unchecked((uint) 54)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 59))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).setInternalEntity((global::java.lang.String) _r0_o, (global::java.lang.String) _r1_o);
    // Value=apos
    _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)97)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 115))}));
    // Value=&#39;
    _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)38)), unchecked((char) unchecked((uint) 35)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 59))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).setInternalEntity((global::java.lang.String) _r0_o, (global::java.lang.String) _r1_o);
    // Value=quot
    _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)113)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 116))}));
    // Value=&#34;
    _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)38)), unchecked((char) unchecked((uint) 35)), unchecked((char) unchecked((uint) 51)), unchecked((char) unchecked((uint) 52)), unchecked((char) unchecked((uint) 59))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).setInternalEntity((global::java.lang.String) _r0_o, (global::java.lang.String) _r1_o);
    try {
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).startDocument();
    _r1.i = 0;
    // Value=[document]
    _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)91)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 93))}));
    _r3_o = new global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers();
    _r0_o = null;
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o).@this((global::java.lang.String) _r11_o, (global::java.lang.String) _r10_o, (global::java.lang.String) _r0_o);
    _r7.i = 0;
    _r0_o = _r9_o;
    _r4_o = _r12_o;
    _r5_o = _r13_o;
    _r6_o = _r14_o;
    ((global::gnu.xml.aelfred2.XmlParser) _r0_o).pushURL(0!=_r1.i, (global::java.lang.String) _r2_o, (global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o, (global::java.io.Reader) _r4_o, (global::java.io.InputStream) _r5_o, (global::java.lang.String) _r6_o, 0!=_r7.i);
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).parseDocument();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.EOFException) {
            _ex = ex;
            goto label98;
        }
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label126;
        }
        throw ex;
    } // end catch
    if (_r12_o == null) goto label81;
    try {
    ((global::java.io.Reader) _r12_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label157;
        }
        throw ex;
    } // end catch
    label81:;
    if (_r13_o == null) goto label86;
    try {
    ((global::java.io.InputStream) _r13_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label159;
        }
        throw ex;
    } // end catch
    label86:;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fis;
    if (_r0_o == null) goto label95;
    try {
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fis;
    ((global::java.io.InputStream) _r0_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label161;
        }
        throw ex;
    } // end catch
    label95:;
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fscratch = (global::org.xml.sax.InputSource) _r8_o;
    label97:;
    return;
    label98:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    try {
    // Value=empty document, with no root element.
    _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)101)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 44)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 46))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o).error((global::java.lang.String) _r0_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label126;
        }
        throw ex;
    } // end catch
    if (_r12_o == null) goto label109;
    try {
    ((global::java.io.Reader) _r12_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label149;
        }
        throw ex;
    } // end catch
    label109:;
    if (_r13_o == null) goto label114;
    try {
    ((global::java.io.InputStream) _r13_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label151;
        }
        throw ex;
    } // end catch
    label114:;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fis;
    if (_r0_o == null) goto label123;
    try {
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fis;
    ((global::java.io.InputStream) _r0_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label165;
        }
        throw ex;
    } // end catch
    label123:;
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fscratch = (global::org.xml.sax.InputSource) _r8_o;
    goto label97;
    label126:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    if (_r12_o == null) goto label132;
    try {
    ((global::java.io.Reader) _r12_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label153;
        }
        throw ex;
    } // end catch
    label132:;
    if (_r13_o == null) goto label137;
    try {
    ((global::java.io.InputStream) _r13_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label155;
        }
        throw ex;
    } // end catch
    label137:;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fis;
    if (_r1_o == null) goto label146;
    try {
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fis;
    ((global::java.io.InputStream) _r1_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label163;
        }
        throw ex;
    } // end catch
    label146:;
    ((global::gnu.xml.aelfred2.XmlParser) _r9_o)._fscratch = (global::org.xml.sax.InputSource) _r8_o;
    throw new global::org.xmlvm._nExceptionAdapter((global::System.Object) _r0_o);
    label149:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    goto label109;
    label151:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    goto label114;
    label153:;
    _r1_o = _ex.getJavaException();
    _ex = null;
    goto label132;
    label155:;
    _r1_o = _ex.getJavaException();
    _ex = null;
    goto label137;
    label157:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    goto label81;
    label159:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    goto label86;
    label161:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    goto label95;
    label163:;
    _r1_o = _ex.getJavaException();
    _ex = null;
    goto label146;
    label165:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    goto label123;
//XMLVM_END_WRAPPER[gnu.xml.aelfred2.XmlParser: void doParse(java.lang.String, java.lang.String, java.io.Reader, java.io.InputStream, java.lang.String)]
}
Esempio n. 4
0
private void parseDoctypedecl(){
//XMLVM_BEGIN_WRAPPER[gnu.xml.aelfred2.XmlParser: void parseDoctypedecl()]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r10_o = null;
    _r10_o = this;
    _r9.i = 62;
    _r4_o = null;
    _r8.i = 0;
    _r1.i = 1;
    // Value=[dtd]
    _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)91)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 93))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).requireWhitespace();
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o).readNmtoken(0!=_r1.i);
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).skipWhitespace();
    _r3_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o).readExternalIds(0!=_r8.i, 0!=_r1.i);
    _r5_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fhandler;
    _r6_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o)._fpublicId;
    _r7_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o)._fsystemId;
    ((global::gnu.xml.aelfred2.SAXDriver) _r5_o).doctypeDecl((global::java.lang.String) _r0_o, (global::java.lang.String) _r6_o, (global::java.lang.String) _r7_o);
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).skipWhitespace();
    _r5.i = 91;
    _r5.i = ((global::gnu.xml.aelfred2.XmlParser) _r10_o).tryRead((char) _r5.i) ? 1 : 0;
    if (_r5.i == 0) goto label60;
    label41:;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fdoReport = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).skipWhitespace();
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r8.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fdoReport = 0!=_r8.i;
    _r5.i = 93;
    _r5.i = ((global::gnu.xml.aelfred2.XmlParser) _r10_o).tryRead((char) _r5.i) ? 1 : 0;
    if (_r5.i == 0) goto label146;
    label60:;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).skipWhitespace();
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).require((char) _r9.i);
    _r5_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o)._fsystemId;
    if (_r5_o != null) goto label158;
    _r5_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fhandler;
    _r6_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fhandler;
    _r6_o = ((global::gnu.xml.aelfred2.SAXDriver) _r6_o).getSystemId();
    _r0_o = ((global::gnu.xml.aelfred2.SAXDriver) _r5_o).getExternalSubset((global::java.lang.String) _r0_o, (global::java.lang.String) _r6_o);
    label82:;
    _r5_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o)._fsystemId;
    if (_r5_o != null) goto label88;
    if (_r0_o == null) goto label136;
    label88:;
    // Value=>
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)62))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).pushString((global::java.lang.String) _r4_o, (global::java.lang.String) _r5_o);
    _r5_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o)._fsystemId;
    if (_r5_o == null) goto label160;
    // Value=[dtd]
    _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)91)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 93))}));
    _r0_o = _r10_o;
    _r5_o = _r4_o;
    _r6_o = _r4_o;
    _r7.i = _r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r0_o).pushURL(0!=_r1.i, (global::java.lang.String) _r2_o, (global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o, (global::java.io.Reader) _r4_o, (global::java.io.InputStream) _r5_o, (global::java.lang.String) _r6_o, 0!=_r7.i);
    label106:;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fdoReport = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).skipWhitespace();
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r8.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fdoReport = 0!=_r8.i;
    _r0.i = ((global::gnu.xml.aelfred2.XmlParser) _r10_o).tryRead((char) _r9.i) ? 1 : 0;
    if (_r0.i == 0) goto label200;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._finputStack;
    _r0.i = ((global::java.util.LinkedList) _r0_o).size();
    if (_r0.i == _r1.i) goto label136;
    // Value=external subset has unmatched '>'
    _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)101)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 39)), unchecked((char) unchecked((uint) 62)), unchecked((char) unchecked((uint) 39))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).error((global::java.lang.String) _r0_o);
    label136:;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).endDoctype();
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r8.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fdoReport = 0!=_r1.i;
    return;
    label146:;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fpeIsError = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).parseMarkupdecl();
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r8.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fpeIsError = 0!=_r8.i;
    goto label41;
    label158:;
    _r0_o = _r4_o;
    goto label82;
    label160:;
    _r3_o = ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fhandler;
    // Value=modifying document by adding external subset
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)109)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116))}));
    ((global::gnu.xml.aelfred2.SAXDriver) _r3_o).warn((global::java.lang.String) _r5_o);
    // Value=[dtd]
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)91)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 93))}));
    _r3_o = new global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers();
    _r5_o = ((global::org.xml.sax.InputSource) _r0_o).getPublicId();
    _r6_o = ((global::org.xml.sax.InputSource) _r0_o).getSystemId();
    ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o).@this((global::java.lang.String) _r5_o, (global::java.lang.String) _r6_o, (global::java.lang.String) _r4_o);
    _r4_o = ((global::org.xml.sax.InputSource) _r0_o).getCharacterStream();
    _r5_o = ((global::org.xml.sax.InputSource) _r0_o).getByteStream();
    _r6_o = ((global::org.xml.sax.InputSource) _r0_o).getEncoding();
    _r0_o = _r10_o;
    _r7.i = _r8.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r0_o).pushURL(0!=_r1.i, (global::java.lang.String) _r2_o, (global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r3_o, (global::java.io.Reader) _r4_o, (global::java.io.InputStream) _r5_o, (global::java.lang.String) _r6_o, 0!=_r7.i);
    goto label106;
    label200:;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o).parseMarkupdecl();
    ((global::gnu.xml.aelfred2.XmlParser) _r10_o)._fexpandPE = 0!=_r8.i;
    goto label106;
//XMLVM_END_WRAPPER[gnu.xml.aelfred2.XmlParser: void parseDoctypedecl()]
}