コード例 #1
0
 public JavaClass loadClass(String className) throws ClassNotFoundException {
   ClassInfo cls = AppInfo.getSingleton().loadClass(className);
   if (cls != null) {
     return cls.getJavaClass(false);
   }
   return null;
 }
コード例 #2
0
 public JavaClass findClass(String className) {
   ClassInfo cls = AppInfo.getSingleton().getClassInfo(className);
   if (cls != null) {
     return cls.getJavaClass(false);
   }
   return null;
 }
コード例 #3
0
 public JavaClass loadClass(Class clazz) throws ClassNotFoundException {
   ClassInfo cls;
   try {
     cls = AppInfo.getSingleton().loadClass(clazz.getName(), false, false);
   } catch (ClassInfoNotFoundException e) {
     throw new ClassNotFoundException(e.getMessage(), e);
   }
   if (cls != null) {
     return cls.getJavaClass(false);
   }
   return null;
 }