Java源码示例:com.apple.internal.jobjc.generator.model.CFType

示例1
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);
}
 
示例2
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);
}
 
示例3
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);
}
 
示例4
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);
}
 
示例5
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);
}
 
示例6
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);
}
 
示例7
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);
}
 
示例8
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);
}
 
示例9
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);
}
 
示例10
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);
}
 
示例11
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);
}
 
示例12
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);
}
 
示例13
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例14
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例15
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例16
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例17
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例18
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例19
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例20
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例21
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例22
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例23
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例24
public CFTypeClassFile(final CFType cftype) {
    super(cftype.parent.pkg, cftype.type.getJType().getJavaClassName(), com.apple.jobjc.CFType.class.getCanonicalName());
    this.cftype = cftype;
}
 
示例25
public JCFType(final CFType cfType){ this.cfType = cfType; } 
示例26
public CFType getCFTypeForName(final String declaredType) { return cfTypesByName.get(declaredType); } 
示例27
public JCFType(final CFType cfType){ this.cfType = cfType; } 
示例28
public CFType getCFTypeForName(final String declaredType) { return cfTypesByName.get(declaredType); } 
示例29
public JCFType(final CFType cfType){ this.cfType = cfType; } 
示例30
public CFType getCFTypeForName(final String declaredType) { return cfTypesByName.get(declaredType); }