예제 #1
0
        public static short getShort(global::java.lang.Object n1, int n2)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: short getShort(java.lang.Object, int)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <sbyte> )
            {
                return(((org.xmlvm._nArrayAdapter <sbyte>)n1)[n2]);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <short> )
            {
                return(((org.xmlvm._nArrayAdapter <short>)n1)[n2]);
            }
            else
            {
                // if it is not an org.xmlvm._nIArray
                //   or none of the allowed identity or widening conversions for the component type exists:
                //   short <-- byte(, short)
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: short getShort(java.lang.Object, int)]
        }
예제 #2
0
        public static void setFloat(global::java.lang.Object n1, int n2, float n3)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void setFloat(java.lang.Object, int, float)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <float> )
            {
                ((org.xmlvm._nArrayAdapter <float>)n1)[n2] = n3;
                return;
            }
            else if (n1 is org.xmlvm._nArrayAdapter <double> )
            {
                ((org.xmlvm._nArrayAdapter <double>)n1)[n2] = n3;
                return;
            }
            else
            {
                // if it is not an org.xmlvm._nIArray
                //  or none of the allowed identity or widening conversions for the component type:
                //   float --> (float, )double
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: void setFloat(java.lang.Object, int, float)]
        }
예제 #3
0
        public static void setDouble(global::java.lang.Object n1, int n2, double n3)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void setDouble(java.lang.Object, int, double)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <double> )
            {
                ((org.xmlvm._nArrayAdapter <double>)n1)[n2] = n3;
                return;
            }
            else
            {
                // if it is not an org.xmlvm._nIArray or its component type differs from double
                //   (since there are no widening conversions allowed for double)
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: void setDouble(java.lang.Object, int, double)]
        }
예제 #4
0
        public static char getChar(global::java.lang.Object n1, int n2)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: char getChar(java.lang.Object, int)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <char> )
            {
                return(((org.xmlvm._nArrayAdapter <char>)n1)[n2]);
            }
            else
            {
                // either it is not an org.xmlvm._nIArray
                //   or the non-identity conversion is not allowed,
                //   since there is no allowed widening conversions into char for the component type:
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: char getChar(java.lang.Object, int)]
        }
