Package com.sun.jna

Examples of com.sun.jna.ToNativeConverter.nativeType()


        (Class<? extends Number>) new ID().nativeType();
       
    @Test public void convertsNSObjectAsArgumentToID() { 
  ToNativeConverter converter = new ObjCObjectTypeConverter(ObjCObject.class);
      // We treat all NSObject's equally in toNative, see RococoaTypeMapper
        assertEquals(primitiveTypeOfID, converter.nativeType());
       
  NSObject nsObject = Rococoa.create("NSObject", NSObject.class);

        Number nativeValue = (Number) converter.toNative(nsObject, null);
        assertEquals(primitiveTypeOfID, nativeValue.getClass());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.