static void n_Write_Lcom_google_gson_stream_JsonWriter_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Google.Gson.TypeAdapter       __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.TypeAdapter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Google.Gson.Stream.JsonWriter p0     = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.Stream.JsonWriter> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object p1 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.Write(p0, p1);
 }
 static void n_Write_Lcom_google_gson_stream_JsonWriter_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native__out, IntPtr native_value)
 {
     global::Com.Google.Gson.Gson.FutureTypeAdapter __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.Gson.FutureTypeAdapter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Google.Gson.Stream.JsonWriter      @out   = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.Stream.JsonWriter> (native__out, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object value = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_value, JniHandleOwnership.DoNotTransfer);
     __this.Write(@out, value);
 }
Ejemplo n.º 3
0
        static IntPtr n_Value_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_value)
        {
            global::Com.Google.Gson.Stream.JsonWriter __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.Stream.JsonWriter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string value = JNIEnv.GetString(native_value, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Value(value));

            return(__ret);
        }
        public static unsafe void Write(global::Com.Google.Gson.JsonElement element, global::Com.Google.Gson.Stream.JsonWriter writer)
        {
            const string __id = "write.(Lcom/google/gson/JsonElement;Lcom/google/gson/stream/JsonWriter;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((element == null) ? IntPtr.Zero : ((global::Java.Lang.Object)element).Handle);
                __args [1] = new JniArgumentValue((writer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)writer).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
        public unsafe void RawWrite(global::Com.Google.Gson.Stream.JsonWriter @out, global::Java.Sql.Date value)
        {
            const string __id = "write.(Lcom/google/gson/stream/JsonWriter;Ljava/sql/Date;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((@out == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@out).Handle);
                __args [1] = new JniArgumentValue((value == null) ? IntPtr.Zero : ((global::Java.Lang.Object)value).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 6
0
            public override unsafe void Write(global::Com.Google.Gson.Stream.JsonWriter @out, global::Java.Lang.Object value)
            {
                const string __id         = "write.(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V";
                IntPtr       native_value = JNIEnv.ToLocalJniHandle(value);

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                    __args [0] = new JniArgumentValue((@out == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@out).Handle);
                    __args [1] = new JniArgumentValue(native_value);
                    _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
                } finally {
                    JNIEnv.DeleteLocalRef(native_value);
                }
            }
 public abstract void Write(global::Com.Google.Gson.Stream.JsonWriter p0, global::Java.Lang.Object p1);
        public unsafe void ToJson(global::Java.Lang.Object src, global::Java.Lang.Reflect.IType typeOfSrc, global::Com.Google.Gson.Stream.JsonWriter writer)
        {
            const string __id = "toJson.(Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/stream/JsonWriter;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((src == null) ? IntPtr.Zero : ((global::Java.Lang.Object)src).Handle);
                __args [1] = new JniArgumentValue((typeOfSrc == null) ? IntPtr.Zero : ((global::Java.Lang.Object)typeOfSrc).Handle);
                __args [2] = new JniArgumentValue((writer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)writer).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 9
0
 static IntPtr n_Value_J(IntPtr jnienv, IntPtr native__this, long value)
 {
     global::Com.Google.Gson.Stream.JsonWriter __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.Stream.JsonWriter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Value(value)));
 }
Ejemplo n.º 10
0
 static void n_Flush(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Google.Gson.Stream.JsonWriter __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.Stream.JsonWriter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Flush();
 }