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

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


            emitter.emit();
        }

        private void emit() throws IOException {
            ClassDeclaration decl = f.newClassDeclaration(
                    new JavadocBuilder(f)
                        .text("TSVファイルなどのレコードを表すファイルを入力として<code>{0}</code>を読み出す",
                                model.getName())
                        .toJavadoc(),
                    new AttributeBuilder(f)
                        .Public()
View Full Code Here


                    null);
        }

        private TypeBodyDeclaration createConstructor() {
            return f.newConstructorDeclaration(
                    new JavadocBuilder(f)
                        .text("インスタンスを生成する。")
                        .param(createParserFieldName())
                            .text("利用するパーサー")
                        .exception(context.resolve(IllegalArgumentException.class))
                            .text("引数に<code>null</code>が指定された場合")
View Full Code Here

        name.addFirst("get");
        name.addLast("as");
        name.addLast("string");
        ModelFactory f = context.getModelFactory();
        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を返す。",
                            context.getDescription(property))
                    .returns()
                        .text("{0}",
                                context.getDescription(property))
View Full Code Here

        ModelFactory f = context.getModelFactory();
        SimpleName paramName = context.createVariableName(
                context.getFieldName(property).getToken());

        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を設定する。",
                            context.getDescription(property))
                    .param(paramName)
                        .text("設定する値",
                                context.getDescription(property))
View Full Code Here

            emitter.emit();
        }

        private void emit() throws IOException {
            ClassDeclaration decl = f.newClassDeclaration(
                    new JavadocBuilder(f)
                        .text("<code>{0}</code>をTSVなどのレコード形式で出力する。",
                                model.getSymbol().getName())
                        .toJavadoc(),
                    new AttributeBuilder(f)
                        .Public()
View Full Code Here

                    null);
        }

        private TypeBodyDeclaration createConstructor() {
            return f.newConstructorDeclaration(
                    new JavadocBuilder(f)
                        .text("インスタンスを生成する。")
                        .param(createEmitterFieldName())
                            .text("利用するエミッター")
                        .exception(context.resolve(IllegalArgumentException.class))
                            .text("引数にnullが指定された場合")
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.newClassDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を表すデータモデルクラス。", context.getDescription(model))
                    .toJavadoc(),
                createModifiers(),
                context.getTypeName(),
                null,
View Full Code Here

        attributes.addAll(new AttributeBuilder(f)
            .Public()
            .toAttributes());

        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("{0}を返す。",
                            context.getDescription(property))
                    .returns()
                        .text("{0}",
                                context.getDescription(property))
View Full Code Here

    private MethodDeclaration createValueSetter(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

        attributes.addAll(new AttributeBuilder(f)
            .Public()
            .toAttributes());

        return f.newMethodDeclaration(
                new JavadocBuilder(f)
                    .text("<code>null</code>を許す{0}を返す。",
                            context.getDescription(property))
                    .returns()
                        .text("{0}",
                                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.