Package com.asakusafw.compiler.flow

Examples of com.asakusafw.compiler.flow.FlowElementProcessor$AbstractProcessorContext


        private List<MethodDeclaration> emit(SimpleName argument) {
            assert argument != null;
            assert fragment.getFactors().size() == 1;
            Factor factor = fragment.getFactors().get(0);

            FlowElementProcessor proc = factor.getProcessor();
            assert proc.getKind() == Kind.RENDEZVOUS;
            RendezvousProcessor processor = (RendezvousProcessor) proc;
            LOG.debug("{}に{}を適用しています", factor, processor);

            RendezvousProcessor.Context context = createConext(factor, argument);
            processor.emitRendezvous(context);
View Full Code Here


        if (description.getKind() == FlowElementKind.PSEUD) {
            return false;
        }
        assert description.getKind() == FlowElementKind.OPERATOR;
        FlowElementProcessor.Repository repo = environment.getProcessors();
        FlowElementProcessor processor = repo.findProcessor(description);
        if (processor == null) {
            error("{0}に対するプロセッサが見つかりません", description);
            return false;
        }
        return processor.getKind() == Kind.LINE_END
            || processor.getKind() == Kind.RENDEZVOUS;
    }
View Full Code Here

        FlowElementProcessor.Repository repo = environment.getProcessors();
        FlowElementDescription description = element.getDescription();
        if (description.getKind() == FlowElementKind.PSEUD) {
            return new Factor(element, repo.getEmptyProcessor());
        }
        FlowElementProcessor processor = repo.findProcessor(description);
        if (processor == null) {
            error("{0}に対するプロセッサが見つかりません", description);
            return new Factor(element, repo.getEmptyProcessor());
        }
        return new Factor(element, processor);
View Full Code Here

        private Expression emitPart(List<Statement> results, Factor factor, Expression input) {
            assert results != null;
            assert factor != null;
            assert input != null;
            FlowElementProcessor proc = factor.getProcessor();
            assert proc.getKind() == Kind.LINE_PART;
            LinePartProcessor processor = (LinePartProcessor) proc;
            LOG.debug("{}に{}を適用しています", factor, processor);

            LinePartProcessor.Context context = createPartConext(factor, input);
            processor.emitLinePart(context);
View Full Code Here

                Factor factor,
                Expression input) {
            assert statements != null;
            assert factor != null;
            assert input != null;
            FlowElementProcessor proc = factor.getProcessor();
            assert proc.getKind() == Kind.LINE_END;
            LineEndProcessor processor = (LineEndProcessor) proc;
            LOG.debug("{}に{}を適用しています", factor, processor);

            LineEndProcessor.Context context = createEndConext(factor, input);
            processor.emitLineEnd(context);
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.flow.FlowElementProcessor$AbstractProcessorContext

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.