Пример #1
0
 public File(global::java.net.URI prm1)
 {
 }
Пример #2
0
public virtual global::System.Object toURI(){
//XMLVM_BEGIN_WRAPPER[java.io.File: java.net.URI toURI()]
    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;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r8_o = this;
    _r7_o = null;
    // Value=file
    _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)102)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    _r3_o = ((global::java.io.File) _r8_o).getAbsoluteName();
    try {
    // Value=/
    _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)47))}));
    _r0.i = ((global::java.lang.String) _r3_o).startsWith((global::java.lang.String) _r0_o) ? 1 : 0;
    if (_r0.i != 0) goto label51;
    _r0_o = new global::java.net.URI();
    // Value=file
    _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)102)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    _r2_o = null;
    _r4_o = new global::java.lang.StringBuilder();
    _r5.i = ((global::java.lang.String) _r3_o).length();
    _r5.i = _r5.i + 1;
    ((global::java.lang.StringBuilder) _r4_o).@this((int) _r5.i);
    _r5.i = 47;
    _r4_o = ((global::java.lang.StringBuilder) _r4_o).append((char) _r5.i);
    _r4_o = ((global::java.lang.StringBuilder) _r4_o).append((global::java.lang.String) _r3_o);
    _r3_o = ((global::java.lang.StringBuilder) _r4_o).toString();
    _r4_o = null;
    _r5_o = null;
    ((global::java.net.URI) _r0_o).@this((global::java.lang.String) _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);
    }
    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.net.URISyntaxException) {
            _ex = ex;
            goto label70;
        }
        throw ex;
    } // end catch
    label50:;
    try {
    return (global::java.net.URI) _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.net.URISyntaxException) {
            _ex = ex;
            goto label70;
        }
        throw ex;
    } // end catch
    label51:;
    try {
    // Value=//
    _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)47)), unchecked((char) unchecked((uint) 47))}));
    _r0.i = ((global::java.lang.String) _r3_o).startsWith((global::java.lang.String) _r0_o) ? 1 : 0;
    if (_r0.i == 0) goto label74;
    _r0_o = new global::java.net.URI();
    // Value=file
    _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)102)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    // Value=
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {}));
    _r4_o = null;
    ((global::java.net.URI) _r0_o).@this((global::java.lang.String) _r1_o, (global::java.lang.String) _r2_o, (global::java.lang.String) _r3_o, (global::java.lang.String) _r4_o);
    goto label50;
    }
    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.net.URISyntaxException) {
            _ex = ex;
            goto label70;
        }
        throw ex;
    } // end catch
    label70:;
    try {
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r6_o = _r0_o;
    _r0_o = _r7_o;
    goto label50;
    }
    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.net.URISyntaxException) {
            _ex = ex;
            goto label70;
        }
        throw ex;
    } // end catch
    label74:;
    try {
    _r0_o = new global::java.net.URI();
    // Value=file
    _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)102)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    _r2_o = null;
    _r4_o = null;
    _r5_o = null;
    ((global::java.net.URI) _r0_o).@this((global::java.lang.String) _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);
    }
    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.net.URISyntaxException) {
            _ex = ex;
            goto label70;
        }
        throw ex;
    } // end catch
    goto label50;
//XMLVM_END_WRAPPER[java.io.File: java.net.URI toURI()]
}
Пример #3
0
 public virtual Path getPath(global::java.net.URI prm1)
 {
     return(default(Path));
 }
Пример #4
0
 public virtual global::java.nio.file.FileSystem newFileSystem(global::java.net.URI prm1, global::java.util.Map <global::java.lang.String, global::System.Object> prm2)
 {
     return(default(global::java.nio.file.FileSystem));
 }
Пример #5
0
 public virtual global::java.nio.file.FileSystem getFileSystem(global::java.net.URI prm1)
 {
     return(default(global::java.nio.file.FileSystem));
 }
