Package com.asakusafw.compiler.common

Examples of com.asakusafw.compiler.common.JavaName.addLast()


    @Override
    public Expression createIsNull(Expression object) {
        JavaName javaName = JavaName.of(name);
        javaName.addFirst("get");
        javaName.addLast("option");
        return new ExpressionBuilder(factory, object)
            .method(javaName.toMemberName())
            .method("isNull")
            .toExpression();
    }
View Full Code Here


    @Override
    public Expression createGetter(Expression object) {
        JavaName javaName = JavaName.of(name);
        javaName.addFirst("get");
        javaName.addLast("option");
        return new ExpressionBuilder(factory, object)
            .method(javaName.toMemberName())
            .toExpression();
    }
View Full Code Here

    @Override
    public Statement createSetter(Expression object, Expression value) {
        JavaName javaName = JavaName.of(name);
        javaName.addFirst("set");
        javaName.addLast("option");
        return new ExpressionBuilder(factory, object)
            .method(javaName.toMemberName(), value)
            .toStatement();
    }
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.