Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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");
 }
Exemplo n.º 5
0
 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;
 }