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

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


        }

        private FieldDeclaration createCollectorField() {
            return factory.newFieldDeclaration(
                    null,
                    new AttributeBuilder(factory)
                        .Private()
                        .Final()
                        .toAttributes(),
                    createContextType(),
                    collector,
View Full Code Here


        }

        private FieldDeclaration createKeyField() {
            return factory.newFieldDeclaration(
                    null,
                    new AttributeBuilder(factory)
                        .Private()
                        .Final()
                        .toAttributes(),
                    keyType,
                    keyModel,
View Full Code Here

        }

        private FieldDeclaration createValueField() {
            return factory.newFieldDeclaration(
                    null,
                    new AttributeBuilder(factory)
                        .Private()
                        .Final()
                        .toAttributes(),
                    valueType,
                    valueModel,
View Full Code Here

                    new JavadocBuilder(factory)
                        .text("インスタンスを生成する。")
                        .param(collector)
                            .text("実際の出力先")
                        .toJavadoc(),
                    new AttributeBuilder(factory)
                        .Public()
                        .toAttributes(),
                    name,
                    Collections.singletonList(factory.newFormalParameterDeclaration(
                            createContextType(),
View Full Code Here

        private MethodDeclaration createBody() {
            SimpleName argument = names.create("result");
            List<Statement> statements = createStatements(argument);
            return factory.newMethodDeclaration(
                    null,
                    new AttributeBuilder(factory)
                        .annotation(t(Override.class))
                        .Public()
                        .toAttributes(),
                    t(void.class),
                    factory.newSimpleName(FlowElementProcessor.RESULT_METHOD_NAME),
View Full Code Here

                    .linkType(importer.toType(resource.getMasterDataClass().getType()))
                    .text("と")
                    .linkType(importer.toType(resource.getTransactionDataClass().getType()))
                    .text("を結合するためのリソース。")
                    .toJavadoc(),
                new AttributeBuilder(factory)
                    .Public()
                    .toAttributes(),
                name,
                importer.resolve(new TypeBuilder(factory, Models.toType(factory, JoinResource.class))
                    .parameterize(
View Full Code Here

    private MethodDeclaration createGetCacheName() {
        Expression result = Models.toLiteral(factory, resource.getCacheName());
        return factory.newMethodDeclaration(
                null,
                new AttributeBuilder(factory)
                    .Protected()
                    .toAttributes(),
                importer.toType(String.class),
                factory.newSimpleName("getCacheName"),
                Collections.<FormalParameterDeclaration>emptyList(),
View Full Code Here

        Expression result = new TypeBuilder(factory, importer.toType(resource.getMasterDataClass().getType()))
            .newObject()
            .toExpression();
        return factory.newMethodDeclaration(
                null,
                new AttributeBuilder(factory)
                    .Protected()
                    .toAttributes(),
                importer.toType(resource.getMasterDataClass().getType()),
                factory.newSimpleName("createValueObject"),
                Collections.<FormalParameterDeclaration>emptyList(),
View Full Code Here

        }
        statements.add(new ExpressionBuilder(factory, key)
            .toReturnStatement());
        return factory.newMethodDeclaration(
                null,
                new AttributeBuilder(factory)
                    .Protected()
                    .toAttributes(),
                Collections.<TypeParameterDeclaration>emptyList(),
                importer.toType(LookUpKey.class),
                factory.newSimpleName(methodName),
View Full Code Here

        return util.getImplementorName(operatorClass.getElement());
    }

    @Override
    protected List<? extends Attribute> getAttribuets() {
        return new AttributeBuilder(factory)
            .annotation(util.t(Generated.class), util.v("{0}:{1}",
                    getClass().getSimpleName(),
                    OperatorCompiler.VERSION))
            .Public()
            .toAttributes();
View Full Code Here

TOP

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

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.