Java 类com.sun.jna.ToNativeConverter 实例源码

项目:gstreamer1.x-java    文件:GTypeMapper.java   
@SuppressWarnings("rawtypes")
public ToNativeConverter getToNativeConverter(Class type) {
       if (NativeObject.class.isAssignableFrom(type)) {
           return nativeObjectConverter;
       } else if (NativeValue.class.isAssignableFrom(type)) {
           return nativeValueArgumentConverter;
       } else if (Enum.class.isAssignableFrom(type)) {
           return enumConverter;
       } else if (Boolean.class == type || boolean.class == type) {
           return booleanConverter;
       } else if (String.class == type) {
           return stringConverter;        
       } else if (IntPtr.class == type) {
           return intptrConverter;
       } else if (GQuark.class == type) {
           return gquarkConverter;
       }
       return super.getToNativeConverter(type);
   }
项目:gst1-java-core    文件:GTypeMapper.java   
@SuppressWarnings("rawtypes")
public ToNativeConverter getToNativeConverter(Class type) {
       if (NativeObject.class.isAssignableFrom(type)) {
           return nativeObjectConverter;
       } else if (NativeValue.class.isAssignableFrom(type)) {
           return nativeValueArgumentConverter;
       } else if (Enum.class.isAssignableFrom(type)) {
           return enumConverter;
       } else if (Boolean.class == type || boolean.class == type) {
           return booleanConverter;
       } else if (String.class == type) {
           return stringConverter;        
       } else if (IntPtr.class == type) {
           return intptrConverter;
       } else if (GQuark.class == type) {
           return gquarkConverter;
       }
       return super.getToNativeConverter(type);
   }
项目:java-gobject    文件:GTypeMapper.java   
@SuppressWarnings("unchecked")
public ToNativeConverter getToNativeConverter(Class type) {
       if (NativeObject.class.isAssignableFrom(type)) {
           return nativeObjectConverter;
       } else if (GObject.GObjectProxy.class.isAssignableFrom(type)) {
           return nativeObjectConverter;                   
       } else if (NativeValue.class.isAssignableFrom(type)) {
           return nativeValueArgumentConverter;
       } else if (Enum.class.isAssignableFrom(type)) {
           return enumConverter;
       } else if (Boolean.class == type || boolean.class == type) {
           return booleanConverter;   
       } else if (IntPtr.class == type) {
           return intptrConverter;
       } else if (GQuark.class == type) {
           return gquarkConverter;
       } else if (Date.class.isAssignableFrom(type)) {
        return dateConverter;
       }
       return super.getToNativeConverter(type);
   }