Package com.asakusafw.utils.java.model.syntax

Examples of com.asakusafw.utils.java.model.syntax.QualifiedName


        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();

        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);

        LOG.debug("{}の処理には{}が利用されます", fragment, name);
        return new CompiledType(name);
View Full Code Here


        Engine engine = new Engine(environment, moduleId, slots, outputDirectory, prologue);
        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);
        LOG.debug("\"{}\" will use {}", moduleId, name);
        return new CompiledStage(name, prologue ? Naming.getPrologueName(moduleId) : Naming.getEpilogueName(moduleId));
    }
View Full Code Here

        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();

        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);

        LOG.debug("{}のコンバイン処理には{}が利用されます", model, name);
        return new CompiledType(name);
View Full Code Here

        Engine engine = new Engine(environment, moduleId, slots, outputDirectory);
        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);
        LOG.debug("エピローグ\"{}\"のジョブ実行には{}が利用されます", moduleId, name);
        return new CompiledStage(name, Naming.getEpilogueName(moduleId));
    }
View Full Code Here

        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();

        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);

        LOG.debug("{}の処理には{}が利用されます", fragment, name);
        return new CompiledType(name);
View Full Code Here

        Engine engine = new Engine(environment);
        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);
        LOG.debug("Cleanup stage client for {} will be {}", environment.getFlowId(), name);
        return new CompiledStage(name, Naming.getCleanupStageName());
    }
View Full Code Here

        Engine engine = new Engine(environment, stage);
        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);
        LOG.debug("{}のジョブ実行には{}が利用されます", stage, name);
        return new CompiledStage(name, Naming.getStageName(stage.getNumber()));
    }
View Full Code Here

        Engine engine = new Engine(environment, moduleId, outputName, index, dataType, orderingInfo);
        CompilationUnit source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);
        LOG.debug("Finish preparing output file orderer: batch={}, flow={}, output={}, class={}", new Object[] {
                environment.getBatchId(),
                environment.getFlowId(),
                outputName,
                name.toNameString(),
        });
        return name;
    }
View Full Code Here

    public List<SimpleName> toNameList() {
        LinkedList<SimpleName> result = new LinkedList<SimpleName>();
        result.addFirst(getSimpleName());
        Name current = getQualifier();
        while (current.getModelKind() == ModelKind.QUALIFIED_NAME) {
            QualifiedName qname = (QualifiedName) current;
            result.addFirst(qname.getSimpleName());
            current = qname.getQualifier();
        }
        assert current.getModelKind() == ModelKind.SIMPLE_NAME;
        result.addFirst((SimpleName) current);
        return result;
    }
View Full Code Here

            return Collections.singletonList((SimpleName) name);
        } else {
            LinkedList<SimpleName> result = new LinkedList<SimpleName>();
            Name current = name;
            do {
                QualifiedName qname = (QualifiedName) current;
                result.addFirst(qname.getSimpleName());
                current = qname.getQualifier();
            } while (current.getModelKind() == ModelKind.QUALIFIED_NAME);

            assert current.getModelKind() == ModelKind.SIMPLE_NAME;
            result.addFirst((SimpleName) current);
View Full Code Here

TOP

Related Classes of com.asakusafw.utils.java.model.syntax.QualifiedName

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.