Inheritance: IJavaObject
Exemple #1
0
        public FieldId FromReflectedField(JavaObject field)
        {
            IntPtr res = fromReflectedField.Invoke(envPtr, field.mJvmHandle);

            ExceptionTest();
            return(new FieldId(res));
        }
Exemple #2
0
        public bool CallBooleanMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
        {
            bool res = callBooleanMethod(envPtr, obj.JvmHandle, methodIdNative.native, args) != 0;

            ExceptionTest();
            return(res);
        }
Exemple #3
0
        public double CallDoubleMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
        {
            double res = callDoubleMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);

            ExceptionTest();
            return(res);
        }
Exemple #4
0
        public long CallLongMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
        {
            long res = callLongMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);

            ExceptionTest();
            return(res);
        }
Exemple #5
0
        public char CallCharMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
        {
            var res = (char)callCharMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);

            ExceptionTest();
            return(res);
        }
Exemple #6
0
        public float CallFloatMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
        {
            float res = callFloatMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);

            ExceptionTest();
            return(res);
        }
Exemple #7
0
        public long GetLongField(JavaObject obj, FieldId fieldID)
        {
            long res = getLongField(envPtr, obj.JvmHandle, fieldID.native);

            ExceptionTest();
            return(res);
        }
Exemple #8
0
        public bool GetBooleanField(JavaObject obj, FieldId fieldID)
        {
            bool res = getBooleanField(envPtr, obj.JvmHandle, fieldID.native) != 0;

            ExceptionTest();
            return(res);
        }
Exemple #9
0
        public double GetDoubleField(JavaObject obj, FieldId fieldID)
        {
            double res = getDoubleField(envPtr, obj.JvmHandle, fieldID.native);

            ExceptionTest();
            return(res);
        }
Exemple #10
0
        public float GetFloatField(JavaObject obj, FieldId fieldID)
        {
            float res = getFloatField(envPtr, obj.JvmHandle, fieldID.native);

            ExceptionTest();
            return(res);
        }
Exemple #11
0
        public char GetCharField(JavaObject obj, FieldId fieldID)
        {
            var res = (char)getCharField(envPtr, obj.JvmHandle, fieldID.native);

            ExceptionTest();
            return(res);
        }
Exemple #12
0
        public double CallNonVirtualDoubleMethod(JavaObject obj, JniHandle clazz, MethodId methodIdNative, params Value[] args)
        {
            var res = callNonvirtualDoubleMethod(envPtr, obj.JvmHandle, clazz, methodIdNative.native, args);

            ExceptionTest();
            return(res);
        }
Exemple #13
0
        public short GetShortField(JavaObject obj, FieldId fieldID)
        {
            short res = getShortField(envPtr, obj.JvmHandle, fieldID.native);

            ExceptionTest();
            return(res);
        }
Exemple #14
0
        public static Value ConvertToValue(JavaObject o)
        {
            if (o == null)
            {
                return(Value.Null);
            }

            Value ret = new Value();

            ret._object = o.mJvmHandle;
            return(ret);
        }
Exemple #15
0
 internal void SetStaticObjectField(JniHandle clazz, FieldId fieldID, JavaObject value)
 {
     setStaticObjectField(envPtr, clazz, fieldID.native, value.JvmHandle);
     ExceptionTest();
 }
Exemple #16
0
 internal void SetDoubleField(JavaObject obj, FieldId fieldID, double value)
 {
     setDoubleField(envPtr, obj.JvmHandle, fieldID.native, value);
     ExceptionTest();
 }
Exemple #17
0
 internal void SetDoubleField(JavaObject obj, FieldId fieldID, double value)
 {
     setDoubleField(envPtr, obj.JvmHandle, fieldID.native, value);
     ExceptionTest();
 }
Exemple #18
0
 internal void SetStaticObjectField(JniHandle clazz, FieldId fieldID, JavaObject value)
 {
     setStaticObjectField(envPtr, clazz, fieldID.native, value.JvmHandle);
     ExceptionTest();
 }
Exemple #19
0
 public FieldId FromReflectedField(JavaObject field)
 {
     IntPtr res = fromReflectedField.Invoke(envPtr, field.mJvmHandle);
     ExceptionTest();
     return new FieldId(res);
 }
Exemple #20
0
 public void CallNonVirtualVoidMethod(JavaObject obj, JniHandle clazz, MethodId methodIdNative, params Value[] args)
 {
     callNonvirtualVoidMethod(envPtr, obj.JvmHandle, clazz, methodIdNative.native, args);
     ExceptionTest();
 }
