Package com.facebook.swift.parser.model

Examples of com.facebook.swift.parser.model.ThriftType


                thriftName = names.get(1);
                thriftNamespace = names.get(0);
            }

            final String javatypeName = thriftNamespace + "." + TemplateContextGenerator.mangleJavatypeName(thriftName);
            final ThriftType thriftType = typedefRegistry.findType(javatypeName);
            if (thriftType == null) {
                final SwiftJavaType javaType = typeRegistry.findType(javatypeName);
                return (javaType == null) ? null : javaType.getSimpleName();
            }
            else {
View Full Code Here


                thriftName = names.get(1);
                thriftNamespace = names.get(0);
            }

            final String javatypeName = thriftNamespace + "." + TemplateContextGenerator.mangleJavatypeName(thriftName);
            final ThriftType thriftType = typedefRegistry.findType(javatypeName);
            if (thriftType == null) {
                final SwiftJavaType javaType = typeRegistry.findType(javatypeName);
                return (javaType == null) ? null : shortenClassName(javaType.getClassName());
            }
            else {
View Full Code Here

                thriftName = names.get(1);
                thriftNamespace = names.get(0);
            }

            final String javatypeName = thriftNamespace + "." + TemplateContextGenerator.mangleJavatypeName(thriftName);
            final ThriftType thriftType = typedefRegistry.findType(javatypeName);
            if (thriftType == null) {
                final SwiftJavaType javaType = typeRegistry.findType(javatypeName);
                return (javaType == null) ? null : shortenClassName(javaType.getClassName());
            }
            else {
View Full Code Here

                thriftName = names.get(1);
                thriftNamespace = names.get(0);
            }

            final String javatypeName = thriftNamespace + "." + TemplateContextGenerator.mangleJavatypeName(thriftName);
            final ThriftType thriftType = typedefRegistry.findType(javatypeName);
            if (thriftType == null) {
                final SwiftJavaType javaType = typeRegistry.findType(javatypeName);
                return (javaType == null) ? null : javaType.getSimpleName();
            }
            else {
View Full Code Here

            checkArgument(value instanceof ConstList);
            return renderSetConstant((SetType) thriftType, (ConstList) value);
        }
        else if (thriftType instanceof IdentifierType) {
            String typeName = ((IdentifierType) thriftType).getName();
            ThriftType resolvedType = typedefRegistry.findType(defaultNamespace, typeName);
            checkState(resolvedType != null, format("Could not resolve type named '%s'", typeName));
            return render(resolvedType, value);
        }
        else {
            throw new IllegalStateException("Not yet implemented");
View Full Code Here

                thriftName = names.get(1);
                thriftNamespace = names.get(0);
            }

            final String thriftTypeName = thriftNamespace + "." + thriftName;
            final ThriftType thriftType = typedefRegistry.findType(thriftTypeName);
            if (thriftType == null) {
                final SwiftJavaType javaType = typeRegistry.findType(thriftTypeName);
                return (javaType == null) ? null : shortenClassName(javaType.getClassName());
            }
            else {
View Full Code Here

TOP

Related Classes of com.facebook.swift.parser.model.ThriftType

Copyright © 2018 www.massapicom. 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.