예제 #5
0
public static global::System.Object get(global::java.lang.Object n1, int n2){
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: java.lang.Object get(java.lang.Object, int)]
    throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
    if (n1==null) {
        java.lang.NullPointerException jex = new java.lang.NullPointerException();
        jex.@this();
        throw new org.xmlvm._nExceptionAdapter(jex);
    } else if (n1 is org.xmlvm._nArrayAdapter<object>) {
        return ((org.xmlvm._nArrayAdapter<object>) n1)[n2];
    } else if (n1 is org.xmlvm._nArrayAdapter<bool>) {
        bool unwrappedBoolean = ((org.xmlvm._nArrayAdapter<bool>) n1)[n2];
        java.lang.Boolean result = new java.lang.Boolean();
        result.@this(unwrappedBoolean);
        return result;
    } else if (n1 is org.xmlvm._nArrayAdapter<sbyte>) {
        sbyte unwrappedByte = ((org.xmlvm._nArrayAdapter<sbyte>) n1)[n2];
        java.lang.Byte result = new java.lang.Byte();
        result.@this(unwrappedByte);
        return result;
    } else if (n1 is org.xmlvm._nArrayAdapter<char>) {
        char unwrappedChar = ((org.xmlvm._nArrayAdapter<char>) n1)[n2];
        java.lang.Character result = new java.lang.Character();
        result.@this(unwrappedChar);
        return result;
    } else if (n1 is org.xmlvm._nArrayAdapter<short>) {
        short unwrappedShort = ((org.xmlvm._nArrayAdapter<short>) n1)[n2];
        java.lang.Short result = new java.lang.Short();
        result.@this(unwrappedShort);
        return result;
    } else if (n1 is org.xmlvm._nArrayAdapter<int>) {
        int unwrappedInteger = ((org.xmlvm._nArrayAdapter<int>) n1)[n2];
        java.lang.Integer result = new java.lang.Integer();
        result.@this(unwrappedInteger);
        return result;
    } else if (n1 is org.xmlvm._nArrayAdapter<long>) {
        long unwrappedLong = ((org.xmlvm._nArrayAdapter<long>) n1)[n2];
        java.lang.Long result = new java.lang.Long();
        result.@this(unwrappedLong);
        return result;
    } else if (n1 is org.xmlvm._nArrayAdapter<float>) {
        float unwrappedFloat = ((org.xmlvm._nArrayAdapter<float>) n1)[n2];
        java.lang.Float result = new java.lang.Float();
        result.@this(unwrappedFloat);
        return result;
    } else if (n1 is org.xmlvm._nArrayAdapter<double>) {
        double unwrappedDouble = ((org.xmlvm._nArrayAdapter<double>) n1)[n2];
        java.lang.Double result = new java.lang.Double();
        result.@this(unwrappedDouble);
        return result;
    } else if (!(n1 is org.xmlvm._nIArray)) {
        // it is not an org.xmlvm._nIArray 
        java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
        jex.@this(org.xmlvm._nUtil.toJavaString("Not an array"));
        throw new org.xmlvm._nExceptionAdapter(jex);
    } else {
        // something went wrong
        throw new org.xmlvm._nNativeImplementationException();
    }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: java.lang.Object get(java.lang.Object, int)]
}
예제 #6
0
파일: Array.cs 프로젝트: keithkim/xmlvm
        public static bool getBoolean(global::java.lang.Object n1, int n2)
        {
            //XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: boolean getBoolean(java.lang.Object, int)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1==null) {
            java.lang.NullPointerException jex = new java.lang.NullPointerException();
            jex.@this();
            throw new org.xmlvm._nExceptionAdapter(jex);
            } else if (n1 is org.xmlvm._nArrayAdapter<bool>) {
            return ((org.xmlvm._nArrayAdapter<bool>) n1)[n2];
            } else {
            // either it is not an org.xmlvm._nIArray
            //   or the non-identity conversion is not allowed,
            //   since there is no allowed widening conversions into boolean for the component type:
            java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
            jex.@this();
            throw new org.xmlvm._nExceptionAdapter(jex);
            }

            //XMLVM_END_WRAPPER[java.lang.reflect.Array: boolean getBoolean(java.lang.Object, int)]
        }
예제 #7
0
        public static int getLength(global::java.lang.Object n1)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: int getLength(java.lang.Object)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (!(n1 is org.xmlvm._nIArray))
            {
                // if it is not an org.xmlvm._nIArray
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else
            {
                return(((org.xmlvm._nIArray)n1).Length);
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: int getLength(java.lang.Object)]
        }
예제 #8
0
        public static void setBoolean(global::java.lang.Object n1, int n2, bool n3)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void setBoolean(java.lang.Object, int, boolean)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (!(n1 is org.xmlvm._nArrayAdapter <bool>))
            {
                // there are no widening conversion allowed here, other than the identity boolean --> boolean
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else
            {
                ((org.xmlvm._nArrayAdapter <bool>)n1)[n2] = n3;
                return;
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: void setBoolean(java.lang.Object, int, boolean)]
        }
