All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.tools.WrappedClass

java.lang.Object
   |
   +----openjava.util.PartialParser
           |
           +----openjava.tools.WrappedClass

public class WrappedClass
extends PartialParser
The WrappedClass class will be the base class of openjava.Class. This class has the same methods as java.lang.Class.

See Also:
Class, Class

Constructor Index

 o WrappedClass()
This class cannot be construct.

Method Index

 o forName(String)
Returns the Class object associated with the class with the given string name.

Constructors

 o WrappedClass
 protected WrappedClass()
This class cannot be construct.

Methods

 o forName
 public static Class forName(String className) throws ClassNotFoundException
Returns the Class object associated with the class with the given string name. Given the fully-qualified name for a class or interface, this method attempts to locate, load and link the class. If it succeeds, returns the Class object representing the class. If it fails, the method throws a ClassNotFoundException.

For example, the following code fragment returns the runtime Class descriptor for the class named java.lang.Thread:

Parameters:
className - the fully qualified name of the desired class.
Returns:
the Class descriptor for the class with the specified name.
Throws: ClassNotFoundException
if the class could not be found.

All Packages  Class Hierarchy  This Package  Previous  Next  Index