system/src/sc/lang/java/BodyTypeDeclaration.java
public void removeTypeInstances() {
      LayeredSystem sys = getLayeredSystem();
      String typeName = getRuntimeFullTypeName();
      sys.removeGlobalObject(typeName);
      // Assumes that we'll call disposeInstances on any sub-type of this type.  Could just call getInstancesOfTypeAndSubTypes
      Iterator<Object> insts = sys.getInstancesOfType(typeName);
      if (insts != null) {
         while (insts.hasNext()) {
            Object inst = insts.next();
            // Do not remove children here because we'll do that by going through the type tree, thus removing them twice
            DynUtil.dispose(inst, false);
         }
      }
   }
/**
    * Removes any instances lying around for this type
    */
Removes any instances lying around for this type
Removes any instances lying around for this type
public void removeTypeInstances() {
      LayeredSystem sys = getLayeredSystem();
      String typeName = getRuntimeFullTypeName();
      sys.removeGlobalObject(typeName);
      Iterator<Object> insts = sys.getInstancesOfType(typeName);
      if (insts != null) {
         while (insts.hasNext()) {
            Object inst = insts.next();
            DynUtil.dispose(inst, false);
         }
      }
   }
public void removeTypeInstances ( ) { LayeredSystem sys = getLayeredSystem ( ) ; String typeName = getRuntimeFullTypeName ( ) ; sys . removeGlobalObject ( typeName ) ; Iterator < Object > insts = sys . getInstancesOfType ( typeName ) ; if ( insts != null ) { while ( insts . hasNext ( ) ) { Object inst = insts . next ( ) ; DynUtil . dispose ( inst , false ) ; } } }
Removes any instances lying around for this type
Removes any instances lying around for this type
// Assumes that we'll call disposeInstances on any sub-type of this type.  Could just call getInstancesOfTypeAndSubTypes // Do not remove children here because we'll do that by going through the type tree, thus removing them twice