Пример #6
0
public virtual global::System.Object toURI(){
//XMLVM_BEGIN_WRAPPER[java.net.URL: java.net.URI toURI()]
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    _r2_o = this;
    _r0_o = new global::java.net.URI();
    _r1_o = ((global::java.net.URL) _r2_o).toExternalForm();
    ((global::java.net.URI) _r0_o).@this((global::java.lang.String) _r1_o);
    return (global::java.net.URI) _r0_o;
//XMLVM_END_WRAPPER[java.net.URL: java.net.URI toURI()]
}
Пример #7
0
private global::System.Object duplicate(){
//XMLVM_BEGIN_WRAPPER[java.net.URI: java.net.URI duplicate()]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    _r2_o = this;
    _r0_o = new global::java.net.URI();
    ((global::java.net.URI) _r0_o).@this();
    _r1.i = ((global::java.net.URI) _r2_o)._fabsolute ? 1 : 0;
    ((global::java.net.URI) _r0_o)._fabsolute = 0!=_r1.i;
    _r1_o = ((global::java.net.URI) _r2_o)._fauthority;
    ((global::java.net.URI) _r0_o)._fauthority = (global::java.lang.String) _r1_o;
    _r1_o = ((global::java.net.URI) _r2_o)._ffragment;
    ((global::java.net.URI) _r0_o)._ffragment = (global::java.lang.String) _r1_o;
    _r1_o = ((global::java.net.URI) _r2_o)._fhost;
    ((global::java.net.URI) _r0_o)._fhost = (global::java.lang.String) _r1_o;
    _r1.i = ((global::java.net.URI) _r2_o)._fopaque ? 1 : 0;
    ((global::java.net.URI) _r0_o)._fopaque = 0!=_r1.i;
    _r1_o = ((global::java.net.URI) _r2_o)._fpath;
    ((global::java.net.URI) _r0_o)._fpath = (global::java.lang.String) _r1_o;
    _r1.i = ((global::java.net.URI) _r2_o)._fport;
    ((global::java.net.URI) _r0_o)._fport = _r1.i;
    _r1_o = ((global::java.net.URI) _r2_o)._fquery;
    ((global::java.net.URI) _r0_o)._fquery = (global::java.lang.String) _r1_o;
    _r1_o = ((global::java.net.URI) _r2_o)._fscheme;
    ((global::java.net.URI) _r0_o)._fscheme = (global::java.lang.String) _r1_o;
    _r1_o = ((global::java.net.URI) _r2_o)._fschemespecificpart;
    ((global::java.net.URI) _r0_o)._fschemespecificpart = (global::java.lang.String) _r1_o;
    _r1_o = ((global::java.net.URI) _r2_o)._fuserinfo;
    ((global::java.net.URI) _r0_o)._fuserinfo = (global::java.lang.String) _r1_o;
    _r1.i = ((global::java.net.URI) _r2_o)._fserverAuthority ? 1 : 0;
    ((global::java.net.URI) _r0_o)._fserverAuthority = 0!=_r1.i;
    return (global::java.net.URI) _r0_o;
//XMLVM_END_WRAPPER[java.net.URI: java.net.URI duplicate()]
}
Пример #8
0
public static global::System.Object create(global::java.lang.String n1){
//XMLVM_BEGIN_WRAPPER[java.net.URI: java.net.URI create(java.lang.String)]
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r2_o = n1;
    try {
    _r0_o = new global::java.net.URI();
    ((global::java.net.URI) _r0_o).@this((global::java.lang.String) _r2_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.net.URISyntaxException) {
            _ex = ex;
            goto label6;
        }
        throw ex;
    } // end catch
    return (global::java.net.URI) _r0_o;
    label6:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r1_o = new global::java.lang.IllegalArgumentException();
    _r0_o = ((global::java.net.URISyntaxException) _r0_o).getMessage();
    ((global::java.lang.IllegalArgumentException) _r1_o).@this((global::java.lang.String) _r0_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.IllegalArgumentException) _r1_o);
