Package com.asakusafw.utils.java.model.syntax

Examples of com.asakusafw.utils.java.model.syntax.TypeBodyDeclaration


     */
    protected List<TypeBodyDeclaration> createMembers(T model) {
        List<ModelProperty> properties = model.getProperties();
        List<TypeBodyDeclaration> body = new ArrayList<TypeBodyDeclaration>();
        for (ModelProperty property : properties) {
            TypeBodyDeclaration member = createField(property);
            body.add(member);
        }
        for (ModelProperty property : properties) {
            TypeBodyDeclaration getter = createGetter(property);
            body.add(getter);
            TypeBodyDeclaration setter = createSetter(property);
            body.add(setter);
            TypeBodyDeclaration altGetter = createAltGetter(property);
            if (altGetter != null) {
                body.add(altGetter);
            }
            TypeBodyDeclaration altSetter = createAltSetter(property);
            if (altSetter != null) {
                body.add(altSetter);
            }
            TypeBodyDeclaration optionGetter = createOptionGetter(property);
            body.add(optionGetter);
            TypeBodyDeclaration optionSetter = createOptionSetter(property);
            body.add(optionSetter);
        }
        body.add(createCopier(model));

        body.add(createWritableWrite(model));
View Full Code Here

TOP

Related Classes of com.asakusafw.utils.java.model.syntax.TypeBodyDeclaration

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.