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

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


            if (name.getModelKind() == ModelKind.SIMPLE_NAME) {
                reserved.put((SimpleName) name, elem.getName());
                return elem;
            }

            QualifiedName qname = (QualifiedName) name;
            SimpleName renamed = imported.get(qname);
            if (renamed == null) {
                if (reserved.containsKey(qname.getSimpleName())
                        && reserved.get(qname.getSimpleName()).equals(qname) == false) {
                    return elem;
                }
                imported.put(qname, qname.getSimpleName());
                reserved.put(qname.getSimpleName(), qname);
            }
            return factory.newNamedType(Models.append(
                factory,
                segments.toArray(new Name[segments.size()])));
        }
View Full Code Here


                Name name,
                LinkedList<SimpleName> segments) {
            Name current = name;
            if (strategy == Strategy.TOP_LEVEL) {
                while (isLikeEnclosingType(current)) {
                    QualifiedName qname = (QualifiedName) current;
                    segments.addFirst(qname.getSimpleName());
                    current = qname.getQualifier();
                }
            }
            if (current.getModelKind() == ModelKind.QUALIFIED_NAME) {
                segments.addFirst(((QualifiedName) current).getSimpleName());
            } else {
View Full Code Here

                Collections.singletonList(typeDecl),
                Collections.<Comment>emptyList());
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
        QualifiedName name = environment
            .getModelFactory()
            .newQualifiedName(packageName, simpleName);
        LOG.debug("epilogue of \"{}\" will use {}", moduleId, name);
        return name;
    }
View Full Code Here

                reducerOrNull);
        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 name;
    }
View Full Code Here

        Engine engine = new Engine(environment, moduleId, outputName, index, dataType, namingInfo);
        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 name template: batch={}, flow={}, output={}, class={}", new Object[] {
                environment.getBatchId(),
                environment.getFlowId(),
                outputName,
                name.toNameString(),
        });
        return name;
    }
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

        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("{}の処理には{}が利用されます", unit, name);
        return new CompiledType(name);
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.