Esempio n. 1
0
        static bool n_ShouldSkipClass_Ljava_lang_Class_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Google.Gson.IExclusionStrategy __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.IExclusionStrategy> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Class p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Class> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.ShouldSkipClass(p0);

            return(__ret);
        }
Esempio n. 2
0
        static bool n_ShouldSkipField_Lcom_google_gson_FieldAttributes_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Google.Gson.IExclusionStrategy __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.IExclusionStrategy> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Google.Gson.FieldAttributes    p0     = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.FieldAttributes> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.ShouldSkipField(p0);

            return(__ret);
        }
        public unsafe global::Com.Google.Gson.Internal.Excluder WithExclusionStrategy(global::Com.Google.Gson.IExclusionStrategy exclusionStrategy, bool serialization, bool deserialization)
        {
            const string __id = "withExclusionStrategy.(Lcom/google/gson/ExclusionStrategy;ZZ)Lcom/google/gson/internal/Excluder;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((exclusionStrategy == null) ? IntPtr.Zero : ((global::Java.Lang.Object)exclusionStrategy).Handle);
                __args [1] = new JniArgumentValue(serialization);
                __args [2] = new JniArgumentValue(deserialization);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Google.Gson.Internal.Excluder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public unsafe global::Com.Google.Gson.GsonBuilder AddSerializationExclusionStrategy(global::Com.Google.Gson.IExclusionStrategy strategy)
        {
            const string __id = "addSerializationExclusionStrategy.(Lcom/google/gson/ExclusionStrategy;)Lcom/google/gson/GsonBuilder;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((strategy == null) ? IntPtr.Zero : ((global::Java.Lang.Object)strategy).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Google.Gson.GsonBuilder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }