Package com.asakusafw.compiler.operator

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


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


        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);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
View Full Code Here

                a.error(i, "ロギング演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Logging annotation = context.element.getAnnotation(Logging.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
            return null;
        }
        OperatorProcessorUtil.checkPortName(a, new String[] {
                annotation.outputPort(),
        });
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).isList() == false) {
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を指定する必要があります");
        }
        if (a.getParameterType(0).isList() == false) {
            a.error(0, "グループ整列演算子の最初の引数はリスト型(java.util.List)である必要があります");
        } else if (a.getParameterType(0).getTypeArgument().isModel() == false) {
            a.error(0, "グループ整列演算子の最初の引数はリストのモデルオブジェクト型である必要があります");
View Full Code Here

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

        int startParameters = RESULT_START;
View Full Code Here

            a.error("グループ整列演算子は戻り値にvoidを指定する必要があります");
        }
        if (a.getParameterType(0).isList() == false) {
            a.error(0, "グループ整列演算子の最初の引数はリスト型(java.util.List)である必要があります");
        } 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);
View Full Code Here

        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, "グループ整列演算子の結果は結果のモデルオブジェクト型である必要があります");
            } else {
                startParameters++;
            }
        }
        if (startParameters == RESULT_START) { // 結果型がない
View Full Code Here

            } else {
                startParameters++;
            }
        }
        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, "ユーザー引数の後には結果型を含められません");
View Full Code Here

            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, "ユーザー引数は文字列またはプリミティブ型である必要があります");
            }
        }
        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.