Package com.asakusafw.compiler.operator

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


    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().isConcreteModel() == false) {
            a.error("変換演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
        if (a.getParameterType(0).isModel() == false) {
View Full Code Here


        ExecutableAnalyzer a = new ExecutableAnalyzer(context.environment, context.element);
        if (a.isAbstract()) {
            a.error("変換演算子はabstractで宣言できません");
        }
        if (a.getReturnType().isConcreteModel() == false) {
            a.error("変換演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
        if (a.getParameterType(0).isModel() == false) {
            a.error(0, "変換演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
View Full Code Here

        }
        if (a.getReturnType().isConcreteModel() == false) {
            a.error("変換演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
        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つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Convert annotation = context.element.getAnnotation(Convert.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
View Full Code Here

                a.error(i, "変換演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Convert annotation = context.element.getAnnotation(Convert.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
            return null;
        }
        OperatorProcessorUtil.checkPortName(a, new String[] {
                annotation.originalPort(),
                annotation.convertedPort(),
View Full Code Here

        ExecutableAnalyzer a = new ExecutableAnalyzer(context.environment, context.element);
        if (a.isGeneric()) {
            a.error("単純集計演算子はジェネリックメソッドで宣言できません");
        }
        if (a.isAbstract() == false) {
            a.error("単純集計演算子はabstractで宣言する必要があります");
        }
        TypeConstraint summarized = a.getReturnType();
        if (summarized.isConcreteModel() == false) {
            a.error("単純集計演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
View Full Code Here

        if (a.isAbstract() == false) {
            a.error("単純集計演算子はabstractで宣言する必要があります");
        }
        TypeConstraint summarized = a.getReturnType();
        if (summarized.isConcreteModel() == false) {
            a.error("単純集計演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
        TypeConstraint summarizee = a.getParameterType(0);
        if (summarizee.isModel() == false) {
            a.error(0, "単純集計演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
View Full Code Here

        if (summarized.isConcreteModel() == false) {
            a.error("単純集計演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
        TypeConstraint summarizee = a.getParameterType(0);
        if (summarizee.isModel() == false) {
            a.error(0, "単純集計演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            a.error(i, "単純集計演算子にはユーザー引数を利用できません");
        }
        if (a.hasError()) {
View Full Code Here

        TypeConstraint summarizee = a.getParameterType(0);
        if (summarizee.isModel() == false) {
            a.error(0, "単純集計演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            a.error(i, "単純集計演算子にはユーザー引数を利用できません");
        }
        if (a.hasError()) {
            return null;
        }
        if (summarized.isSummarizedModel(summarizee.getType()) == false) {
View Full Code Here

        }
        if (a.hasError()) {
            return null;
        }
        if (summarized.isSummarizedModel(summarizee.getType()) == false) {
            a.error("単純集計演算子の戻り値型は最初の引数の集計結果を表す型である必要があります");
            return null;
        }

        ShuffleKey key = summarized.getSummarizeKey();
        Summarize annotation = context.element.getAnnotation(Summarize.class);
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.