Exemple #21
0
 public char CallCharMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
 {
     var res = (char)callCharMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);
     ExceptionTest();
     return res;
 }
Exemple #22
0
 public double GetDoubleField(JavaObject obj, FieldId fieldID)
 {
     double res = getDoubleField(envPtr, obj.JvmHandle, fieldID.native);
     ExceptionTest();
     return res;
 }
Exemple #23
0
 public int GetIntField(JavaObject obj, FieldId fieldID)
 {
     return(GetIntField(obj.JvmHandle, fieldID));
 }
Exemple #24
0
 public float GetFloatField(JavaObject obj, FieldId fieldID)
 {
     float res = getFloatField(envPtr, obj.JvmHandle, fieldID.native);
     ExceptionTest();
     return res;
 }
Exemple #25
0
 public byte GetByteField(JavaObject obj, FieldId fieldID)
 {
     byte res = getByteField(envPtr, obj.JvmHandle, fieldID.native);
     ExceptionTest();
     return res;
 }
Exemple #26
0
 public char GetCharField(JavaObject obj, FieldId fieldID)
 {
     var res = (char) getCharField(envPtr, obj.JvmHandle, fieldID.native);
     ExceptionTest();
     return res;
 }
Exemple #27
0
 internal void SetBooleanField(JavaObject obj, FieldId fieldID, bool value)
 {
     setBooleanField(envPtr, obj.JvmHandle, fieldID.native, value ? (byte) 1 : (byte) 0);
     ExceptionTest();
 }
Exemple #28
0
 internal void SetFloatField(JavaObject obj, FieldId fieldID, float value)
 {
     setFloatField(envPtr, obj.JvmHandle, fieldID.native, value);
     ExceptionTest();
 }
Exemple #29
0
 public long CallLongMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
 {
     long res = callLongMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);
     ExceptionTest();
     return res;
 }
Exemple #30
0
 public int GetIntField(JavaObject obj, FieldId fieldID)
 {
     return GetIntField(obj.JvmHandle, fieldID);
 }
Exemple #31
0
 public short CallNonVirtualShortMethod(JavaObject obj, JniHandle clazz, MethodId methodIdNative, params Value[] args)
 {
     var res = callNonvirtualShortMethod(envPtr, obj.JvmHandle, clazz, methodIdNative.native, args);
     ExceptionTest();
     return res;
 }
Exemple #32
0
 public long GetLongField(JavaObject obj, FieldId fieldID)
 {
     long res = getLongField(envPtr, obj.JvmHandle, fieldID.native);
     ExceptionTest();
     return res;
 }
Exemple #33
0
 public bool CallBooleanMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
 {
     bool res = callBooleanMethod(envPtr, obj.JvmHandle, methodIdNative.native, args) != 0;
     ExceptionTest();
     return res;
 }
Exemple #34
0
 public short GetShortField(JavaObject obj, FieldId fieldID)
 {
     short res = getShortField(envPtr, obj.JvmHandle, fieldID.native);
     ExceptionTest();
     return res;
 }
Exemple #35
0
 public double CallDoubleMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
 {
     double res = callDoubleMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);
     ExceptionTest();
     return res;
 }
Exemple #36
0
 internal void SetBooleanField(JavaObject obj, FieldId fieldID, bool value)
 {
     setBooleanField(envPtr, obj.JvmHandle, fieldID.native, value ? (byte)1 : (byte)0);
     ExceptionTest();
 }
Exemple #37
0
 public float CallFloatMethod(JavaObject obj, MethodId methodIdNative, params Value[] args)
 {
     float res = callFloatMethod(envPtr, obj.JvmHandle, methodIdNative.native, args);
     ExceptionTest();
     return res;
 }
Exemple #38
0
 internal void SetFloatField(JavaObject obj, FieldId fieldID, float value)
 {
     setFloatField(envPtr, obj.JvmHandle, fieldID.native, value);
     ExceptionTest();
 }
Exemple #39
0
 public bool GetBooleanField(JavaObject obj, FieldId fieldID)
 {
     bool res = getBooleanField(envPtr, obj.JvmHandle, fieldID.native) != 0;
     ExceptionTest();
     return res;
 }
Exemple #40
0
 public void CallNonVirtualVoidMethod(JavaObject obj, JniHandle clazz, MethodId methodIdNative, params Value[] args)
 {
     callNonvirtualVoidMethod(envPtr, obj.JvmHandle, clazz, methodIdNative.native, args);
     ExceptionTest();
 }