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

Examples of com.asakusafw.utils.java.model.util.AttributeBuilder.toAttributes()


                    t(KeyInfo.class),
                    "group", factory.newArrayInitializer(group),
                    "order", factory.newArrayInitializer(order));
        }
        return factory.newFormalParameterDeclaration(
                attributes.toAttributes(),
                toSourceType(var.getType().getRepresentation()),
                false,
                name,
                0);
    }
View Full Code Here


        if (description.getBasePath() == null
                || description.getResourcePattern() == null
                || description.getFormatClassName() == null) {
            builder.Abstract();
        }
        return builder.toAttributes();
    }

    private List<TypeBodyDeclaration> createMembers() {
        List<TypeBodyDeclaration> results = Lists.create();
        results.add(createGetModelTypeMethod(description.getModelClassName()));
View Full Code Here

        if (description.getBasePath() == null
                || description.getResourcePattern() == null
                || description.getFormatClassName() == null) {
            builder.Abstract();
        }
        return builder.toAttributes();
    }

    private List<TypeBodyDeclaration> createMembers() {
        List<TypeBodyDeclaration> results = Lists.create();
        results.add(createGetModelTypeMethod(description.getModelClassName()));
View Full Code Here

            }
            attributes.annotation(t(Override.class)).Public();

            return factory.newMethodDeclaration(
                    null,
                    attributes.toAttributes(),
                    t(void.class),
                    factory.newSimpleName("set"),
                    Collections.singletonList(factory.newFormalParameterDeclaration(t(Object.class), raw)),
                    statements);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.