예제 #1
0
public override global::System.Object iterator(){
//XMLVM_BEGIN_WRAPPER[java.util.Hashtable$6: java.util.Iterator iterator()]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    _r3_o = this;
    _r0.i = ((global::java.util.Hashtable_26) _r3_o).size();
    if (_r0.i != 0) goto label11;
    _r0_o = global::java.util.Hashtable.access_20();
    label10:;
    return (global::java.util.Iterator) _r0_o;
    label11:;
    _r0_o = new global::java.util.Hashtable_2HashEnumIterator();
    _r1_o = ((global::java.util.Hashtable_26) _r3_o)._fthis_20;
    _r2_o = new global::java.util.Hashtable_26_21();
    ((global::java.util.Hashtable_26_21) _r2_o).@this((global::java.util.Hashtable_26) _r3_o);
    ((global::java.util.Hashtable_2HashEnumIterator) _r0_o).@this((global::java.util.Hashtable) _r1_o, (global::java.util.MapEntry_2Type) _r2_o);
    goto label10;
//XMLVM_END_WRAPPER[java.util.Hashtable$6: java.util.Iterator iterator()]
}
예제 #2
0
public override global::System.Object keys(){
//XMLVM_BEGIN_WRAPPER[java.util.Hashtable: java.util.Enumeration keys()]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r3_o = this;
    global::System.Threading.Monitor.Enter(_r3_o);
    try {
    _r0.i = ((global::java.util.Hashtable) _r3_o)._felementCount;
    if (_r0.i != 0) goto label9;
    _r0_o = global::java.util.Hashtable._fEMPTY_1ENUMERATION;
    }
    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 label21;
        }
        throw ex;
    } // end catch
    label7:;
    global::System.Threading.Monitor.Exit(_r3_o);
    return (global::java.util.Enumeration) _r0_o;
    label9:;
    try {
    _r0_o = new global::java.util.Hashtable_2HashEnumIterator();
    _r1_o = new global::java.util.Hashtable_25();
    ((global::java.util.Hashtable_25) _r1_o).@this((global::java.util.Hashtable) _r3_o);
    _r2.i = 1;
    ((global::java.util.Hashtable_2HashEnumIterator) _r0_o).@this((global::java.util.Hashtable) _r3_o, (global::java.util.MapEntry_2Type) _r1_o, 0!=_r2.i);
    }
    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 label21;
        }
        throw ex;
    } // end catch
    goto label7;
    label21:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    global::System.Threading.Monitor.Exit(_r3_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.Throwable) _r0_o);
//XMLVM_END_WRAPPER[java.util.Hashtable: java.util.Enumeration keys()]
}