Package nginx.clojure.wave.MethodDatabase

Examples of nginx.clojure.wave.MethodDatabase.ClassEntry


    }
  }

  public static void markSuper(String parent, String child, Set<String> methods,
      Map<String, TreeMap<String, String>> upperMarks) {
    ClassEntry ice = db.getClasses().get(parent);
    if (ice != null) {
      Set<String> tmp = new HashSet<String>(methods);
      tmp.retainAll(ice.getMethods().keySet());
      if (!tmp.isEmpty()) {
        TreeMap<String, String> ms = upperMarks.get(parent);
        if (ms == null) {
          upperMarks.put(parent, ms = new TreeMap<String, String>());
        }
View Full Code Here


 
 
  public void testLazyAndFuzzyClass() throws IOException {
    MethodDatabase db = new MethodDatabase(Thread.currentThread().getContextClassLoader());
    MethodDatabaseUtil.load(db, "nginx/clojure/wave/test-coroutine-and-compojure-db.txt");
    ClassEntry sce = MethodDatabaseUtil.buildClassEntryFamily(db, "nginx/clojure/net/SimpleHandler4TestNginxClojureSocket");
    assertEquals(MethodDatabase.SUSPEND_NORMAL, sce.check("invoke(Ljava/lang/Object;)Ljava/lang/Object;"));
  }
View Full Code Here

 
  @Test
  public void testBuildClassEntryFamily() throws IOException {
    MethodDatabase db = new MethodDatabase(Thread.currentThread().getContextClassLoader());
    MethodDatabaseUtil.load(db, "nginx/clojure/wave/coroutine-method-db.txt");
    ClassEntry ce = MethodDatabaseUtil.buildClassEntryFamily(db, "nginx/clojure/CatchTest");
    assertEquals(MethodDatabase.SUSPEND_NONE, ce.check("testCatch", "()V"));
    assertEquals(MethodDatabase.SUSPEND_NORMAL, ce.check("run", "()V"));
   
   
   
    ClassEntry ifnce = MethodDatabaseUtil.buildClassEntryFamily(db, Type.getInternalName(MyAF.class));
    assertEquals(MethodDatabase.SUSPEND_FAMILY, db.checkMethodSuspendType(Type.getInternalName(MyAF.class),"invoke()Ljava/lang/Object;", true));
  }
View Full Code Here

TOP

Related Classes of nginx.clojure.wave.MethodDatabase.ClassEntry

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.