source: trunk/src/gcc/libjava/java/lang/VMClassLoader.java@ 1389

Last change on this file since 1389 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.2 KB
Line 
1/*
2 * java.lang.ClassLoader: part of the Java Class Libraries project.
3 * Copyright (C) 1998, 2001 Free Software Foundation
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 */
20
21package java.lang;
22
23/**
24 * java.lang.VMClassLoader is a package-private helper for VMs to implement
25 * on behalf of java.lang.ClassLoader.
26 *
27 * @author John Keiser
28 * @version 1.1.0, Sep 22 1998
29 * @since CP1.1
30 */
31
32class VMClassLoader {
33
34 /**
35 * Helper to define a class using a string of bytes.
36 *
37 * @param name the name to give the class. null if unknown.
38 * @param data the data representing the classfile, in classfile format.
39 * @param offset the offset into the data where the classfile starts.
40 * @param len the length of the classfile data in the array.
41 * @return the class that was defined.
42 * @exception ClassFormatError if the byte array is not in proper classfile format.
43 */
44 // Not yet needed for libgcj.
45// final static native Class defineClass(ClassLoader cl, String name,
46// byte[] data, int offset, int len) throws ClassFormatError;
47
48 /**
49 * Helper to resolve all references to other classes from this class.
50 * @param c the class to resolve.
51 */
52 // Not yet needed for libgcj.
53 // final static native void resolveClass(Class c);
54
55 /**
56 * Helper for java.lang.Integer, Byte, etc. to get the TYPE class
57 * at initialization time.
58 *
59 * @param type code for the primitive type.
60 */
61 static native Class getPrimitiveClass(char type);
62}
Note: See TracBrowser for help on using the repository browser.