Ejemplo n.º 1
0
public static global::System.Object getByAddress(global::java.lang.String n1, global::org.xmlvm._nArrayAdapter<sbyte> n2, int n3){
//XMLVM_BEGIN_WRAPPER[java.net.Inet6Address: java.net.Inet6Address getByAddress(java.lang.String, byte[], int)]
    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::org.xmlvm._nElement _r4;
    _r2_o = n1;
    _r3_o = n2;
    _r4.i = n3;
    if (_r3_o == null) goto label7;
    _r0.i = 16;
    _r1.i = ((global::org.xmlvm._nIArray) _r3_o).Length;
    if (_r0.i == _r1.i) goto label19;
    label7:;
    _r0_o = new global::java.net.UnknownHostException();
    // Value=luni.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)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 54)), unchecked((char) unchecked((uint) 50))}));
    _r1_o = global::[email protected]((global::java.lang.String) _r1_o);
    ((global::java.net.UnknownHostException) _r0_o).@this((global::java.lang.String) _r1_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.UnknownHostException) _r0_o);
    label19:;
    if (_r4.i >= 0) goto label22;
    _r4.i = 0;
    label22:;
    _r0_o = new global::java.net.Inet6Address();
    ((global::java.net.Inet6Address) _r0_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r3_o, (global::java.lang.String) _r2_o, (int) _r4.i);
    return (global::java.net.Inet6Address) _r0_o;
//XMLVM_END_WRAPPER[java.net.Inet6Address: java.net.Inet6Address getByAddress(java.lang.String, byte[], int)]
}
Ejemplo n.º 2
0
public static global::System.Object getAllByName(global::java.lang.String n1){
//XMLVM_BEGIN_WRAPPER[java.net.InetAddress: java.net.InetAddress[] getAllByName(java.lang.String)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    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 _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r10_o = null;
    _r10_o = n1;
    _r9.i = 1;
    _r8.i = 0;
    if (_r10_o == null) goto label10;
    _r6.i = ((global::java.lang.String) _r10_o).length();
    if (_r6.i != 0) goto label26;
    label10:;
    _r6_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r9.i]);
    _r7.i = global::java.net.InetAddress.preferIPv6Addresses() ? 1 : 0;
    if (_r7.i == 0) goto label23;
    _r7_o = global::java.net.Inet6Address._fLOOPBACK;
    label20:;
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r6_o)[_r8.i] = _r7_o;
    label22:;
    return (global::org.xmlvm._nArrayAdapter<global::System.Object>) _r6_o;
    label23:;
    _r7_o = global::java.net.InetAddress._fLOOPBACK;
    goto label20;
    label26:;
    _r6.i = global::java.net.InetAddress.isHostName((global::java.lang.String) _r10_o) ? 1 : 0;
    if (_r6.i == 0) goto label148;
    _r5_o = global::java.lang.System.getSecurityManager();
    if (_r5_o == null) goto label42;
    _r6.i = -1;
    ((global::java.lang.SecurityManager) _r5_o).checkConnect((global::java.lang.String) _r10_o, (int) _r6.i);
    label42:;
    _r6.i = global::java.net.Socket.preferIPv4Stack() ? 1 : 0;
    if (_r6.i == 0) goto label53;
    _r6_o = global::java.net.InetAddress.getAliasesByNameImpl((global::java.lang.String) _r10_o);
    goto label22;
    label53:;
    _r4_o = global::java.net.InetAddress.getAliasesByNameImpl((global::java.lang.String) _r10_o);
    _r3_o = null;
    if (_r4_o == null) goto label146;
    _r6.i = ((global::org.xmlvm._nIArray) _r4_o).Length;
    _r3_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r6.i]);
    _r0.i = 0;
    _r6.i = global::java.net.InetAddress.preferIPv6Addresses() ? 1 : 0;
    if (_r6.i == 0) goto label108;
    _r2.i = 0;
    label71:;
    _r6.i = ((global::org.xmlvm._nIArray) _r4_o).Length;
    if (_r2.i >= _r6.i) goto label89;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    _r6.i = ((_r6_o != null) && (_r6_o is global::java.net.Inet6Address)) ? 1 : 0;
    if (_r6.i == 0) goto label86;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r3_o)[_r0.i] = _r6_o;
    _r0.i = _r0.i + 1;
    label86:;
    _r2.i = _r2.i + 1;
    goto label71;
    label89:;
    _r2.i = 0;
    label90:;
    _r6.i = ((global::org.xmlvm._nIArray) _r4_o).Length;
    if (_r2.i >= _r6.i) goto label146;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    _r6.i = ((_r6_o != null) && (_r6_o is global::java.net.Inet4Address)) ? 1 : 0;
    if (_r6.i == 0) goto label105;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r3_o)[_r0.i] = _r6_o;
    _r0.i = _r0.i + 1;
    label105:;
    _r2.i = _r2.i + 1;
    goto label90;
    label108:;
    _r2.i = 0;
    label109:;
    _r6.i = ((global::org.xmlvm._nIArray) _r4_o).Length;
    if (_r2.i >= _r6.i) goto label127;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    _r6.i = ((_r6_o != null) && (_r6_o is global::java.net.Inet4Address)) ? 1 : 0;
    if (_r6.i == 0) goto label124;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r3_o)[_r0.i] = _r6_o;
    _r0.i = _r0.i + 1;
    label124:;
    _r2.i = _r2.i + 1;
    goto label109;
    label127:;
    _r2.i = 0;
    label128:;
    _r6.i = ((global::org.xmlvm._nIArray) _r4_o).Length;
    if (_r2.i >= _r6.i) goto label146;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    _r6.i = ((_r6_o != null) && (_r6_o is global::java.net.Inet6Address)) ? 1 : 0;
    if (_r6.i == 0) goto label143;
    _r6_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r4_o)[_r2.i];
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r3_o)[_r0.i] = _r6_o;
    _r0.i = _r0.i + 1;
    label143:;
    _r2.i = _r2.i + 1;
    goto label128;
    label146:;
    _r6_o = _r3_o;
    goto label22;
    label148:;
    _r1_o = global::org.apache.harmony.luni.util.Inet6Util.createByteArrayFromIPAddressString((global::java.lang.String) _r10_o);
    _r6.i = ((global::org.xmlvm._nIArray) _r1_o).Length;
    _r7.i = 4;
    if (_r6.i != _r7.i) goto label167;
    _r6_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r9.i]);
    _r7_o = new global::java.net.Inet4Address();
    ((global::java.net.Inet4Address) _r7_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r6_o)[_r8.i] = _r7_o;
    goto label22;
    label167:;
    _r6.i = ((global::org.xmlvm._nIArray) _r1_o).Length;
    _r7.i = 16;
    if (_r6.i != _r7.i) goto label183;
    _r6_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r9.i]);
    _r7_o = new global::java.net.Inet6Address();
    ((global::java.net.Inet6Address) _r7_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r6_o)[_r8.i] = _r7_o;
    goto label22;
    label183:;
    _r6_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r9.i]);
    _r7_o = new global::java.net.InetAddress();
    ((global::java.net.InetAddress) _r7_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r6_o)[_r8.i] = _r7_o;
    goto label22;
