com.apple.internal.jobjc.generator.model.types.JType.JCFType Java Examples
The following examples show how to use
com.apple.internal.jobjc.generator.model.types.JType.JCFType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TypeToJType.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #2
Source File: TypeToJType.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #3
Source File: TypeToJType.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #4
Source File: TypeToJType.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #5
Source File: TypeToJType.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #6
Source File: TypeToJType.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #7
Source File: TypeToJType.java From hottub with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #8
Source File: TypeToJType.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #9
Source File: TypeToJType.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #10
Source File: TypeToJType.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #11
Source File: TypeToJType.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }
Example #12
Source File: TypeToJType.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
protected JType accept(Type type, NPointer nt32, NPointer nt64){ final CFType cfType = TypeCache.inst().getCFTypeForName(type.name); if(cfType != null) return new JCFType(cfType); final Opaque opaque = TypeCache.inst().getOpaqueForName(type.name); if(opaque != null) return new JOpaque(opaque); if("void*".equals(type.name)) return JPointer.VOID_PTR; if(type.name != null && type.name.endsWith("*")){ final String subDeclaredType = type.name.substring(0, type.name.length() - 1); final Type subType = TypeCache.inst().getTypeByName(subDeclaredType); if (subType == null) return new JUnknown(type); // TODO Instead of JUnknown, VOID_PTR might be a good fallback. Investigate. final JType javaType = TypeToJType.inst().getJTypeFor(subType).getParameterizableType(); final JPointer pointer = new JPointer(javaType); return pointer; } return new JUnknown(type); }