Package com.asakusafw.vocabulary.operator

Examples of com.asakusafw.vocabulary.operator.Logging


        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("注釈の解釈に失敗しました");
            return null;
        }
        OperatorProcessorUtil.checkPortName(a, new String[] {
                annotation.outputPort(),
        });
        if (a.hasError()) {
            return null;
        }

        List<DocElement> elements = Lists.create();
        elements.addAll(a.getExecutableDocument());
        elements.add(context.environment.getFactory().newDocText(
                "<p>なお、この演算子の出力は結線しなくても自動的に停止演算子に結線される。</p>"));

        Builder builder = new Builder(getTargetAnnotationType(), context);
        builder.addAttribute(a.getObservationCount(ObservationCount.AT_LEAST_ONCE));
        builder.addAttribute(Connectivity.OPTIONAL);
        builder.addAttribute(annotation.value());
        builder.setDocumentation(elements);
        builder.addInput(
                a.getParameterDocument(0),
                a.getParameterName(0),
                a.getParameterType(0).getType(),
                0);
        builder.addOutput(
                "入力された内容",
                annotation.outputPort(),
                a.getParameterType(0).getType(),
                a.getParameterName(0),
                0);
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            builder.addParameter(
View Full Code Here

TOP

Related Classes of com.asakusafw.vocabulary.operator.Logging

Copyright © 2018 www.massapicom. 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.