Package gov.nasa.jpf.vm

Examples of gov.nasa.jpf.vm.ClassLoaderInfo


    int readDepth = 0;
    int writeDepth = 0;

    // Default class loader used to reach the SuT classes' state (static
    // variables)
    ClassLoaderInfo cli = this.vm.getSystemState().getKernelState().classLoaders.get(0);

    // update the write depth if the class OutputStream has been loaded
    if (cli.getResolvedClassInfo("java.io.OutputStream") != null) {
      writeDepth = (int) this.vm.getSystemState().getKernelState().classLoaders.get(0).getResolvedClassInfo("java.io.OutputStream")
          .getStaticFieldValueObject("writeDepth");
    } else {
      logger.severe("jointstates java.io.OutputStream class not loaded");
      terminate();
    }

    // update the read depth if the class InputStream has been loaded
    if (cli.getResolvedClassInfo("java.io.InputStream") != null) {
      readDepth = (int) this.vm.getSystemState().getKernelState().classLoaders.get(0).getResolvedClassInfo("java.io.InputStream")
          .getStaticFieldValueObject("readDepth");
    } else {
      logger.severe("jointstates java.io.InputStream class not loaded");
      terminate();
View Full Code Here

TOP

Related Classes of gov.nasa.jpf.vm.ClassLoaderInfo

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.