Examples of countParameters()


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

        ExecutableAnalyzer analyzer = new ExecutableAnalyzer(environment, ctor);
        List<? extends DocElement> documentation = analyzer.getDocument(aClass);
        List<OperatorPortDeclaration> inputPorts = Lists.create();
        List<OperatorPortDeclaration> outputPorts = Lists.create();
        List<OperatorPortDeclaration> parameters = Lists.create();
        for (int i = 0, n = analyzer.countParameters(); i < n; i++) {
            OperatorPortDeclaration port = analyzePort(analyzer, i);
            if (port == null) {
                continue;
            } else if (port.getKind() == OperatorPortDeclaration.Kind.INPUT) {
                inputPorts.add(port);
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++) {
            if (a.getParameterType(i).isBasic() == false) {
                a.error(i, "更新演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Update annotation = context.element.getAnnotation(Update.class);
View Full Code Here

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

                "結果",
                annotation.outputPort(),
                a.getParameterType(0).getType(),
                a.getParameterName(0),
                0);
        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 transaction = a.getParameterType(1);
        if (transaction.isModel() == false) {
            a.error(1, "マスタ結合演算子の二つ目の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 2, n = a.countParameters(); i < n; i++) {
            a.error(i, "マスタ結合演算子にはユーザー引数を利用できません");
        }
        ExecutableElement selector = null;
        try {
            selector = MasterKindOperatorAnalyzer.findSelector(context.environment, context);
View Full Code Here

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

        }
        TypeConstraint right = a.getParameterType(1);
        if (right.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()

        if (a.getParameterType(0).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()

            a.error("ロギング演算子は戻り値にString型を指定する必要があります");
        }
        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つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Logging annotation = context.element.getAnnotation(Logging.class);
View Full Code Here

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

                "入力された内容",
                annotation.outputPort(),
                a.getParameterType(0).getType(),
                a.getParameterName(0),
                0);
        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
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.