Package com.asakusafw.compiler.operator

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


        }

        ShuffleKey key = summarized.getSummarizeKey();
        Summarize annotation = context.element.getAnnotation(Summarize.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
            return null;
        }
        OperatorProcessorUtil.checkPortName(a, new String[] {
                annotation.summarizedPort(),
        });
View Full Code Here


    @Override
    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を指定する必要があります");
        }
        if (a.getReturnType().isVoid() == false) {
View Full Code Here

        ExecutableAnalyzer a = new ExecutableAnalyzer(context.environment, context.element);
        if (a.isGeneric()) {
            a.error("分割演算子はジェネリックメソッドで宣言できません");
        }
        if (a.isAbstract() == false) {
            a.error("分割演算子はabstractを指定する必要があります");
        }
        if (a.getReturnType().isVoid() == false) {
            a.error("分割演算子は戻り値にvoidを指定する必要があります");
        }
        if (a.getParameterType(0).isConcreteModel() == false) {
View Full Code Here

        }
        if (a.isAbstract() == false) {
            a.error("分割演算子はabstractを指定する必要があります");
        }
        if (a.getReturnType().isVoid() == false) {
            a.error("分割演算子は戻り値にvoidを指定する必要があります");
        }
        if (a.getParameterType(0).isConcreteModel() == false) {
            a.error(0, "分割演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1; i <= 2; i++) {
View Full Code Here

        }
        if (a.getReturnType().isVoid() == false) {
            a.error("分割演算子は戻り値にvoidを指定する必要があります");
        }
        if (a.getParameterType(0).isConcreteModel() == false) {
            a.error(0, "分割演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1; i <= 2; i++) {
            if (a.getParameterType(i).isResult() == false) {
                a.error(i, "分割演算子の{0}つ目の引数は結果型である必要があります", i + 1);
            } else if (a.getParameterType(i).getTypeArgument().isModel() == false) {
View Full Code Here

        if (a.getParameterType(0).isConcreteModel() == false) {
            a.error(0, "分割演算子の最初の引数はモデルオブジェクト型である必要があります");
        }
        for (int i = 1; i <= 2; i++) {
            if (a.getParameterType(i).isResult() == false) {
                a.error(i, "分割演算子の{0}つ目の引数は結果型である必要があります", i + 1);
            } else if (a.getParameterType(i).getTypeArgument().isModel() == false) {
                a.error(i, "分割演算子の{0}つ目の引数は結果のモデル型である必要があります", i + 1);
            }
        }
        for (int i = 3, n = a.countParameters(); i < n; i++) {
View Full Code Here

        }
        for (int i = 1; i <= 2; i++) {
            if (a.getParameterType(i).isResult() == false) {
                a.error(i, "分割演算子の{0}つ目の引数は結果型である必要があります", i + 1);
            } else if (a.getParameterType(i).getTypeArgument().isModel() == false) {
                a.error(i, "分割演算子の{0}つ目の引数は結果のモデル型である必要があります", i + 1);
            }
        }
        for (int i = 3, n = a.countParameters(); i < n; i++) {
            a.error(i, "分割演算子にはユーザー引数を利用できません");
        }
View Full Code Here

            } else if (a.getParameterType(i).getTypeArgument().isModel() == false) {
                a.error(i, "分割演算子の{0}つ目の引数は結果のモデル型である必要があります", i + 1);
            }
        }
        for (int i = 3, n = a.countParameters(); i < n; i++) {
            a.error(i, "分割演算子にはユーザー引数を利用できません");
        }
        if (a.hasError()) {
            return null;
        }
View Full Code Here

        TypeConstraint joined = a.getParameterType(0);
        TypeConstraint from = a.getParameterType(1).getTypeArgument();
        TypeConstraint join = a.getParameterType(2).getTypeArgument();
        if (joined.isJoinedModel(from.getType(), join.getType()) == false) {
            a.error(0, "分割演算子の最初の引数は結果の2つの型を結合した型である必要があります");
            return null;
        }

        Builder builder = new Builder(getTargetAnnotationType(), context);
        builder.addAttribute(a.getObservationCount());
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().isVoid() == false) {
            a.error("重複検出演算子は戻り値にvoidを指定する必要があります");
        }
        if (a.getParameterType(0).isModel() == false) {
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.