示例#1
0
 public static java.lang.Class findLoadedClass0(java.lang.ClassLoader thisClassLoader, string name)
 {
             #if FIRST_PASS
     return(null);
             #else
     if (name == null)
     {
         return(null);
     }
     if (thisClassLoader == null)
     {
         ClassLoaderWrapper loader = ClassLoaderWrapper.GetClassLoaderWrapper(thisClassLoader);
         TypeWrapper        tw     = loader.FindLoadedClass(name);
         return(tw != null ? tw.ClassObject : null);
     }
     Object temp = thisClassLoader.loadedClassesMap.get(name);
     if (temp == null)
     {
         ClassLoaderWrapper loader = ClassLoaderWrapper.GetClassLoaderWrapper(thisClassLoader);
         TypeWrapper        tw     = loader.FindLoadedClass(name);
         java.lang.Class    tmp    = (tw != null ? tw.ClassObject : null);
         if (tmp != null)
         {
             thisClassLoader.loadedClassesMap.putIfAbsent(name, tmp);
         }
         return(tmp);
     }
     else
     {
         return((java.lang.Class)temp);
     }
             #endif
 }
示例#2
0
    public static java.lang.Class findLoadedClass0(java.lang.ClassLoader thisClassLoader, string name)
    {
        if (name == null)
        {
            return(null);
        }
        ClassLoaderWrapper loader = ClassLoaderWrapper.GetClassLoaderWrapper(thisClassLoader);
        TypeWrapper        tw     = loader.FindLoadedClass(name);

        return(tw != null ? tw.ClassObject : null);
    }