Examples of countParameters()


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

        } else if (a.getParameterType(0).getTypeArgument().isModel() == false) {
            a.error(0, "グループ整列演算子の最初の引数はリストのモデルオブジェクト型である必要があります");
        }

        int startParameters = RESULT_START;
        for (int i = RESULT_START, 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 == RESULT_START) { // 結果型がない
            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

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

        }
        TypeConstraint transaction = a.getParameterType(1);
        if (transaction.isModel() == false) {
            a.error(1, "マスタ確認演算子の二つ目の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 2, 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()

        }
        TypeConstraint transaction = a.getParameterType(1);
        if (transaction.isModel() == false) {
            a.error(1, "マスタつき更新演算子の二つ目の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 2, n = a.countParameters(); i < n; i++) {
            if (a.getParameterType(i).isBasic() == false) {
                a.error(i, "マスタつき更新演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        if (a.hasError()) {
View Full Code Here

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

                "引き当てに失敗したデータ",
                annotation.missedPort(),
                a.getParameterType(1).getType(),
                a.getParameterName(1),
                null);
        for (int i = 2, 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()

                "畳み込みの結果",
                annotation.outputPort(),
                a.getParameterType(0).getType(),
                Fold.INPUT,
                0);
        for (int i = 2, 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 transaction = a.getParameterType(1);
        if (transaction.isModel() == false) {
            a.error(1, "マスタ分岐演算子の2つ目の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 2, n = a.countParameters(); i < n; i++) {
            if (a.getParameterType(i).isBasic() == false) {
                a.error(i, "マスタ分岐演算子の3つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        if (a.hasError()) {
View Full Code Here

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

                    JavaName.of(var.getSimpleName().toString()).toMemberName(),
                    a.getParameterType(1).getType(),
                    a.getParameterName(1),
                    null);
        }
        for (int i = 2, 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()

            }
        }
        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つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        if (a.hasError()) {
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.