//XMLVM_END_WRAPPER[java.net.URI: java.net.URI create(java.lang.String)]
}
Пример #9
0
public virtual global::System.Object relativize(global::java.net.URI n1){
//XMLVM_BEGIN_WRAPPER[java.net.URI: java.net.URI relativize(java.net.URI)]
    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 _r2_o = null;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    _r4_o = this;
    _r5_o = n1;
    _r0.i = ((global::java.net.URI) _r5_o)._fopaque ? 1 : 0;
    if (_r0.i != 0) goto label8;
    _r0.i = ((global::java.net.URI) _r4_o)._fopaque ? 1 : 0;
    if (_r0.i == 0) goto label10;
    label8:;
    _r0_o = _r5_o;
    label9:;
    return (global::java.net.URI) _r0_o;
    label10:;
    _r0_o = ((global::java.net.URI) _r4_o)._fscheme;
    if (_r0_o != null) goto label20;
    _r0_o = ((global::java.net.URI) _r5_o)._fscheme;
    if (_r0_o == null) goto label30;
    label18:;
    _r0_o = _r5_o;
    goto label9;
    label20:;
    _r0_o = ((global::java.net.URI) _r4_o)._fscheme;
    _r1_o = ((global::java.net.URI) _r5_o)._fscheme;
    _r0.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r1_o) ? 1 : 0;
    if (_r0.i == 0) goto label18;
    label30:;
    _r0_o = ((global::java.net.URI) _r4_o)._fauthority;
    if (_r0_o != null) goto label40;
    _r0_o = ((global::java.net.URI) _r5_o)._fauthority;
    if (_r0_o == null) goto label50;
    label38:;
    _r0_o = _r5_o;
    goto label9;
    label40:;
    _r0_o = ((global::java.net.URI) _r4_o)._fauthority;
    _r1_o = ((global::java.net.URI) _r5_o)._fauthority;
    _r0.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r1_o) ? 1 : 0;
    if (_r0.i == 0) goto label38;
    label50:;
    _r0_o = ((global::java.net.URI) _r4_o)._fpath;
    _r0_o = ((global::java.net.URI) _r4_o).normalize((global::java.lang.String) _r0_o);
    _r1_o = ((global::java.net.URI) _r5_o)._fpath;
    _r1_o = ((global::java.net.URI) _r4_o).normalize((global::java.lang.String) _r1_o);
    _r2.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r1_o) ? 1 : 0;
    if (_r2.i != 0) goto label103;
    // 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)47))}));
    _r2.i = ((global::java.lang.String) _r0_o).endsWith((global::java.lang.String) _r2_o) ? 1 : 0;
    if (_r2.i != 0) goto label95;
    _r2_o = new global::java.lang.StringBuilder();
    _r0_o = global::java.lang.String.valueOf((global::java.lang.Object) _r0_o);
    ((global::java.lang.StringBuilder) _r2_o).@this((global::java.lang.String) _r0_o);
    _r0.i = 47;
    _r0_o = ((global::java.lang.StringBuilder) _r2_o).append((char) _r0.i);
    _r0_o = ((global::java.lang.StringBuilder) _r0_o).toString();
    label95:;
    _r2.i = ((global::java.lang.String) _r1_o).startsWith((global::java.lang.String) _r0_o) ? 1 : 0;
    if (_r2.i != 0) goto label103;
    _r0_o = _r5_o;
    goto label9;
    label103:;
    _r2_o = new global::java.net.URI();
    ((global::java.net.URI) _r2_o).@this();
    _r3_o = ((global::java.net.URI) _r5_o)._ffragment;
    ((global::java.net.URI) _r2_o)._ffragment = (global::java.lang.String) _r3_o;
    _r3_o = ((global::java.net.URI) _r5_o)._fquery;
    ((global::java.net.URI) _r2_o)._fquery = (global::java.lang.String) _r3_o;
    _r0.i = ((global::java.lang.String) _r0_o).length();
    _r0_o = ((global::java.lang.String) _r1_o).substring((int) _r0.i);
    ((global::java.net.URI) _r2_o)._fpath = (global::java.lang.String) _r0_o;
    ((global::java.net.URI) _r2_o).setSchemeSpecificPart();
    _r0_o = _r2_o;
    goto label9;
//XMLVM_END_WRAPPER[java.net.URI: java.net.URI relativize(java.net.URI)]
}