예제 #1
0
        public JavaObject GetObjectValue(JavaObject _obj, JavaClass valclass)
        {
            int objid = env.GetObjectField(_obj.GetID(), id);

            if (objid <= 0)
            {
                return(null);
            }
            JavaObject obj = new JavaObject(env, valclass, objid);

            return(obj);
        }
예제 #2
0
        public JavaObject ObjectInvoke(JavaObject _obj, params object[] paramlist)
        {
            int objid = env.CallObjectMethod(_obj.GetID(), id, ToJNIObjects(paramlist));

            if (objid <= 0)
            {
                return(JavaObject.nullobject);
            }
            JavaClass returntypeclass = new JavaClass(env, returntype);

            return(new JavaObject(env, returntypeclass, objid));
        }
예제 #3
0
 public char GetCharValue(JavaObject _obj)
 {
     return(env.GetCharField(_obj.GetID(), id));
 }
예제 #4
0
 public byte GetByteValue(JavaObject _obj)
 {
     return((byte)env.GetByteField(_obj.GetID(), id));
 }
예제 #5
0
 public bool GetBooleanValue(JavaObject _obj)
 {
     return(env.GetBooleanField(_obj.GetID(), id));
 }
예제 #6
0
 public double GetDoubleValue(JavaObject _obj)
 {
     return(env.GetDoubleField(_obj.GetID(), id));
 }
예제 #7
0
 public float GetFloatValue(JavaObject _obj)
 {
     return(env.GetFloatField(_obj.GetID(), id));
 }
예제 #8
0
 public long GetLongValue(JavaObject _obj)
 {
     return(env.GetLongField(_obj.GetID(), id));
 }
예제 #9
0
 public long LongInvoke(JavaObject _obj, params object[] paramlist)
 {
     return(env.CallLongMethod(_obj.GetID(), id, ToJNIObjects(paramlist)));
 }
예제 #10
0
 public double DoubleInvoke(JavaObject _obj, params object[] paramlist)
 {
     return(env.CallDoubleMethod(_obj.GetID(), id, ToJNIObjects(paramlist)));
 }
예제 #11
0
 public float FloatInvoke(JavaObject _obj, params object[] paramlist)
 {
     return(env.CallFloatMethod(_obj.GetID(), id, ToJNIObjects(paramlist)));
 }
예제 #12
0
 public char CharInvoke(JavaObject _obj, params object[] paramlist)
 {
     return(env.CallCharMethod(_obj.GetID(), id, ToJNIObjects(paramlist)));
 }
예제 #13
0
 public bool BooleanInvoke(JavaObject _obj, params object[] paramlist)
 {
     return(env.CallBooleanMethod(_obj.GetID(), id, ToJNIObjects(paramlist)));
 }
예제 #14
0
 public byte ByteInvoke(JavaObject _obj, params object[] paramlist)
 {
     return((byte)env.CallByteMethod(_obj.GetID(), id, ToJNIObjects(paramlist)));
 }
예제 #15
0
 public short ShortInvoke(JavaObject _obj, params object[] paramlist)
 {
     return(env.CallShortMethod(_obj.GetID(), id, ToJNIObjects(paramlist)));
 }
예제 #16
0
 public short GetShortValue(JavaObject _obj)
 {
     return(env.GetShortField(_obj.GetID(), id));
 }
예제 #17
0
 public int GetIntValue(JavaObject _obj)
 {
     return(env.GetIntField(_obj.GetID(), id));
 }
예제 #18
0
 public void VoidInvoke(JavaObject _obj, params object[] paramlist)
 {
     env.CallVoidMethod(_obj.GetID(), id, ToJNIObjects(paramlist));
 }