亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? classloader.java

?? gcc的組建
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ClassLoader.java -- responsible for loading classes into the VM   Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.lang;import gnu.classpath.SystemProperties;import gnu.classpath.VMStackWalker;import gnu.java.util.DoubleEnumeration;import gnu.java.util.EmptyEnumeration;import java.io.File;import java.io.IOException;import java.io.InputStream;import java.lang.reflect.Constructor;import java.net.URL;import java.net.URLClassLoader;import java.nio.ByteBuffer;import java.security.CodeSource;import java.security.PermissionCollection;import java.security.Policy;import java.security.ProtectionDomain;import java.util.ArrayList;import java.util.Enumeration;import java.util.HashMap;import java.util.Map;import java.util.StringTokenizer;/** * The ClassLoader is a way of customizing the way Java gets its classes * and loads them into memory.  The verifier and other standard Java things * still run, but the ClassLoader is allowed great flexibility in determining * where to get the classfiles and when to load and resolve them. For that * matter, a custom ClassLoader can perform on-the-fly code generation or * modification! * * <p>Every classloader has a parent classloader that is consulted before * the 'child' classloader when classes or resources should be loaded. * This is done to make sure that classes can be loaded from an hierarchy of * multiple classloaders and classloaders do not accidentially redefine * already loaded classes by classloaders higher in the hierarchy. * * <p>The grandparent of all classloaders is the bootstrap classloader, which * loads all the standard system classes as implemented by GNU Classpath. The * other special classloader is the system classloader (also called * application classloader) that loads all classes from the CLASSPATH * (<code>java.class.path</code> system property). The system classloader * is responsible for finding the application classes from the classpath, * and delegates all requests for the standard library classes to its parent * the bootstrap classloader. Most programs will load all their classes * through the system classloaders. * * <p>The bootstrap classloader in GNU Classpath is implemented as a couple of * static (native) methods on the package private class * <code>java.lang.VMClassLoader</code>, the system classloader is an * anonymous inner class of ClassLoader and a subclass of * <code>java.net.URLClassLoader</code>. * * <p>Users of a <code>ClassLoader</code> will normally just use the methods * <ul> *  <li> <code>loadClass()</code> to load a class.</li> *  <li> <code>getResource()</code> or <code>getResourceAsStream()</code> *       to access a resource.</li> *  <li> <code>getResources()</code> to get an Enumeration of URLs to all *       the resources provided by the classloader and its parents with the *       same name.</li> * </ul> * * <p>Subclasses should implement the methods * <ul> *  <li> <code>findClass()</code> which is called by <code>loadClass()</code> *       when the parent classloader cannot provide a named class.</li> *  <li> <code>findResource()</code> which is called by *       <code>getResource()</code> when the parent classloader cannot provide *       a named resource.</li> *  <li> <code>findResources()</code> which is called by *       <code>getResource()</code> to combine all the resources with the *       same name from the classloader and its parents.</li> *  <li> <code>findLibrary()</code> which is called by *       <code>Runtime.loadLibrary()</code> when a class defined by the *       classloader wants to load a native library.</li> * </ul> * * @author John Keiser * @author Mark Wielaard * @author Eric Blake (ebb9@email.byu.edu) * @see Class * @since 1.0 * @status still missing 1.4 functionality */public abstract class ClassLoader{  /**   * All packages defined by this classloader. It is not private in order to   * allow native code (and trusted subclasses) access to this field.   */  final HashMap definedPackages = new HashMap();  /**   * The classloader that is consulted before this classloader.   * If null then the parent is the bootstrap classloader.   */  private final ClassLoader parent;  /**   * This is true if this classloader was successfully initialized.   * This flag is needed to avoid a class loader attack: even if the   * security manager rejects an attempt to create a class loader, the   * malicious class could have a finalize method which proceeds to   * define classes.   */  private final boolean initialized;  static class StaticData  {    /**     * The System Class Loader (a.k.a. Application Class Loader). The one     * returned by ClassLoader.getSystemClassLoader.     */    static final ClassLoader systemClassLoader =                              VMClassLoader.getSystemClassLoader();    static    {      // Find out if we have to install a default security manager. Note that      // this is done here because we potentially need the system class loader      // to load the security manager and note also that we don't need the      // security manager until the system class loader is created.      // If the runtime chooses to use a class loader that doesn't have the      // system class loader as its parent, it is responsible for setting      // up a security manager before doing so.      String secman = SystemProperties.getProperty("java.security.manager");      if (secman != null && SecurityManager.current == null)        {          if (secman.equals("") || secman.equals("default"))	    {	      SecurityManager.current = new SecurityManager();	    }	  else	    {	      try	        {	  	  Class cl = Class.forName(secman, false, StaticData.systemClassLoader);		  SecurityManager.current = (SecurityManager)cl.newInstance();	        }	      catch (Exception x)	        {		  throw (InternalError)		      new InternalError("Unable to create SecurityManager")		  	  .initCause(x);	        }	    }        }    }    /**     * The default protection domain, used when defining a class with a null     * parameter for the domain.     */    static final ProtectionDomain defaultProtectionDomain;    static    {        CodeSource cs = new CodeSource(null, null);        PermissionCollection perm = Policy.getPolicy().getPermissions(cs);        defaultProtectionDomain = new ProtectionDomain(cs, perm);    }    /**     * The command-line state of the package assertion status overrides. This     * map is never modified, so it does not need to be synchronized.     */    // Package visible for use by Class.    static final Map systemPackageAssertionStatus      = VMClassLoader.packageAssertionStatus();    /**     * The command-line state of the class assertion status overrides. This     * map is never modified, so it does not need to be synchronized.     */    // Package visible for use by Class.    static final Map systemClassAssertionStatus      = VMClassLoader.classAssertionStatus();  }  /**   * The desired assertion status of classes loaded by this loader, if not   * overridden by package or class instructions.   */  // Package visible for use by Class.  boolean defaultAssertionStatus = VMClassLoader.defaultAssertionStatus();  /**   * The map of package assertion status overrides, or null if no package   * overrides have been specified yet. The values of the map should be   * Boolean.TRUE or Boolean.FALSE, and the unnamed package is represented   * by the null key. This map must be synchronized on this instance.   */  // Package visible for use by Class.  Map packageAssertionStatus;  /**   * The map of class assertion status overrides, or null if no class   * overrides have been specified yet. The values of the map should be   * Boolean.TRUE or Boolean.FALSE. This map must be synchronized on this   * instance.   */  // Package visible for use by Class.  Map classAssertionStatus;  /**   * VM private data.   */  transient Object vmdata;  /**   * Create a new ClassLoader with as parent the system classloader. There   * may be a security check for <code>checkCreateClassLoader</code>.   *   * @throws SecurityException if the security check fails   */  protected ClassLoader() throws SecurityException  {    this(StaticData.systemClassLoader);  }  /**   * Create a new ClassLoader with the specified parent. The parent will   * be consulted when a class or resource is requested through   * <code>loadClass()</code> or <code>getResource()</code>. Only when the   * parent classloader cannot provide the requested class or resource the   * <code>findClass()</code> or <code>findResource()</code> method   * of this classloader will be called. There may be a security check for   * <code>checkCreateClassLoader</code>.   *   * @param parent the classloader's parent, or null for the bootstrap   *        classloader   * @throws SecurityException if the security check fails   * @since 1.2   */  protected ClassLoader(ClassLoader parent)  {    // May we create a new classloader?    SecurityManager sm = SecurityManager.current;    if (sm != null)      sm.checkCreateClassLoader();    this.parent = parent;    this.initialized = true;  }  /**   * Load a class using this ClassLoader or its parent, without resolving   * it. Calls <code>loadClass(name, false)</code>.   *   * <p>Subclasses should not override this method but should override   * <code>findClass()</code> which is called by this method.</p>   *   * @param name the name of the class relative to this ClassLoader   * @return the loaded class   * @throws ClassNotFoundException if the class cannot be found   */  public Class loadClass(String name) throws ClassNotFoundException  {    return loadClass(name, false);  }  /**   * Load a class using this ClassLoader or its parent, possibly resolving   * it as well using <code>resolveClass()</code>. It first tries to find   * out if the class has already been loaded through this classloader by   * calling <code>findLoadedClass()</code>. Then it calls   * <code>loadClass()</code> on the parent classloader (or when there is   * no parent it uses the VM bootclassloader). If the class is still   * not loaded it tries to create a new class by calling   * <code>findClass()</code>. Finally when <code>resolve</code> is   * <code>true</code> it also calls <code>resolveClass()</code> on the   * newly loaded class.   *   * <p>Subclasses should not override this method but should override   * <code>findClass()</code> which is called by this method.</p>   *   * @param name the fully qualified name of the class to load   * @param resolve whether or not to resolve the class   * @return the loaded class   * @throws ClassNotFoundException if the class cannot be found   */  protected synchronized Class loadClass(String name, boolean resolve)    throws ClassNotFoundException  {    // Have we already loaded this class?    Class c = findLoadedClass(name);    if (c == null)      {	// Can the class be loaded by a parent?	try	  {	    if (parent == null)	      {		c = VMClassLoader.loadClass(name, resolve);		if (c != null)		  return c;	      }	    else	      {		return parent.loadClass(name, resolve);	      }	  }	catch (ClassNotFoundException e)	  {	  }	// Still not found, we have to do it ourself.	c = findClass(name);      }    if (resolve)      resolveClass(c);    return c;  }  /**   * Called for every class name that is needed but has not yet been   * defined by this classloader or one of its parents. It is called by   * <code>loadClass()</code> after both <code>findLoadedClass()</code> and   * <code>parent.loadClass()</code> couldn't provide the requested class.   *   * <p>The default implementation throws a   * <code>ClassNotFoundException</code>. Subclasses should override this   * method. An implementation of this method in a subclass should get the   * class bytes of the class (if it can find them), if the package of the   * requested class doesn't exist it should define the package and finally   * it should call define the actual class. It does not have to resolve the   * class. It should look something like the following:<br>   *   * <pre>   * // Get the bytes that describe the requested class   * byte[] classBytes = classLoaderSpecificWayToFindClassBytes(name);   * // Get the package name   * int lastDot = name.lastIndexOf('.');   * if (lastDot != -1)   *   {   *     String packageName = name.substring(0, lastDot);   *     // Look if the package already exists   *     if (getPackage(packageName) == null)   *       {   *         // define the package   *         definePackage(packageName, ...);   *       }   *   }   * // Define and return the class   *  return defineClass(name, classBytes, 0, classBytes.length);   * </pre>   *   * <p><code>loadClass()</code> makes sure that the <code>Class</code>   * returned by <code>findClass()</code> will later be returned by

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久天堂av综合合色蜜桃网| 欧美日韩国产综合一区二区| 国产亚洲欧美在线| 国产精品538一区二区在线| 欧美国产日韩亚洲一区| 91视频在线观看| 无码av免费一区二区三区试看| 在线不卡中文字幕播放| 精品一区精品二区高清| 欧美激情一区二区三区四区| 色综合久久中文综合久久97| 五月天视频一区| 久久综合九色综合欧美亚洲| 成人美女视频在线看| 亚洲综合久久av| 欧美一级艳片视频免费观看| 国产一区二区精品在线观看| 综合色天天鬼久久鬼色| 欧美午夜电影在线播放| 久久国产精品99久久久久久老狼| 国产欧美综合在线| 欧美日韩国产一区二区三区地区| 黄色日韩网站视频| 一区二区三区在线视频观看| 日韩欧美www| 91蜜桃视频在线| 另类专区欧美蜜桃臀第一页| 亚洲视频一区在线| 精品国产亚洲一区二区三区在线观看 | 亚洲欧美另类小说| 制服丝袜激情欧洲亚洲| 大胆亚洲人体视频| 日日噜噜夜夜狠狠视频欧美人| 中文幕一区二区三区久久蜜桃| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 日产国产欧美视频一区精品| 国产精品久久久久久久久免费丝袜| 欧美日韩一区二区三区四区五区 | 中文字幕乱码一区二区免费| 欧美日韩黄色一区二区| 成人免费va视频| 久久爱www久久做| 亚洲精品亚洲人成人网在线播放| www国产成人免费观看视频 深夜成人网| 91伊人久久大香线蕉| 狠狠色丁香久久婷婷综合丁香| 亚洲激情第一区| 中文字幕av一区 二区| 精品伦理精品一区| 欧美久久免费观看| 日本高清无吗v一区| 国产成a人无v码亚洲福利| 久久精品国产99国产| 亚洲福利一区二区| 亚洲视频网在线直播| 中文字幕精品—区二区四季| 2020国产精品自拍| 欧美一区日韩一区| 51久久夜色精品国产麻豆| 欧美在线影院一区二区| 色国产综合视频| av电影在线观看一区| 国产电影一区二区三区| 国内精品视频一区二区三区八戒 | 亚洲国产另类av| 亚洲色图色小说| 国产精品国模大尺度视频| 国产欧美日韩另类视频免费观看| wwww国产精品欧美| 日韩欧美一区中文| 日韩欧美黄色影院| 日韩天堂在线观看| 精品国产乱子伦一区| 精品国产青草久久久久福利| 精品美女在线播放| 久久午夜电影网| 国产亚洲精品bt天堂精选| 欧美高清在线精品一区| 国产精品久久久久久久第一福利| 国产精品麻豆一区二区| 国产精品高潮久久久久无| 国产精品福利在线播放| 亚洲精品国产品国语在线app| 一区二区三区免费看视频| 亚洲制服丝袜av| 日日夜夜免费精品视频| 久久99精品国产.久久久久久| 激情伊人五月天久久综合| 国产精品亚洲成人| 波多野结衣一区二区三区| 91捆绑美女网站| 欧美写真视频网站| 日韩欧美在线不卡| 国产日韩欧美精品在线| 国产精品久久久99| 亚洲最大成人网4388xx| 免费不卡在线视频| 丁香激情综合国产| 欧美在线观看视频在线| 日韩一区二区免费在线电影| 精品精品欲导航| 国产精品伦理在线| 亚洲国产aⅴ天堂久久| 免费的成人av| 成人激情综合网站| 欧美在线|欧美| 欧美第一区第二区| 国产精品九色蝌蚪自拍| 亚洲国产日韩av| 国产最新精品免费| 色欧美片视频在线观看在线视频| 欧美日韩电影一区| 国产精品美女一区二区在线观看| 亚洲综合区在线| 国产精品一区二区你懂的| 色哟哟国产精品| 久久新电视剧免费观看| 亚洲制服欧美中文字幕中文字幕| 国产在线看一区| 欧美日韩国产另类不卡| 欧美激情一区二区三区在线| 日日夜夜精品免费视频| a级高清视频欧美日韩| 日韩欧美亚洲国产另类| 一区二区三区在线影院| 国产自产视频一区二区三区| 欧洲在线/亚洲| 日本一区二区不卡视频| 日本欧美一区二区在线观看| 99久久免费视频.com| 久久婷婷成人综合色| 石原莉奈一区二区三区在线观看| 99热精品一区二区| 日韩精品一区二区三区视频播放 | 色婷婷久久综合| 亚洲精品一线二线三线| 亚洲一区在线观看网站| 成人亚洲一区二区一| 欧美成人性福生活免费看| 一区二区日韩av| 成人精品鲁一区一区二区| 日韩午夜中文字幕| 亚洲成av人片一区二区梦乃| 不卡av在线网| 久久久亚洲精品石原莉奈| 日韩高清一区二区| 欧美性生交片4| 国产精品国产三级国产有无不卡 | 国产精品网站导航| 麻豆精品一区二区三区| 欧美疯狂性受xxxxx喷水图片| 亚洲另类在线视频| 99精品视频中文字幕| 国产精品乱码人人做人人爱| 加勒比av一区二区| 欧美一区二区在线看| 五月天久久比比资源色| 欧美色综合久久| 亚洲一区二区精品3399| 在线视频你懂得一区| 亚洲美女淫视频| 91蜜桃免费观看视频| 一区二区视频在线看| 大胆欧美人体老妇| 国产精品久久久久国产精品日日 | 在线视频一区二区三区| 国产精品二区一区二区aⅴ污介绍| 国产91精品久久久久久久网曝门 | 一区二区三区不卡在线观看| 国产1区2区3区精品美女| 欧美激情在线一区二区三区| 国产综合久久久久久鬼色| 久久人人爽爽爽人久久久| 国产成人亚洲综合a∨婷婷 | 国产精品不卡在线| 91国偷自产一区二区三区成为亚洲经典 | 欧美精品三级在线观看| 日一区二区三区| 欧美大片在线观看一区二区| 精品一二三四区| 日本一区二区三区四区在线视频| 成人黄色免费短视频| 亚洲少妇最新在线视频| 色偷偷成人一区二区三区91| 亚洲午夜精品久久久久久久久| 欧美精品xxxxbbbb| 久草这里只有精品视频| 久久久久久亚洲综合影院红桃 | 麻豆免费看一区二区三区| 国产午夜精品久久久久久久 | 欧美三级电影在线看| 免费一区二区视频| 欧美激情一区二区在线| 欧美中文字幕一区二区三区 | 全国精品久久少妇| 国产亚洲午夜高清国产拍精品| 91麻豆福利精品推荐| 蜜臀av一区二区在线观看| 日本一区二区久久| 欧美日韩一区在线观看|