Package com.asakusafw.compiler.operator

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


        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, "ユーザー引数は文字列またはプリミティブ型である必要があります");
            }
        }
        if (a.hasError()) {
            return null;
        }
View Full Code Here


            return null;
        }

        ShuffleKey key = a.getParameterKey(0);
        if (key == null) {
            a.error("グループ整列演算子の引数には@Key注釈によってグループ化項目を指定する必要があります");
            return null;
        }
        GroupSort annotation = context.element.getAnnotation(GroupSort.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
View Full Code Here

            a.error("グループ整列演算子の引数には@Key注釈によってグループ化項目を指定する必要があります");
            return null;
        }
        GroupSort annotation = context.element.getAnnotation(GroupSort.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
            return null;
        }

        // redirect to @CoGroup
        Builder builder = new Builder(CoGroup.class, context);
View Full Code Here

        for (int i = 1; i < startParameters; i++) {
            TypeConstraint outputType = a.getParameterType(i).getTypeArgument();
            TypeMirror outputTypeMirror = outputType.getType();
            String found = builder.findInput(outputTypeMirror);
            if (found == null && outputType.isProjectiveModel()) {
                a.error("出力型{0}に対する入力が見つかりません", outputTypeMirror);
            }
            builder.addOutput(
                    a.getParameterDocument(i),
                    a.getParameterName(i),
                    outputTypeMirror,
View Full Code Here

    public OperatorMethodDescriptor describe(Context context) {
        Precondition.checkMustNotBeNull(context, "context"); //$NON-NLS-1$

        ExecutableAnalyzer a = new ExecutableAnalyzer(context.environment, context.element);
        if (a.isAbstract()) {
            a.error("更新演算子はabstractで宣言できません");
        }
        if (a.getReturnType().isVoid() == false) {
            a.error("更新演算子は戻り値にvoidを指定する必要があります");
        }
        if (a.getParameterType(0).isModel() == false) {
View Full Code Here

    public OperatorMethodDescriptor describe(Context context) {
        Precondition.checkMustNotBeNull(context, "context"); //$NON-NLS-1$

        ExecutableAnalyzer a = new ExecutableAnalyzer(context.environment, context.element);
        if (a.isAbstract() == false) {
            a.error("マスタ確認演算子はabstractで宣言する必要があります");
        }
        if (a.getReturnType().isBoolean() == false) {
            a.error("マスタ確認演算子は戻り値にboolean型を指定する必要があります");
        }
        TypeConstraint master = a.getParameterType(0);
View Full Code Here

        ExecutableAnalyzer a = new ExecutableAnalyzer(context.environment, context.element);
        if (a.isAbstract() == false) {
            a.error("マスタ確認演算子はabstractで宣言する必要があります");
        }
        if (a.getReturnType().isBoolean() == false) {
            a.error("マスタ確認演算子は戻り値にboolean型を指定する必要があります");
        }
        TypeConstraint master = a.getParameterType(0);
        if (master.isModel() == false) {
            a.error(0, "マスタ確認演算子の一つ目の引数はモデルオブジェクト型である必要があります");
        }
View Full Code Here

        if (a.getReturnType().isBoolean() == false) {
            a.error("マスタ確認演算子は戻り値にboolean型を指定する必要があります");
        }
        TypeConstraint master = a.getParameterType(0);
        if (master.isModel() == false) {
            a.error(0, "マスタ確認演算子の一つ目の引数はモデルオブジェクト型である必要があります");
        }
        TypeConstraint transaction = a.getParameterType(1);
        if (transaction.isModel() == false) {
            a.error(1, "マスタ確認演算子の二つ目の引数はモデルオブジェクト型である必要があります");
        }
View Full Code Here

        if (master.isModel() == false) {
            a.error(0, "マスタ確認演算子の一つ目の引数はモデルオブジェクト型である必要があります");
        }
        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()) {
View Full Code Here

        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

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.