Package com.asakusafw.compiler.operator

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


        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);
        } catch (ResolveException e) {
View Full Code Here


        }
        ExecutableElement selector = null;
        try {
            selector = MasterKindOperatorAnalyzer.findSelector(context.environment, context);
        } catch (ResolveException e) {
            a.error(e.getMessage());
        }
        if (joined.isJoinedModel(master.getType(), transaction.getType()) == false) {
            a.error("マスタ結合演算子の戻り値型は引数の結合結果を表す型である必要があります");
            return null;
        }
View Full Code Here

            selector = MasterKindOperatorAnalyzer.findSelector(context.environment, context);
        } catch (ResolveException e) {
            a.error(e.getMessage());
        }
        if (joined.isJoinedModel(master.getType(), transaction.getType()) == false) {
            a.error("マスタ結合演算子の戻り値型は引数の結合結果を表す型である必要があります");
            return null;
        }

        ShuffleKey masterKey = joined.getJoinKey(master.getType());
        ShuffleKey transactionKey = joined.getJoinKey(transaction.getType());
View Full Code Here

        ShuffleKey masterKey = joined.getJoinKey(master.getType());
        ShuffleKey transactionKey = joined.getJoinKey(transaction.getType());

        MasterJoin annotation = context.element.getAnnotation(MasterJoin.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
            return null;
        }
        OperatorProcessorUtil.checkPortName(a, new String[] {
                annotation.joinedPort(),
                annotation.missedPort(),
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を指定する必要があります");
        }
        TypeConstraint left = a.getParameterType(0);
View Full Code Here

        ExecutableAnalyzer a = new ExecutableAnalyzer(context.environment, context.element);
        if (a.isAbstract()) {
            a.error("畳み込み演算子はabstractで宣言できません");
        }
        if (a.getReturnType().isVoid() == false) {
            a.error("畳み込み演算子は戻り値にvoidを指定する必要があります");
        }
        TypeConstraint left = a.getParameterType(0);
        if (left.isModel() == false) {
            a.error(0, "畳み込み演算子の1つ目の引数はモデルオブジェクト型である必要があります");
        }
View Full Code Here

        if (a.getReturnType().isVoid() == false) {
            a.error("畳み込み演算子は戻り値にvoidを指定する必要があります");
        }
        TypeConstraint left = a.getParameterType(0);
        if (left.isModel() == false) {
            a.error(0, "畳み込み演算子の1つ目の引数はモデルオブジェクト型である必要があります");
        }
        TypeConstraint right = a.getParameterType(1);
        if (right.isModel() == false) {
            a.error(1, "畳み込み演算子の2つ目の引数はモデルオブジェクト型である必要があります");
        }
View Full Code Here

        if (left.isModel() == false) {
            a.error(0, "畳み込み演算子の1つ目の引数はモデルオブジェクト型である必要があります");
        }
        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つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
View Full Code Here

        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()) {
            return null;
        }
View Full Code Here

        if (a.hasError()) {
            return null;
        }

        if (context.environment.getTypeUtils().isSameType(left.getType(), right.getType()) == false) {
            a.error(1, "畳み込み演算子の1つ目の引数と2つ目の引数は同じ型である必要があります");
        }
        ShuffleKey foldKey = a.getParameterKey(0);
        if (foldKey == null) {
            a.error("畳み込み演算子の引数には@Key注釈によってグループ化項目を指定する必要があります");
        }
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.