Package gov.nasa.jpf.conformanceChecker.providers

Examples of gov.nasa.jpf.conformanceChecker.providers.ModelClassProvider


   
    Config conf = JPF.createConfig(args);
   
    ProviderFactory.init(conf);
   
    ModelClassProvider modelProvider = ProviderFactory.getModelProvider()
   
    List<Reporter> reporters = buildReportersList(conf);
   
    List<Checker> checkers = buildCheckersList(conf,  reporters);
   
    Collection<MethodSpec> specs = getSpecs(conf);

    for (ClassInfo model : modelProvider.loadClassInfos(specs)) {
      checkModelClass(model, checkers);
    }
   
    for (Reporter reporter : reporters) {
      reporter.close();
View Full Code Here


  public static int getNonNativeMods(int mod) {
    return mod & ~Modifier.NATIVE;
  }
 
  public static void main(String[] args) {
    ClassInfo model = new ModelClassProvider().loadClassInfo("java.lang.System");
    ClassInfo peer  = new NativePeerProvider().loadNativePeerClass(model);
   
    MethodInfo modelMethod = model.getMethod("currentTimeMillis", "()J", false);
    System.out.println(modelMethod);
   
View Full Code Here

    return noInconsistencies;
  }
 
  public static void main(String[] args) {
    ProviderFactory.init(JPF.createConfig(args));
    ClassInfo cls = new ModelClassProvider().loadClassInfo("java.lang.System");
    MissingNativePeerChecker mnpc = new MissingNativePeerChecker();
    SimpleCmdLineReporter reporter = new SimpleCmdLineReporter(JPF.createConfig(args));
    mnpc.registerReporter(reporter);
    System.out.println(mnpc.check(cls));
  }
View Full Code Here

  }
 
  public static void main(String[] args) {
    ProviderFactory.init(JPF.createConfig(args));
    logger.setLevel(Level.ALL);
    ClassInfo cls = new ModelClassProvider().loadClassInfo("java.lang.System");
    OrphanNativePeerChecker onpc = new OrphanNativePeerChecker();
    SimpleCmdLineReporter reporter = new SimpleCmdLineReporter(JPF.createConfig(args));
    onpc.registerReporter(reporter);
    System.out.println(onpc.check(cls));
  }
View Full Code Here

TOP

Related Classes of gov.nasa.jpf.conformanceChecker.providers.ModelClassProvider

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.