View Javadoc

1   // Package.java, created Sun Feb 23  2:02:26 2003 by joewhaley
2   // Copyright (C) 2001-3 John Whaley <jwhaley@alum.mit.edu>
3   // Licensed under the terms of the GNU LGPL; see COPYING for details.
4   package joeq.ClassLib.Common.java.lang;
5   
6   import joeq.Class.PrimordialClassLoader;
7   
8   /***
9    * Package
10   *
11   * @author John Whaley <jwhaley@alum.mit.edu>
12   * @version $Id: Package.java 1456 2004-03-09 22:01:46Z jwhaley $
13   */
14  public abstract class Package {
15      private static java.lang.String getSystemPackage0(java.lang.String name) {
16          for (int i=0; i<system_packages.length; ++i) {
17              if (name.equals(system_packages[i])) {
18                  return PrimordialClassLoader.loader.getPackagePath(name);
19              }
20          }
21          return null;
22      }
23      private static java.lang.String[] getSystemPackages0() {
24          return system_packages;
25      }
26      private static java.lang.String[] system_packages = {
27          "java/net/",
28          "java/nio/",
29          "java/beans/",
30          "sun/misc/",
31          "sun/nio/cs/",
32          "sun/reflect/",
33          "java/io/",
34          "java/security/",
35          "java/nio/charset/",
36          "sun/io/",
37          "java/util/",
38          "java/lang/",
39          "java/util/logging/",
40          "java/security/cert/",
41          "java/lang/reflect/",
42          "java/util/jar/",
43          "java/util/zip/",
44          "sun/security/util/",
45          "sun/net/www/",
46          "java/lang/ref/",
47          "sun/net/www/protocol/jar/",
48          "java/nio/charset/spi/",
49          "sun/net/www/protocol/file/",
50          "sun/security/action/" };
51  
52  }