Examples of toMemberName()


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

                || segments.get(segments.size() - 1).equals("option") == false) {
            return null;
        }
        name.removeLast();
        name.removeFirst();
        String propertyName = name.toMemberName();
        return new DefaultPropertyMirror(propertyName, element);
    }

    static String normalize(String name) {
        assert name != null;
View Full Code Here

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

                || segments.get(segments.size() - 1).equals("option") == false) {
            return null;
        }
        name.removeLast();
        name.removeFirst();
        return name.toMemberName();
    }

    /**
     * インスタンスを生成する。
     * @param factory 利用するファクトリー
View Full Code Here

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

    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();
    }

    @Override
View Full Code Here

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

    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();
    }

    @Override
    public Statement assign(Expression target, Expression source) {
View Full Code Here

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

    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();
    }

    @Override
    public Statement createWriter(Expression object, Expression dataOutput) {
View Full Code Here

Examples of com.asakusafw.dmdl.java.util.JavaName.toMemberName()

         * @return the result
         */
        public boolean is(String name) {
            JavaName jn = JavaName.of(new AstSimpleName(null, name));
            jn.addFirst("is");
            Object result = invoke(jn.toMemberName());
            return (Boolean) result;
        }

        /**
         * Invokes get~.
View Full Code Here

Examples of com.asakusafw.dmdl.java.util.JavaName.toMemberName()

         * @return the result
         */
        public Object get(String name) {
            JavaName jn = JavaName.of(new AstSimpleName(null, name));
            jn.addFirst("get");
            return invoke(jn.toMemberName());
        }

        /**
         * Invokes set~.
         * @param name the property name
View Full Code Here

Examples of com.asakusafw.dmdl.java.util.JavaName.toMemberName()

         * @param value the value to set
         */
        public void set(String name, Object value) {
            JavaName jn = JavaName.of(new AstSimpleName(null, name));
            jn.addFirst("set");
            invoke(jn.toMemberName(), value);
        }

        /**
         * Invokes get~Option.
         * @param name the property name
View Full Code Here

Examples of com.asakusafw.dmdl.java.util.JavaName.toMemberName()

         */
        public ValueOption<?> getOption(String name) {
            JavaName jn = JavaName.of(new AstSimpleName(null, name));
            jn.addFirst("get");
            jn.addLast("option");
            return (ValueOption<?>) invoke(jn.toMemberName());
        }

        /**
         * Invokes set~Option.
         * @param name the property name
View Full Code Here

Examples of com.asakusafw.dmdl.java.util.JavaName.toMemberName()

         */
        public void setOption(String name, ValueOption<?> option) {
            JavaName jn = JavaName.of(new AstSimpleName(null, name));
            jn.addFirst("set");
            jn.addLast("option");
            invoke(jn.toMemberName(), option);
        }

        /**
         * Invokes reset().
         */
 
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.