Package com.asakusafw.compiler.operator

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


            } else {
                parameters.add(port);
            }
        }
        if (inputPorts.isEmpty() && outputPorts.isEmpty()) {
            analyzer.error("フロー部品の入出力が指定されていません。コンストラクターの引数にIn<...>, Out<...>型で指定して下さい");
        }
        if (analyzer.hasError()) {
            sawError = true;
            return null;
        }
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).isModel() == false) {
            a.error(0, "更新演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1, n = a.countParameters(); i < n; i++) {
View Full Code Here

        }
        if (a.getReturnType().isVoid() == false) {
            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つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
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つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Update annotation = context.element.getAnnotation(Update.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
View Full Code Here

                a.error(i, "更新演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Update annotation = context.element.getAnnotation(Update.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.isGeneric()) {
            a.error("マスタ結合演算子はジェネリックメソッドで宣言できません");
        }
        if (a.isAbstract() == false) {
            a.error("マスタ結合演算子はabstractで宣言する必要があります");
        }
        TypeConstraint joined = a.getReturnType();
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 joined = a.getReturnType();
        if (joined.isConcreteModel() == false) {
            a.error("マスタ結合演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
View Full Code Here

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

        if (joined.isConcreteModel() == false) {
            a.error("マスタ結合演算子は戻り値にモデルオブジェクト型を指定する必要があります");
        }
        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, "マスタ結合演算子にはユーザー引数を利用できません");
        }
        ExecutableElement selector = 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.