예제 #9
0
파일: Field.cs 프로젝트: keithkim/xmlvm
 public override int getInt(java.lang.Object n1)
 {
     org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                          java.lang.reflect.Field._nImpl> adapter
     = (org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                                 java.lang.reflect.Field._nImpl>) this._faddress;
     global::System.Reflection.FieldInfo nativeFieldInfo = adapter.getMemberInfoAdaptee();
     global::System.Object nativeValue;
     try {
     nativeValue = nativeFieldInfo.GetValue(n1);
     } catch (global::System.Reflection.TargetException e) {
     java.lang.NullPointerException javaException = new java.lang.NullPointerException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.ArgumentException e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.FieldAccessException e) {
     java.lang.IllegalAccessException javaException = new java.lang.IllegalAccessException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
     int intValue;
     try {
     intValue = (int) nativeValue;
     } catch (global::System.Exception e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
     return intValue;
 }
예제 #10
0
파일: Array.cs 프로젝트: keithkim/xmlvm
 public static void setShort(global::java.lang.Object n1, int n2, short n3)
 {
     //XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void setShort(java.lang.Object, int, short)]
     throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
     if (n1==null) {
     java.lang.NullPointerException jex = new java.lang.NullPointerException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else if (n1 is org.xmlvm._nArrayAdapter<short>) {
     ((org.xmlvm._nArrayAdapter<short>) n1)[n2] = n3;
     return;
     } else if (n1 is org.xmlvm._nArrayAdapter<int>) {
     ((org.xmlvm._nArrayAdapter<int>) n1)[n2] = n3;
     return;
     } else if (n1 is org.xmlvm._nArrayAdapter<long>) {
     ((org.xmlvm._nArrayAdapter<long>) n1)[n2] = n3;
     return;
     } else if (n1 is org.xmlvm._nArrayAdapter<float>) {
     ((org.xmlvm._nArrayAdapter<float>) n1)[n2] = n3;
     return;
     } else if (n1 is org.xmlvm._nArrayAdapter<double>) {
     ((org.xmlvm._nArrayAdapter<double>) n1)[n2] = n3;
     return;
     } else {
     // if it is not an org.xmlvm._nIArray
     //   or none of the allowed identity or widening conversions for the component type:
     //   short --> (short, )int, long, float, double
     java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     }
     //XMLVM_END_WRAPPER[java.lang.reflect.Array: void setShort(java.lang.Object, int, short)]
 }
예제 #11
0
파일: Array.cs 프로젝트: keithkim/xmlvm
 public static void setDouble(global::java.lang.Object n1, int n2, double n3)
 {
     //XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void setDouble(java.lang.Object, int, double)]
     throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
     if (n1==null) {
     java.lang.NullPointerException jex = new java.lang.NullPointerException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else if (n1 is org.xmlvm._nArrayAdapter<double>) {
     ((org.xmlvm._nArrayAdapter<double>) n1)[n2] = n3;
     return;
     } else {
     // if it is not an org.xmlvm._nIArray or its component type differs from double
     //   (since there are no widening conversions allowed for double)
     java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     }
     //XMLVM_END_WRAPPER[java.lang.reflect.Array: void setDouble(java.lang.Object, int, double)]
 }
예제 #12
0
파일: Array.cs 프로젝트: keithkim/xmlvm
 public static void setBoolean(global::java.lang.Object n1, int n2, bool n3)
 {
     //XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void setBoolean(java.lang.Object, int, boolean)]
     throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
     if (n1==null) {
     java.lang.NullPointerException jex = new java.lang.NullPointerException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else if (!(n1 is org.xmlvm._nArrayAdapter<bool>)) {
     // there are no widening conversion allowed here, other than the identity boolean --> boolean
     java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else {
     ((org.xmlvm._nArrayAdapter<bool>) n1)[n2] = n3;
     return;
     }
     //XMLVM_END_WRAPPER[java.lang.reflect.Array: void setBoolean(java.lang.Object, int, boolean)]
 }
예제 #13
0
파일: Array.cs 프로젝트: keithkim/xmlvm
 public static void set(global::java.lang.Object n1, int n2, global::java.lang.Object n3)
 {
     //XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void set(java.lang.Object, int, java.lang.Object)]
     throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
     if (n1==null) {
     java.lang.NullPointerException jex = new java.lang.NullPointerException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else if (n1 is org.xmlvm._nArrayAdapter<object>) {
     ((org.xmlvm._nArrayAdapter<object>) n1)[n2] = n3;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<bool>)
        && (n3 is java.lang.Boolean)) {
     bool unwrappedBoolean = ((java.lang.Boolean) n3).booleanValue();
     ((org.xmlvm._nArrayAdapter<bool>) n1)[n2] = unwrappedBoolean;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<sbyte>)
        && (n3 is java.lang.Byte)){
     sbyte unwrappedByte = ((java.lang.Byte) n3).byteValue();
     ((org.xmlvm._nArrayAdapter<sbyte>) n1)[n2] = unwrappedByte;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<char>)
        && (n3 is java.lang.Character)){
     char unwrappedChar = ((java.lang.Character) n3).charValue();
     ((org.xmlvm._nArrayAdapter<char>) n1)[n2] = unwrappedChar;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<short>)
        && (n3 is java.lang.Short)) {
     short unwrappedShort = ((java.lang.Short) n3).shortValue();
     ((org.xmlvm._nArrayAdapter<short>) n1)[n2] = unwrappedShort;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<int>)
        && (n3 is java.lang.Integer)) {
     int unwrappedInteger = ((java.lang.Integer) n3).intValue();
     ((org.xmlvm._nArrayAdapter<int>) n1)[n2] = unwrappedInteger;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<long>)
        && (n3 is java.lang.Long)) {
     long unwrappedLong = ((java.lang.Long) n3).longValue();
     ((org.xmlvm._nArrayAdapter<long>) n1)[n2] = unwrappedLong;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<float>)
        && (n3 is java.lang.Float)) {
     float unwrappedFloat = ((java.lang.Float) n3).floatValue();
     ((org.xmlvm._nArrayAdapter<float>) n1)[n2] = unwrappedFloat;
     return;
     } else if ((n1 is org.xmlvm._nArrayAdapter<double>)
        && (n3 is java.lang.Double)) {
     double unwrappedDouble = ((java.lang.Double) n3).doubleValue();
     ((org.xmlvm._nArrayAdapter<double>) n1)[n2] = unwrappedDouble;
     return;
     } else {
     // either it is not an org.xmlvm._nIArray
     //   or the given value cannot be unwrapped to the component type
     //   of this array
     java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
     jex.@this(org.xmlvm._nUtil.toJavaString("Not an array"));
     throw new org.xmlvm._nExceptionAdapter(jex);
     }
     //XMLVM_END_WRAPPER[java.lang.reflect.Array: void set(java.lang.Object, int, java.lang.Object)]
 }
