Package org.overturetool.vdmj.definitions

Examples of org.overturetool.vdmj.definitions.ClassList


        {
          FileInputStream fis = new FileInputStream(file);
          GZIPInputStream gis = new GZIPInputStream(fis);
          ObjectInputStream ois = new ObjectInputStream(gis);

          ClassList loaded = null;
          long begin = System.currentTimeMillis();

          try
          {
            loaded = (ClassList) ois.readObject();
          } catch (Exception e)
          {
            println(file + " is not a valid VDM++ library");
            perrs++;
            continue;
          } finally
          {
            ois.close();
          }

          long end = System.currentTimeMillis();
          loaded.setLoaded();
          classes.addAll(loaded);
          classes.remap();

          infoln("Loaded " + plural(loaded.size(), "class", "es")
              + " from " + file + " in " + (double) (end - begin)
              / 1000 + " secs");
        } else
        {
          if (replaceNewIdentifier.isEmpty()
View Full Code Here

TOP

Related Classes of org.overturetool.vdmj.definitions.ClassList

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.