//XMLVM_END_WRAPPER[java.net.InetAddress: java.net.InetAddress[] getAllByName(java.lang.String)]
}
Ejemplo n.º 3
0
new public static void @static(){
//XMLVM_BEGIN_WRAPPER[java.net.Inet6Address: void <clinit>()]
    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::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    _r1.i = 16;
    _r4.i = 0;
    _r0_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[_r1.i]);
    _r0_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
    global::java.net.Inet6Address._fany_1bytes = (global::org.xmlvm._nArrayAdapter<sbyte>) _r0_o;
    _r0_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[_r1.i]);
    _r0_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1});
    global::java.net.Inet6Address._flocalhost_1bytes = (global::org.xmlvm._nArrayAdapter<sbyte>) _r0_o;
    _r0_o = new global::java.net.Inet6Address();
    _r1_o = global::java.net.Inet6Address._fany_1bytes;
    ((global::java.net.Inet6Address) _r0_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o);
    global::java.net.Inet6Address._fANY = (global::java.net.InetAddress) _r0_o;
    _r0_o = new global::java.net.Inet6Address();
    _r1_o = global::java.net.Inet6Address._flocalhost_1bytes;
    // Value=localhost
    _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)108)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 116))}));
    ((global::java.net.Inet6Address) _r0_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o, (global::java.lang.String) _r2_o);
    global::java.net.Inet6Address._fLOOPBACK = (global::java.net.InetAddress) _r0_o;
    _r0.i = 5;
    _r0_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r0.i]);
    _r1_o = new global::java.io.ObjectStreamField();
    // Value=ipaddress
    _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)105)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 115))}));
    _r3_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[_r4.i]);
    _r3_o = ((global::java.lang.Object) _r3_o).getClass();
    ((global::java.io.ObjectStreamField) _r1_o).@this((global::java.lang.String) _r2_o, (global::java.lang.Class) _r3_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r0_o)[_r4.i] = _r1_o;
    _r1.i = 1;
    _r2_o = new global::java.io.ObjectStreamField();
    // Value=scope_id
    _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)115)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 100))}));
    _r4_o = global::java.lang.Integer._fTYPE;
    ((global::java.io.ObjectStreamField) _r2_o).@this((global::java.lang.String) _r3_o, (global::java.lang.Class) _r4_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r0_o)[_r1.i] = _r2_o;
    _r1.i = 2;
    _r2_o = new global::java.io.ObjectStreamField();
    // Value=scope_id_set
    _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)115)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116))}));
    _r4_o = global::java.lang.Boolean._fTYPE;
    ((global::java.io.ObjectStreamField) _r2_o).@this((global::java.lang.String) _r3_o, (global::java.lang.Class) _r4_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r0_o)[_r1.i] = _r2_o;
    _r1.i = 3;
    _r2_o = new global::java.io.ObjectStreamField();
    // Value=scope_ifname_set
    _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)115)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 95)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116))}));
    _r4_o = global::java.lang.Boolean._fTYPE;
    ((global::java.io.ObjectStreamField) _r2_o).@this((global::java.lang.String) _r3_o, (global::java.lang.Class) _r4_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r0_o)[_r1.i] = _r2_o;
    _r1.i = 4;
    _r2_o = new global::java.io.ObjectStreamField();
    // Value=ifname
    _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)105)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101))}));
    _r4_o = global::org.xmlvm._nTIB.getClass(typeof(global::java.lang.String));
    ((global::java.io.ObjectStreamField) _r2_o).@this((global::java.lang.String) _r3_o, (global::java.lang.Class) _r4_o);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r0_o)[_r1.i] = _r2_o;
    global::java.net.Inet6Address._fserialPersistentFields = (global::org.xmlvm._nArrayAdapter<global::System.Object>) _r0_o;
    return;
