Examples of countParameters()


Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

                    JavaName.of(var.getSimpleName().toString()).toMemberName(),
                    a.getParameterType(0).getType(),
                    a.getParameterName(0),
                    null);
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            builder.addParameter(
                    a.getParameterDocument(i),
                    a.getParameterName(i),
                    a.getParameterType(i).getType(),
                    i);
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

            a.error("変換演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
        if (a.getParameterType(0).isModel() == false) {
            a.error(0, "変換演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            if (a.getParameterType(i).isBasic() == false) {
                a.error(i, "変換演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Convert annotation = context.element.getAnnotation(Convert.class);
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

                a.getReturnDocument(),
                annotation.convertedPort(),
                a.getReturnType().getType(),
                null,
                null);
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            builder.addParameter(
                    a.getParameterDocument(i),
                    a.getParameterName(i),
                    a.getParameterType(i).getType(),
                    i);
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

        }
        TypeConstraint summarizee = a.getParameterType(0);
        if (summarizee.isModel() == false) {
            a.error(0, "単純集計演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            a.error(i, "単純集計演算子にはユーザー引数を利用できません");
        }
        if (a.hasError()) {
            return null;
        }
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

                a.error(i, "分割演算子の{0}つ目の引数は結果型である必要があります", i + 1);
            } else if (a.getParameterType(i).getTypeArgument().isModel() == false) {
                a.error(i, "分割演算子の{0}つ目の引数は結果のモデル型である必要があります", i + 1);
            }
        }
        for (int i = 3, n = a.countParameters(); i < n; i++) {
            a.error(i, "分割演算子にはユーザー引数を利用できません");
        }
        if (a.hasError()) {
            return null;
        }
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

            a.error("重複検出演算子は戻り値にvoidを指定する必要があります");
        }
        if (a.getParameterType(0).isModel() == false) {
            a.error(0, "重複検出演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            a.error(i, "重複検出演算子にはユーザー引数を利用できません");
        }
        if (a.hasError()) {
            return null;
        }
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

        }
        if (a.getReturnType().isVoid() == false) {
            a.error("グループ結合演算子は戻り値にvoidを指定する必要があります");
        }
        int startResults = 0;
        for (int i = 0, n = a.countParameters(); i < n; i++) {
            TypeConstraint type = a.getParameterType(i);
            if (type.isResult()) {
                break;
            }
            if (type.isList() == false) {
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

        if (startResults == 0) { // リスト型がない
            a.error("グループ結合演算子の引数には一つ以上のリスト型(java.util.List)を指定する必要があります");
        }

        int startParameters = startResults;
        for (int i = startResults, n = a.countParameters(); i < n; i++) {
            TypeConstraint param = a.getParameterType(i);
            if (param.isResult() == false) {
                break;
            } else if (param.getTypeArgument().isModel() == false) {
                a.error(i, "グループ結合演算子の結果は結果のモデルオブジェクト型である必要があります");
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

            }
        }
        if (startParameters == startResults) { // 結果型がない
            a.error("グループ結合演算子の引数には一つ以上の結果(Result)型を指定する必要があります");
        }
        for (int i = startParameters, n = a.countParameters(); i < n; i++) {
            TypeConstraint param = a.getParameterType(i);
            if (param.isResult()) {
                a.error(i, "ユーザー引数の後には結果型を含められません");
            } else if (param.isBasic() == false) {
                a.error(i, "ユーザー引数は文字列またはプリミティブ型である必要があります");
View Full Code Here

Examples of com.asakusafw.compiler.operator.ExecutableAnalyzer.countParameters()

                    a.getParameterName(i),
                    outputTypeMirror,
                    found,
                    i);
        }
        for (int i = startParameters, n = a.countParameters(); i < n; i++) {
            builder.addParameter(
                    a.getParameterDocument(i),
                    a.getParameterName(i),
                    a.getParameterType(i).getType(),
                    i);
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.