Package com.asakusafw.vocabulary.flow.graph

Examples of com.asakusafw.vocabulary.flow.graph.FlowElementDescription


        }
        return id;
    }

    private String dumpFactor(Context context, Factor factor) {
        FlowElementDescription desc = factor.getElement().getDescription();
        switch (desc.getKind()) {
        case OPERATOR:
            Declaration decl = ((OperatorDescription) desc).getDeclaration();
            if (decl.getDeclaring().getName().startsWith("com.asakusafw.vocabulary.") == false) {
                String id = context.label(
                        decl.toMethod(),
View Full Code Here


        private LinePartProcessor.Context createPartConext(
                Factor factor,
                Expression input) {
            assert factor != null;
            assert input != null;
            FlowElementDescription description = factor.getElement().getDescription();
            if ((description instanceof OperatorDescription) == false) {
                description = new OperatorDescription.Builder(Identity.class)
                    .declare(Void.class, Void.class, "")
                    .addInput("input", Object.class)
                    .addOutput("output", Object.class)
View Full Code Here

                    .declare(Void.class, Void.class, "")
                    .addInput("input", Object.class)
                    .addOutput("output", Object.class)
                    .toDescription();
            } else {
                FlowElementDescription desc = factorOrNull.getElement().getDescription();
                if ((desc instanceof OperatorDescription) == false) {
                    throw new IllegalArgumentException(desc.toString());
                }
                description = (OperatorDescription) desc;
            }
            return new LineEndProcessor.Context(
                    environment,
View Full Code Here

     */
    public boolean edit(FlowElement element) {
        if (element == null) {
            throw new IllegalArgumentException("element must not be null"); //$NON-NLS-1$
        }
        FlowElementDescription description = element.getDescription();
        switch (description.getKind()) {
        case OPERATOR:
            return edit(element, (OperatorDescription) description);
        case FLOW_COMPONENT:
            return edit(element, (FlowPartDescription) description);
        default:
View Full Code Here

        while (work.isEmpty() == false) {
            FlowGraph flow = work.removeFirst();
            Set<FlowElement> elements = FlowGraphUtil.collectElements(flow);
            for (FlowElement element : elements) {
                modify |= editor.edit(element);
                FlowElementDescription description = element.getDescription();
                if (description.getKind() == FlowElementKind.FLOW_COMPONENT) {
                    work.addLast(((FlowPartDescription) description).getFlowGraph());
                }
            }
        }
        return modify;
View Full Code Here

TOP

Related Classes of com.asakusafw.vocabulary.flow.graph.FlowElementDescription

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.