예제 #14
0
파일: Array.cs 프로젝트: keithkim/xmlvm
 public static short getShort(global::java.lang.Object n1, int n2)
 {
     //XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: short getShort(java.lang.Object, int)]
     throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
     if (n1==null) {
     java.lang.NullPointerException jex = new java.lang.NullPointerException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else if (n1 is org.xmlvm._nArrayAdapter<sbyte>) {
     return ((org.xmlvm._nArrayAdapter<sbyte>) n1)[n2];
     } else if (n1 is org.xmlvm._nArrayAdapter<short>) {
     return ((org.xmlvm._nArrayAdapter<short>) n1)[n2];
     } else {
     // if it is not an org.xmlvm._nIArray
     //   or none of the allowed identity or widening conversions for the component type exists:
     //   short <-- byte(, short)
     java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     }
     //XMLVM_END_WRAPPER[java.lang.reflect.Array: short getShort(java.lang.Object, int)]
 }
예제 #15
0
파일: Array.cs 프로젝트: keithkim/xmlvm
 public static int getLength(global::java.lang.Object n1)
 {
     //XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: int getLength(java.lang.Object)]
     throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
     if (n1==null) {
     java.lang.NullPointerException jex = new java.lang.NullPointerException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else if (!(n1 is org.xmlvm._nIArray)) {
     // if it is not an org.xmlvm._nIArray
     java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
     jex.@this();
     throw new org.xmlvm._nExceptionAdapter(jex);
     } else {
     return ((org.xmlvm._nIArray) n1).Length;
     }
     //XMLVM_END_WRAPPER[java.lang.reflect.Array: int getLength(java.lang.Object)]
 }
예제 #16
0
파일: Field.cs 프로젝트: keithkim/xmlvm
 public override void setShort(java.lang.Object n1, short n2)
 {
     org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                           java.lang.reflect.Field._nImpl> adapter
     = (org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                                  java.lang.reflect.Field._nImpl>) this._faddress;
     global::System.Reflection.FieldInfo nativeFieldInfo = adapter.getMemberInfoAdaptee();
     try {
     nativeFieldInfo.SetValue(n1, n2);
     } catch (global::System.Reflection.TargetException e) {
     java.lang.NullPointerException javaException = new java.lang.NullPointerException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.ArgumentException e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.FieldAccessException e) {
     java.lang.IllegalAccessException javaException = new java.lang.IllegalAccessException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
 }
예제 #17
0
파일: Field.cs 프로젝트: keithkim/xmlvm
 public override void set(java.lang.Object n1, java.lang.Object n2)
 {
     org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                           java.lang.reflect.Field._nImpl> adapter
     = (org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                                  java.lang.reflect.Field._nImpl>) this._faddress;
     global::System.Reflection.FieldInfo nativeFieldInfo = adapter.getMemberInfoAdaptee();
     global::System.Type nativeType = nativeFieldInfo.FieldType;
     global::System.Object unwrappedValue;
     try {
     unwrappedValue = org.xmlvm._nTIB.unboxIfPrimitive(n2, nativeType);
     } catch (global::System.Exception e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
     try {
     nativeFieldInfo.SetValue(n1,unwrappedValue);
     } catch (global::System.Reflection.TargetException e) {
     java.lang.NullPointerException javaException = new java.lang.NullPointerException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.ArgumentException e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.FieldAccessException e) {
     java.lang.IllegalAccessException javaException = new java.lang.IllegalAccessException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
 }
예제 #18
0
파일: Field.cs 프로젝트: keithkim/xmlvm
 public override long getLong(java.lang.Object n1)
 {
     org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                          java.lang.reflect.Field._nImpl> adapter
     = (org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                                 java.lang.reflect.Field._nImpl>) this._faddress;
     global::System.Reflection.FieldInfo nativeFieldInfo = adapter.getMemberInfoAdaptee();
     global::System.Object nativeValue;
     try {
     nativeValue = nativeFieldInfo.GetValue(n1);
     } catch (global::System.Reflection.TargetException e) {
     java.lang.NullPointerException javaException = new java.lang.NullPointerException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.ArgumentException e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.FieldAccessException e) {
     java.lang.IllegalAccessException javaException = new java.lang.IllegalAccessException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
     long longValue;
     try {
     longValue = (long) nativeValue;
     } catch (global::System.Exception e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
     return longValue;
     throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
 }
예제 #19
0
        public static global::System.Object get(global::java.lang.Object n1, int n2)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: java.lang.Object get(java.lang.Object, int)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <object> )
            {
                return(((org.xmlvm._nArrayAdapter <object>)n1)[n2]);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <bool> )
            {
                bool unwrappedBoolean    = ((org.xmlvm._nArrayAdapter <bool>)n1)[n2];
                java.lang.Boolean result = new java.lang.Boolean();
                result.@this(unwrappedBoolean);
                return(result);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <sbyte> )
            {
                sbyte          unwrappedByte = ((org.xmlvm._nArrayAdapter <sbyte>)n1)[n2];
                java.lang.Byte result        = new java.lang.Byte();
                result.@this(unwrappedByte);
                return(result);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <char> )
            {
                char unwrappedChar         = ((org.xmlvm._nArrayAdapter <char>)n1)[n2];
                java.lang.Character result = new java.lang.Character();
                result.@this(unwrappedChar);
                return(result);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <short> )
            {
                short           unwrappedShort = ((org.xmlvm._nArrayAdapter <short>)n1)[n2];
                java.lang.Short result         = new java.lang.Short();
                result.@this(unwrappedShort);
                return(result);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <int> )
            {
                int unwrappedInteger     = ((org.xmlvm._nArrayAdapter <int>)n1)[n2];
                java.lang.Integer result = new java.lang.Integer();
                result.@this(unwrappedInteger);
                return(result);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <long> )
            {
                long           unwrappedLong = ((org.xmlvm._nArrayAdapter <long>)n1)[n2];
                java.lang.Long result        = new java.lang.Long();
                result.@this(unwrappedLong);
                return(result);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <float> )
            {
                float           unwrappedFloat = ((org.xmlvm._nArrayAdapter <float>)n1)[n2];
                java.lang.Float result         = new java.lang.Float();
                result.@this(unwrappedFloat);
                return(result);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <double> )
            {
                double           unwrappedDouble = ((org.xmlvm._nArrayAdapter <double>)n1)[n2];
                java.lang.Double result          = new java.lang.Double();
                result.@this(unwrappedDouble);
                return(result);
            }
            else if (!(n1 is org.xmlvm._nIArray))
            {
                // it is not an org.xmlvm._nIArray
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this(org.xmlvm._nUtil.toJavaString("Not an array"));
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else
            {
                // something went wrong
                throw new org.xmlvm._nNativeImplementationException();
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: java.lang.Object get(java.lang.Object, int)]
        }
예제 #20
0
파일: Field.cs 프로젝트: keithkim/xmlvm
 public override global::System.Object get(java.lang.Object n1)
 {
     org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                           java.lang.reflect.Field._nImpl> adapter
     = (org.xmlvm._nMemberInfoAdapter<global::System.Reflection.FieldInfo,
                                  java.lang.reflect.Field._nImpl>) this._faddress;
     global::System.Reflection.FieldInfo nativeFieldInfo = adapter.getMemberInfoAdaptee();
     global::System.Object nativeValue;
     try {
     nativeValue = nativeFieldInfo.GetValue(n1);
     } catch (global::System.Reflection.TargetException e) {
     java.lang.NullPointerException javaException = new java.lang.NullPointerException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.ArgumentException e) {
     java.lang.IllegalArgumentException javaException = new java.lang.IllegalArgumentException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     } catch (global::System.FieldAccessException e) {
     java.lang.IllegalAccessException javaException = new java.lang.IllegalAccessException();
     javaException.@this();
     org.xmlvm._nExceptionAdapter nativeException = new org.xmlvm._nExceptionAdapter(javaException);
     throw nativeException;
     }
     global::System.Type nativeType = nativeFieldInfo.FieldType;
     global::System.Object result = org.xmlvm._nTIB.boxIfPrimitive(nativeValue, nativeType);
     return result;
 }
예제 #21
0
        public static void set(global::java.lang.Object n1, int n2, global::java.lang.Object n3)
        {
//XMLVM_BEGIN_WRAPPER[java.lang.reflect.Array: void set(java.lang.Object, int, java.lang.Object)]
            throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
            if (n1 == null)
            {
                java.lang.NullPointerException jex = new java.lang.NullPointerException();
                jex.@this();
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
            else if (n1 is org.xmlvm._nArrayAdapter <object> )
            {
                ((org.xmlvm._nArrayAdapter <object>)n1)[n2] = n3;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <bool>) &&
                     (n3 is java.lang.Boolean))
            {
                bool unwrappedBoolean = ((java.lang.Boolean)n3).booleanValue();
                ((org.xmlvm._nArrayAdapter <bool>)n1)[n2] = unwrappedBoolean;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <sbyte>) &&
                     (n3 is java.lang.Byte))
            {
                sbyte unwrappedByte = ((java.lang.Byte)n3).byteValue();
                ((org.xmlvm._nArrayAdapter <sbyte>)n1)[n2] = unwrappedByte;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <char>) &&
                     (n3 is java.lang.Character))
            {
                char unwrappedChar = ((java.lang.Character)n3).charValue();
                ((org.xmlvm._nArrayAdapter <char>)n1)[n2] = unwrappedChar;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <short>) &&
                     (n3 is java.lang.Short))
            {
                short unwrappedShort = ((java.lang.Short)n3).shortValue();
                ((org.xmlvm._nArrayAdapter <short>)n1)[n2] = unwrappedShort;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <int>) &&
                     (n3 is java.lang.Integer))
            {
                int unwrappedInteger = ((java.lang.Integer)n3).intValue();
                ((org.xmlvm._nArrayAdapter <int>)n1)[n2] = unwrappedInteger;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <long>) &&
                     (n3 is java.lang.Long))
            {
                long unwrappedLong = ((java.lang.Long)n3).longValue();
                ((org.xmlvm._nArrayAdapter <long>)n1)[n2] = unwrappedLong;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <float>) &&
                     (n3 is java.lang.Float))
            {
                float unwrappedFloat = ((java.lang.Float)n3).floatValue();
                ((org.xmlvm._nArrayAdapter <float>)n1)[n2] = unwrappedFloat;
                return;
            }
            else if ((n1 is org.xmlvm._nArrayAdapter <double>) &&
                     (n3 is java.lang.Double))
            {
                double unwrappedDouble = ((java.lang.Double)n3).doubleValue();
                ((org.xmlvm._nArrayAdapter <double>)n1)[n2] = unwrappedDouble;
                return;
            }
            else
            {
                // either it is not an org.xmlvm._nIArray
                //   or the given value cannot be unwrapped to the component type
                //   of this array
                java.lang.IllegalArgumentException jex = new java.lang.IllegalArgumentException();
                jex.@this(org.xmlvm._nUtil.toJavaString("Not an array"));
                throw new org.xmlvm._nExceptionAdapter(jex);
            }
//XMLVM_END_WRAPPER[java.lang.reflect.Array: void set(java.lang.Object, int, java.lang.Object)]
        }