//XMLVM_END_WRAPPER[java.net.Inet6Address: void <clinit>()]
}
Ejemplo n.º 4
0
public static global::System.Object getByAddressInternal(global::java.lang.String n1, global::org.xmlvm._nArrayAdapter<sbyte> n2, int n3){
//XMLVM_BEGIN_WRAPPER[java.net.InetAddress: java.net.InetAddress getByAddressInternal(java.lang.String, byte[], int)]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    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 _r5_o = null;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    _r5_o = n1;
    _r6_o = n2;
    _r7.i = n3;
    _r4.i = 16;
    _r3.i = 4;
    if (_r6_o == null) goto label26;
    _r2.i = ((global::org.xmlvm._nIArray) _r6_o).Length;
    if (_r2.i != _r3.i) goto label26;
    _r0_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[_r3.i]);
    _r1.i = 0;
    label11:;
    if (_r1.i >= _r3.i) goto label20;
    _r2.i = ((global::org.xmlvm._nArrayAdapter<sbyte>) _r6_o)[_r1.i];
    ((global::org.xmlvm._nArrayAdapter<sbyte>) _r0_o)[_r1.i] = (sbyte)_r2.i;
    _r1.i = _r1.i + 1;
    goto label11;
    label20:;
    _r2_o = new global::java.net.Inet4Address();
    ((global::java.net.Inet4Address) _r2_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r6_o, (global::java.lang.String) _r5_o);
    label25:;
    return (global::java.net.InetAddress) _r2_o;
    label26:;
    if (_r6_o == null) goto label75;
    _r2.i = ((global::org.xmlvm._nIArray) _r6_o).Length;
    if (_r2.i != _r4.i) goto label75;
    _r2.i = global::java.net.InetAddress.isIPv4MappedAddress((global::org.xmlvm._nArrayAdapter<sbyte>) _r6_o) ? 1 : 0;
    if (_r2.i == 0) goto label57;
    _r0_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[_r3.i]);
    _r1.i = 0;
    label40:;
    if (_r1.i >= _r3.i) goto label51;
    _r2.i = _r1.i + 12;
    _r2.i = ((global::org.xmlvm._nArrayAdapter<sbyte>) _r6_o)[_r2.i];
    ((global::org.xmlvm._nArrayAdapter<sbyte>) _r0_o)[_r1.i] = (sbyte)_r2.i;
    _r1.i = _r1.i + 1;
    goto label40;
    label51:;
    _r2_o = new global::java.net.Inet4Address();
    ((global::java.net.Inet4Address) _r2_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r6_o, (global::java.lang.String) _r5_o);
    goto label25;
    label57:;
    _r0_o = new global::org.xmlvm._nArrayAdapter<sbyte>(new sbyte[_r4.i]);
    _r1.i = 0;
    label60:;
    if (_r1.i >= _r4.i) goto label69;
    _r2.i = ((global::org.xmlvm._nArrayAdapter<sbyte>) _r6_o)[_r1.i];
    ((global::org.xmlvm._nArrayAdapter<sbyte>) _r0_o)[_r1.i] = (sbyte)_r2.i;
    _r1.i = _r1.i + 1;
    goto label60;
    label69:;
    _r2_o = new global::java.net.Inet6Address();
    ((global::java.net.Inet6Address) _r2_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r6_o, (global::java.lang.String) _r5_o, (int) _r7.i);
    goto label25;
    label75:;
    _r2_o = new global::java.net.UnknownHostException();
    // Value=luni.65
    _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)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 54)), unchecked((char) unchecked((uint) 53))}));
    _r3_o = global::[email protected]((global::java.lang.String) _r3_o, (global::java.lang.Object) _r5_o);
    ((global::java.net.UnknownHostException) _r2_o).@this((global::java.lang.String) _r3_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.UnknownHostException) _r2_o);
//XMLVM_END_WRAPPER[java.net.InetAddress: java.net.InetAddress getByAddressInternal(java.lang.String, byte[], int)]
}