Package com.facebook.swift.codec

Examples of com.facebook.swift.codec.ThriftUnion


    }

    @Override
    protected String extractName()
    {
        ThriftUnion annotation = getStructClass().getAnnotation(ThriftUnion.class);
        if (annotation == null) {
            return getStructClass().getSimpleName();
        }
        else if (!annotation.value().isEmpty()) {
            return annotation.value();
        }
        else {
            return getStructClass().getSimpleName();
        }
    }
View Full Code Here


    }

    @Override
    protected Class<?> extractBuilderClass()
    {
        ThriftUnion annotation = getStructClass().getAnnotation(ThriftUnion.class);
        if (annotation != null && !annotation.builder().equals(void.class)) {
            return annotation.builder();
        }
        else {
            return null;
        }
    }
View Full Code Here

    }

    @Override
    protected String extractName()
    {
        ThriftUnion annotation = structClass.getAnnotation(ThriftUnion.class);
        if (annotation == null) {
            return structClass.getSimpleName();
        }
        else if (!annotation.value().isEmpty()) {
            return annotation.value();
        }
        else {
            return structClass.getSimpleName();
        }
    }
View Full Code Here

    }

    @Override
    protected Class<?> extractBuilderClass()
    {
        ThriftUnion annotation = structClass.getAnnotation(ThriftUnion.class);
        if (annotation != null && !annotation.builder().equals(void.class)) {
            return annotation.builder();
        }
        else {
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of com.facebook.swift.codec.ThriftUnion

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.