Package com.asakusafw.utils.java.model.util

Examples of com.asakusafw.utils.java.model.util.JavadocBuilder


        private SimpleName getClassName() {
            return factory.newSimpleName(String.format("%s%04d", "Naming", index));
        }

        private Javadoc createJavadoc() {
            return new JavadocBuilder(factory)
                .text("A naming output \"{1}\" class for \"{0}\".", moduleId, outputName)
                .toJavadoc();
        }
View Full Code Here


            emitter.emit();
        }

        private void emit() throws IOException {
            ClassDeclaration decl = f.newClassDeclaration(
                    new JavadocBuilder(f)
                        .text("SequenceFile format for ")
                        .linkType(context.resolve(model.getSymbol()))
                        .text(".")
                        .toJavadoc(),
                    new AttributeBuilder(f)
View Full Code Here

            emitter.emit();
        }

        private void emit() throws IOException {
            ClassDeclaration decl = f.newClassDeclaration(
                    new JavadocBuilder(f)
                        .text("An abstract implementation of ")
                        .linkType(context.resolve(model.getSymbol()))
                        .text(" {0} description using Direct I/O SequenceFile",
                                importer ? "importer" : "exporter")
                        .text(".")
View Full Code Here

            new Generator(context, model).emit();
        }

        private void emit() throws IOException {
            ClassDeclaration decl = f.newClassDeclaration(
                    new JavadocBuilder(f)
                        .text("Hive table information for ") //$NON-NLS-1$
                        .linkType(context.resolve(model.getSymbol()))
                        .text(".") //$NON-NLS-1$
                        .toJavadoc(),
                    new AttributeBuilder(f)
View Full Code Here

                    Arrays.asList(f.newReturnStatement()));
        }

        private MethodDeclaration createGetterMethod() {
            return f.newMethodDeclaration(
                    new JavadocBuilder(f)
                        .text("Returns a data model descriptor for ") //$NON-NLS-1$
                        .linkType(context.resolve(model.getSymbol()))
                        .text(".") //$NON-NLS-1$
                        .returns()
                            .text("the descriptor object") //$NON-NLS-1$
View Full Code Here

     * @throws IOException if failed to emit a source program
     */
    public void emit() throws IOException {
        driver.generateResources(context, model);
        context.emit(f.newInterfaceDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を表す射影モデルインターフェース。", context.getDescription(model))
                    .toJavadoc(),
                createModifiers(),
                context.getTypeName(),
                driver.getInterfaces(context, model),
View Full Code Here

    }

    private MethodDeclaration createGetter(PropertyDeclaration property) {
        assert property != null;
        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を返す。",
                            context.getDescription(property))
                    .returns()
                        .text("{0}",
                                context.getDescription(property))
View Full Code Here

    private MethodDeclaration createSetter(PropertyDeclaration property) {
        assert property != null;
        SimpleName paramName = context.createVariableName("value");
        Type valueType = context.getValueType(property);
        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を設定する。",
                            context.getDescription(property))
                    .param(paramName)
                        .text("設定する値",
                                context.getDescription(property))
View Full Code Here

    }

    private MethodDeclaration createOptionGetter(PropertyDeclaration property) throws IOException {
        assert property != null;
        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("<code>null</code>を許す{0}を返す。",
                            context.getDescription(property))
                    .returns()
                        .text("{0}",
                                context.getDescription(property))
View Full Code Here

        assert property != null;
        SimpleName paramName = context.createVariableName("option");

        Type optionType = context.getFieldType(property);
        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を設定する。",
                            context.getDescription(property))
                    .param(paramName)
                        .text("設定する値、<code>null</code>の場合にはこのプロパティが<code>null</code>を表すようになる",
                                context.getDescription(property))
View Full Code Here

TOP

Related Classes of com.asakusafw.utils.java.model.util.JavadocBuilder

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.