system/src/sc/layer/LayeredSystem.java
public void addTypesByName(Layer layer, String packagePrefix, Map<String,TypeDeclaration> newTypes, Layer fromLayer) {
      for (Map.Entry<String,TypeDeclaration> ent: newTypes.entrySet()) {
         TypeDeclaration td = ent.getValue();
         String typeName;
         if (td.isLayerType)
            typeName = layer.layerUniqueName;
         else
            typeName = CTypeUtil.prefixPath(packagePrefix, ent.getKey());

         addTypeByName(layer, typeName, td, fromLayer);
      }
   }
/** Adds the types defined in the specified layer to a global index.  If the type is overridden
    * by and the overridding type is there, it is skipped.
    */
Adds the types defined in the specified layer to a global index.  If the type is overridden
by and the overridding type is there, it is skipped.
Adds the types defined in the specified layer to a global index . If the type is overridden by and the overridding type is there it is skipped .
public void addTypesByName(Layer layer, String packagePrefix, Map<String,TypeDeclaration> newTypes, Layer fromLayer) {
      for (Map.Entry<String,TypeDeclaration> ent: newTypes.entrySet()) {
         TypeDeclaration td = ent.getValue();
         String typeName;
         if (td.isLayerType)
            typeName = layer.layerUniqueName;
         else
            typeName = CTypeUtil.prefixPath(packagePrefix, ent.getKey());
         addTypeByName(layer, typeName, td, fromLayer);
      }
   }
public void addTypesByName ( Layer layer , String packagePrefix , Map < String , TypeDeclaration > newTypes , Layer fromLayer ) { for ( Map . Entry < String , TypeDeclaration > ent : newTypes . entrySet ( ) ) { TypeDeclaration td = ent . getValue ( ) ; String typeName ; if ( td . isLayerType ) typeName = layer . layerUniqueName ; else typeName = CTypeUtil . prefixPath ( packagePrefix , ent . getKey ( ) ) ; addTypeByName ( layer , typeName , td , fromLayer ) ; } }
Adds the types defined in the specified layer to a global index.
Adds the types defined in the specified layer to a global index .