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

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


            assert property != null;
            SimpleName optionGetterName = context.getOptionGetterName(property);
            Expression option = new ExpressionBuilder(f, createModelParameterName())
                .method(optionGetterName)
                .toExpression();
            Statement fill = new ExpressionBuilder(f, createEmitterFieldName())
                .method("emit", option)
                .toStatement();
            return fill;
        }
View Full Code Here


        Expression option = new ExpressionBuilder(f, createModelParameterName())
            .method(optionGetterName)
            .toExpression();

        Statement fill = new ExpressionBuilder(f, createParserFieldName())
            .method("fill", option)
            .toStatement();

        return fill;
    }
View Full Code Here

        Expression option = new ExpressionBuilder(f, createModelParameterName())
            .method(optionGetterName)
            .toExpression();

        Statement fill = new ExpressionBuilder(f, createEmitterFieldName())
            .method("emit", option)
            .toStatement();

        return fill;
    }
View Full Code Here

     * 対象のプロパティに対するオプションゲッターの本体を返す。
     * @param property 対象のプロパティ
     * @return 対応するブロック
     */
    protected Block createBodyForOptionGetter(ModelProperty property) {
        Statement result = thisFieldFor(property)
            .toReturnStatement();
        return f.newBlock(Collections.singletonList(result));
    }
View Full Code Here

     * @return 対応するブロック
     */
    protected Block createBodyForOptionSetter(
            ModelProperty property,
            SimpleName parameterName) {
        Statement result = thisFieldFor(property)
            .method(Constants.NAME_OPTION_COPIER, parameterName)
            .toStatement();
        return f.newBlock(Collections.singletonList(result));
    }
View Full Code Here

TOP

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

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.