Examples of TName


Examples of com.foundationdb.server.types.TName

    private final Map<String,BundleEntry> bundlesByName =
        new TreeMap<>(String.CASE_INSENSITIVE_ORDER);

    public TypesRegistry(Collection<? extends TClass> tClasses) {
        for (TClass tClass : tClasses) {
            TName tName = tClass.name();
            TBundleID bundleID = tName.bundleId();
            BundleEntry entry = bundlesByUUID.get(bundleID.uuid());
            if (entry == null) {
                entry = new BundleEntry(bundleID);
                bundlesByUUID.put(bundleID.uuid(), entry);
                BundleEntry oentry = bundlesByName.put(bundleID.name(), entry);
                if (oentry != null) {
                    // Tests may fail, but can work if only one used.
                    logger.warn("There is more than one bundle named {}: {} and {}",
                                new Object[] {
                                    bundleID.name(), bundleID.uuid(),
                                    oentry.bundleID.uuid()
                                });
                }
            }
            TClass prev = entry.typeClassByName.put(tName.unqualifiedName(), tClass);
            if (prev != null) {
                throw new IllegalStateException("Duplicate classes: " + prev +
                                                " and " + tClass);
            }
        }
View Full Code Here

Examples of org.andromda.translation.ocl.node.TName

            // we only want to add the first name (since the other
            // names will all be comma seperated and stored within
            // the inACommaFeatureCallParameterOption() method)
            if (this.namesAndTypes.isEmpty())
            {
                TName initialVariableName = name.getName();
                this.orderedNames.add(initialVariableName);
                this.namesAndTypes.put(this.orderedNames.getLast(), null);
            }
        }
View Full Code Here

Examples of org.andromda.translation.ocl.node.TName

         * @return AVariableDeclarationList
         */
        public AVariableDeclarationList getList()
        {

            TName initialName = (TName)this.orderedNames.getFirst();

            ATypeDeclaration typeDeclaration = (ATypeDeclaration)namesAndTypes.get(initialName);

            List variableDeclarationListTails = new ArrayList();
            if (!this.orderedNames.isEmpty())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.