<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.Class
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Character.html#_top_">Previous</a>  <a href="java.lang.ClassLoader.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.Class
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.lang.Class
</pre>
<hr>
<dl>
  <dt> public final class <b>Class</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
Instances of the class </code>Class</code> represent classes and 
 interfaces in a running Java application.
 Every array also belongs to a class that is reflected as a Class
 object that is shared by all arrays with the same element type and
 number of dimensions.  Finally, the either primitive Java types
 (boolean, byte, char, short, int, long, float, and double) and
 the keyword void are also represented as Class objects.
 <p>
 There is no public constructor for the class </code>Class</code>. 
 </code>Class</code> objects are constructed automatically by the Java 
 Virtual Machine as classes are loaded and by calls to the 
 <code>defineClass</code> method in the class loader. 
 <p>
 The following example uses a Class object to print the Class name
 of an object:
 <p><pre><blockquote>
     void printClassName(Object obj) {
         System.out.println("The class of " + obj +
                            " is " + obj.getClass().getName());
     }
 </blockquote></pre>
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#defineClass(byte[], int, int)">defineClass</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#forName(java.lang.String)"><b>forName</b></a>(String)
  <dd>  Returns the <code>Class</code> object associated with the class 
 with the given string name.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getClasses()"><b>getClasses</b></a>()
  <dd>  Not implemented in this version of the 
 Java<font size="-2"><sup>TM</sup></font> Development Kit.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getClassLoader()"><b>getClassLoader</b></a>()
  <dd>  Determines the class loader for the class.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getComponentType()"><b>getComponentType</b></a>()
  <dd>  If this class represents an array type, returns the Class
 object representing the component type of the array; otherwise
 returns null.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getConstructor(java.lang.Class[])"><b>getConstructor</b></a>(Class[])
  <dd>  Returns a Constructor object that reflects the specified public
 constructor of the class represented by this Class object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getConstructors()"><b>getConstructors</b></a>()
  <dd>  Returns an array containing Constructor objects reflecting
 all the public constructors of the class represented by this
 Class object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaredClasses()"><b>getDeclaredClasses</b></a>()
  <dd>  Not implemented in this version of the 
 Java<font size="-2"><sup>TM</sup></font> Development Kit.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaredConstructor(java.lang.Class[])"><b>getDeclaredConstructor</b></a>(Class[])
  <dd>  Returns a Constructor object that reflects the specified declared
 constructor of the class or interface represented by this Class
 object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaredConstructors()"><b>getDeclaredConstructors</b></a>()
  <dd>  Returns an array of Constructor objects reflecting all the
 constructors declared by the class represented by this Class
 object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaredField(java.lang.String)"><b>getDeclaredField</b></a>(String)
  <dd>  Returns a Field object that reflects the specified declared
 field of the class or interface represented by this Class
 object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaredFields()"><b>getDeclaredFields</b></a>()
  <dd>  Returns an array of Field objects reflecting all the fields
 declared by the class or interface represented by this Class
 object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaredMethod(java.lang.String, java.lang.Class[])"><b>getDeclaredMethod</b></a>(String, Class[])
  <dd>  Returns a Method object that reflects the specified declared
 method of the class or interface represented by this Class
 object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaredMethods()"><b>getDeclaredMethods</b></a>()
  <dd>  Returns an array of Method objects reflecting all the methods
 declared by the class or interface represented by this Class
 object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaringClass()"><b>getDeclaringClass</b></a>()
  <dd>  Not implemented in this version of the 
 Java<font size="-2"><sup>TM</sup></font> Development Kit.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getField(java.lang.String)"><b>getField</b></a>(String)
  <dd>  Returns a Field object that reflects the specified public
 member field of the class or interface represented by
 this Class object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getFields()"><b>getFields</b></a>()
  <dd>  Returns an array containing Field objects reflecting all the
 accessible public fields of the class or interface represented
 by this Class object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInterfaces()"><b>getInterfaces</b></a>()
  <dd>  Determines the interfaces implemented by the class or interface 
 represented by this object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMethod(java.lang.String, java.lang.Class[])"><b>getMethod</b></a>(String, Class[])
  <dd>  Returns a Method object that reflects the specified public
 member method of the class or interface represented by this
 Class object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMethods()"><b>getMethods</b></a>()
  <dd>  Returns an array containing Method objects reflecting all the
 public <em>member</em> methods of the class or interface
 represented by this Class object, including those declared by
 the class or interface and and those inherited from
 superclasses and superinterfaces.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getModifiers()"><b>getModifiers</b></a>()
  <dd>  Returns the Java language modifiers for this class or
 interface, encoded in an integer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getName()"><b>getName</b></a>()
  <dd>  Returns the fully-qualified name of the type (class, interface,
 array, or primitive) represented by this Class object, as a String.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getResource(java.lang.String)"><b>getResource</b></a>(String)
  <dd>  Finds a resource with the specified name.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getResourceAsStream(java.lang.String)"><b>getResourceAsStream</b></a>(String)
  <dd>  Finds a resource with a given name.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getSigners()"><b>getSigners</b></a>()
  <dd>  Get the signers of this class.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getSuperclass()"><b>getSuperclass</b></a>()
  <dd>  If this object represents any class other than the class 
 </code>Object</code>, then the object that represents the superclass 
 of that class is returned.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isArray()"><b>isArray</b></a>()
  <dd>  If this Class object represents an array type, returns true,
 otherwise returns false.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isAssignableFrom(java.lang.Class)"><b>isAssignableFrom</b></a>(Class)
  <dd>  Determines if the class or interface
 represented by this Class object is either the same as, or is a
 superclass or superinterface of, the class or interface
 represented by the specified Class parameter.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isInstance(java.lang.Object)"><b>isInstance</b></a>(Object)
  <dd>  This method is the dynamic equivalent of the Java language
 <code>instanceof</code> operator.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isInterface()"><b>isInterface</b></a>()
  <dd>  Determines if the specified Class object represents an interface type.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isPrimitive()"><b>isPrimitive</b></a>()
  <dd>  Determines if the specified Class object represents a primitive Java
 type.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#newInstance()"><b>newInstance</b></a>()
  <dd>  Creates a new instance of a class.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Converts the object to a string.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Converts the object to a string. The string representation is the 
 string <code>"class"</code> or <code>"interface"</code> followed 
 by a space and then the fully qualified name of the class. 
 If this Class object represents a primitive type,
 returns the name of the primitive type.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string representation of this class object.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="forName(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="forName"><b>forName</b></a>
<pre>
 public static native <a href="#_top_">Class</a> forName(<a href="java.lang.String.html#_top_">String</a> className) throws <a href="java.lang.ClassNotFoundException.html#_top_">ClassNotFoundException</a>
</pre>
<dl>
  <dd> Returns the <code>Class</code> 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.
 <p>
 For example, the following code fragment returns the runtime 
 <code>Class</code> descriptor for the class named 
 <code>java.lang.Thread</code>: 
 <ul><code>
   Class&nbsp;t&nbsp;= Class.forName("java.lang.Thread")
 </code></ul>
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> className - the fully qualified name of the desired class.
    <dt> <b>Returns:</b>
    <dd> the <code>Class</code> descriptor for the class with the
             specified name.
    <dt> <b>Throws:</b> <a href="java.lang.ClassNotFoundException.html#_top_">ClassNotFoundException</a>
    <dd> if the class could not be found.
  </dl></dd>
</dl>
<a name="newInstance()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="newInstance"><b>newInstance</b></a>
<pre>
 public native <a href="java.lang.Object.html#_top_">Object</a> newInstance() throws <a href="java.lang.InstantiationException.html#_top_">InstantiationException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Creates a new instance of a class.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a newly allocated instance of the class represented by this
             object. This is done exactly as if by a <code>new</code>
             expression with an empty argument list.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the class or initializer is
               not accessible.
    <dt> <b>Throws:</b> <a href="java.lang.InstantiationException.html#_top_">InstantiationException</a>
    <dd> if an application tries to
               instantiate an abstract class or an interface, or if the
               instantiation fails for some other reason.
  </dl></dd>
</dl>
<a name="isInstance(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isInstance"><b>isInstance</b></a>
<pre>
 public native boolean isInstance(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> This method is the dynamic equivalent of the Java language
 <code>instanceof</code> operator. The method returns true if
 the specified Object argument is non-null and can be cast to
 the reference type represented by this Class object without
 raising a ClassCastException. It returns false otherwise.
 <p>Specifically, if this Class object represents a declared
 class, returns true if the specified Object argument is an
 instance of the represented class (or of any of its
 subclasses); false otherwise. If this Class object represents
 an array class, returns true if the specified Object argument
 can be converted to an object of the array type by an identity
 conversion or by a widening reference conversion; false
 otherwise. If this Class object represents an interface,
 returns true if the class or any superclass of the
 specified Object argument implements this interface; false
 otherwise. If this Class object represents a primitive type,
 returns false.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - The object to check
  </dl></dd>
</dl>
<a name="isAssignableFrom(java.lang.Class)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isAssignableFrom"><b>isAssignableFrom</b></a>
<pre>
 public native boolean isAssignableFrom(<a href="#_top_">Class</a> cls)
</pre>
<dl>
  <dd> Determines if the class or interface
 represented by this Class object is either the same as, or is a
 superclass or superinterface of, the class or interface
 represented by the specified Class parameter. It returns true
 if so, false otherwise. If this Class object represents a
 primitive type, returns true if the specified Class parameter
 is exactly this Class object, false otherwise.
 <p>Specifically, this method tests whether the type represented
 by the specified Class parameter can be converted to the type
 represented by this Class object via an identity conversion or
 via a widening reference conversion. See <em>The Java Language
 Specification</em>, sections 5.1.1 and 5.1.4 , for details.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> if the specified Class parameter is null.
  </dl></dd>
</dl>
<a name="isInterface()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isInterface"><b>isInterface</b></a>
<pre>
 public native boolean isInterface()
</pre>
<dl>
  <dd> Determines if the specified Class object represents an interface type.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if this object represents an interface;
          <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="isArray()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isArray"><b>isArray</b></a>
<pre>
 public native boolean isArray()
</pre>
<dl>
  <dd> If this Class object represents an array type, returns true,
 otherwise returns false.
<p>
</dl>
<a name="isPrimitive()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isPrimitive"><b>isPrimitive</b></a>
<pre>
 public native boolean isPrimitive()
</pre>
<dl>
  <dd> Determines if the specified Class object represents a primitive Java
 type.
 <p>There are nine predefined Class objects to represent the eight
 primitive Java types and void.  These are created by the Java
 Virtual Machine, and have the same names as the primitive types
 that they represent, namely boolean, byte, char, short, int,
 long, float, and double, and void.
 <p>These objects may only be accessed via the following public
 static final variables, and are the only Class objects for
 which this method returns true.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Boolean.html#TYPE">TYPE</a>, <a href="java.lang.Character.html#TYPE">TYPE</a>, <a href="java.lang.Byte.html#TYPE">TYPE</a>, <a href="java.lang.Short.html#TYPE">TYPE</a>, <a href="java.lang.Integer.html#TYPE">TYPE</a>, <a href="java.lang.Long.html#TYPE">TYPE</a>, <a href="java.lang.Float.html#TYPE">TYPE</a>, <a href="java.lang.Double.html#TYPE">TYPE</a>, <a href="java.lang.Void.html#TYPE">TYPE</a>
  </dl></dd>
</dl>
<a name="getName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getName"><b>getName</b></a>
<pre>
 public native <a href="java.lang.String.html#_top_">String</a> getName()
</pre>
<dl>
  <dd> Returns the fully-qualified name of the type (class, interface,
 array, or primitive) represented by this Class object, as a String.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the fully qualified name of the class or interface
          represented by this object.
  </dl></dd>
</dl>
<a name="getClassLoader()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getClassLoader"><b>getClassLoader</b></a>
<pre>
 public native <a href="java.lang.ClassLoader.html#_top_">ClassLoader</a> getClassLoader()
</pre>
<dl>
  <dd> Determines the class loader for the class.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the class loader that created the class or interface
          represented by this object, or <code>null</code> if the
          class was not created by a class loader.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#_top_">ClassLoader</a>
  </dl></dd>
</dl>
<a name="getSuperclass()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getSuperclass"><b>getSuperclass</b></a>
<pre>
 public native <a href="#_top_">Class</a> getSuperclass()
</pre>
<dl>
  <dd> If this object represents any class other than the class 
 </code>Object</code>, then the object that represents the superclass 
 of that class is returned. 
 <p>
 If this object is the one that represents the class 
 </code>Object</code> or this object represents an interface, 
 </code>null</code> is returned.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the superclass of the class represented by this object.
  </dl></dd>
</dl>
<a name="getInterfaces()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInterfaces"><b>getInterfaces</b></a>
<pre>
 public native <a href="#_top_">Class</a>[] getInterfaces()
</pre>
<dl>
  <dd> Determines the interfaces implemented by the class or interface 
 represented by this object. 
 <p>
 If this object represents a class, the return value is an array 
 containing objects representing all interfaces implemented by the 
 class. The order of the interface objects in the array corresponds 
 to the order of the interface names in the </code>implements</code> 
 clause of the declaration of the class represented by this object. 
 <p>
 If this object represents an interface, the array contains 
 objects representing all interfaces extended by the interface. The 
 order of the interface objects in the array corresponds to the 
 order of the interface names in the </code>extends</code> clause of 
 the declaration of the interface represented by this object. 
 <p>
 If the class or interface implements no interfaces, the method 
 returns an array of length 0.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> an array of interfaces implemented by this class.
  </dl></dd>
</dl>
<a name="getComponentType()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getComponentType"><b>getComponentType</b></a>
<pre>
 public native <a href="#_top_">Class</a> getComponentType()
</pre>
<dl>
  <dd> If this class represents an array type, returns the Class
 object representing the component type of the array; otherwise
 returns null.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Array.html#_top_">Array</a>
  </dl></dd>
</dl>
<a name="getModifiers()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getModifiers"><b>getModifiers</b></a>
<pre>
 public native int getModifiers()
</pre>
<dl>
  <dd> Returns the Java language modifiers for this class or
 interface, encoded in an integer. The modifiers consist of the
 Java Virtual Machine's constants for public, protected,
 private, final, and interface; they should be decoded using the
 methods of class Modifier.
 <p>The modifier encodings are defined in <em>The Java Virtual
 Machine Specification</em>, table 4.1.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Modifier.html#_top_">Modifier</a>
  </dl></dd>
</dl>
<a name="getSigners()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getSigners"><b>getSigners</b></a>
<pre>
 public native <a href="java.lang.Object.html#_top_">Object</a>[] getSigners()
</pre>
<dl>
  <dd> Get the signers of this class.
<p>
</dl>
<a name="getDeclaringClass()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaringClass"><b>getDeclaringClass</b></a>
<pre>
 public <a href="#_top_">Class</a> getDeclaringClass()
</pre>
<dl>
  <dd> Not implemented in this version of the 
 Java<font size="-2"><sup>TM</sup></font> Development Kit. 
 <p>
 If the class or interface represented by this Class object is
 a member of another class, returns the Class object
 representing the class of which it is a member (its
 <em>declaring class</em>).  Returns null if this class or
 interface is not a member of any other class.
<p>
</dl>
<a name="getClasses()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getClasses"><b>getClasses</b></a>
<pre>
 public <a href="#_top_">Class</a>[] getClasses()
</pre>
<dl>
  <dd> Not implemented in this version of the 
 Java<font size="-2"><sup>TM</sup></font> Development Kit. 
 <p>
 Returns an array containing Class objects representing all the
 public classes and interfaces that are members of the class
 represented by this Class object.  This includes public class
 and interface members inherited from superclasses and public
 class and interface members declared by the class.  Returns an
 array of length 0 if the class has no public member classes or
 interfaces, or if this Class object represents a primitive
 type.
<p>
</dl>
<a name="getFields()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getFields"><b>getFields</b></a>
<pre>
 public <a href="java.lang.reflect.Field.html#_top_">Field</a>[] getFields() throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns an array containing Field objects reflecting all the
 accessible public fields of the class or interface represented
 by this Class object.  Returns an array of length 0 if the
 class or interface has no accessible public fields, or if it
 represents an array type or a primitive type.
 <p>Specifically, if this Class object represents a class,
 returns the public fields of this class and of all its
 superclasses.  If this Class object represents an interface,
 returns the fields of this interface and of all its
 superinterfaces.  If this Class object represents an array type
 or a primitive type, returns an array of length 0.
 <p>The implicit length field for array types is not reflected
 by this method. User code should use the methods of class Array
 to manipulate arrays.
 <p>See <em>The Java Language Specification</em>, sections 8.2 and 8.3.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Field.html#_top_">Field</a>
  </dl></dd>
</dl>
<a name="getMethods()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMethods"><b>getMethods</b></a>
<pre>
 public <a href="java.lang.reflect.Method.html#_top_">Method</a>[] getMethods() throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns an array containing Method objects reflecting all the
 public <em>member</em> methods of the class or interface
 represented by this Class object, including those declared by
 the class or interface and and those inherited from
 superclasses and superinterfaces. Returns an array of length 0
 if the class or interface has no public member methods.
 <p>See <em>The Java Language Specification</em>, sections 8.2
 and 8.4.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Method.html#_top_">Method</a>
  </dl></dd>
</dl>
<a name="getConstructors()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getConstructors"><b>getConstructors</b></a>
<pre>
 public <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a>[] getConstructors() throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns an array containing Constructor objects reflecting
 all the public constructors of the class represented by this
 Class object.  An array of length 0 is returned if the class
 has no public constructors.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a>
  </dl></dd>
</dl>
<a name="getField(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getField"><b>getField</b></a>
<pre>
 public <a href="java.lang.reflect.Field.html#_top_">Field</a> getField(<a href="java.lang.String.html#_top_">String</a> name) throws <a href="java.lang.NoSuchFieldException.html#_top_">NoSuchFieldException</a>, <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns a Field object that reflects the specified public
 member field of the class or interface represented by
 this Class object. The name parameter is a String specifying
 the simple name of the desired field.
 <p>The field to be reflected is located by searching all the
 member fields of the class or interface represented by this
 Class object for a public field with the specified name.
 <p>See <em>The Java Language Specification</em>, sections 8.2 and 8.3.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.NoSuchFieldException.html#_top_">NoSuchFieldException</a>
    <dd> if a field with the specified name is
              not found.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Field.html#_top_">Field</a>
  </dl></dd>
</dl>
<a name="getMethod(java.lang.String, java.lang.Class[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMethod"><b>getMethod</b></a>
<pre>
 public <a href="java.lang.reflect.Method.html#_top_">Method</a> getMethod(<a href="java.lang.String.html#_top_">String</a> name,
                         <a href="#_top_">Class</a> parameterTypes[]) throws <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>, <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns a Method object that reflects the specified public
 member method of the class or interface represented by this
 Class object. The name parameter is a String specifying the
 simple name the desired method, and the parameterTypes
 parameter is an array of Class objects that identify the
 method's formal parameter types, in declared order.
 <p>The method to reflect is located by searching all the member
 methods of the class or interface represented by this Class
 object for a public method with the specified name and exactly
 the same formal parameter types.
 <p>See <em>The Java Language Specification</em>, sections 8.2
 and 8.4.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>
    <dd> if a matching method is not found.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Method.html#_top_">Method</a>
  </dl></dd>
</dl>
<a name="getConstructor(java.lang.Class[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getConstructor"><b>getConstructor</b></a>
<pre>
 public <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a> getConstructor(<a href="#_top_">Class</a> parameterTypes[]) throws <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>, <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns a Constructor object that reflects the specified public
 constructor of the class represented by this Class object. The
 parameterTypes parameter is an array of Class objects that
 identify the constructor's formal parameter types, in declared
 order.
 <p>The constructor to reflect is located by searching all the
 constructors of the class represented by this Class object for
 a public constructor with the exactly the same formal parameter
 types.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>
    <dd> if a matching method is not found.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a>
  </dl></dd>
</dl>
<a name="getDeclaredClasses()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaredClasses"><b>getDeclaredClasses</b></a>
<pre>
 public <a href="#_top_">Class</a>[] getDeclaredClasses() throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Not implemented in this version of the 
 Java<font size="-2"><sup>TM</sup></font> Development Kit. 
 <p>
 Returns an array of Class objects reflecting all the classes
 and interfaces declared as members of the class represented by
 this Class object. This includes public, protected, default
 (package) access, and private classes and interfaces declared
 by the class, but excludes inherited classes and interfaces.
 Returns an array of length 0 if the class declares no classes
 or interfaces as members, or if this Class object represents a
 primitive type.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
  </dl></dd>
</dl>
<a name="getDeclaredFields()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaredFields"><b>getDeclaredFields</b></a>
<pre>
 public <a href="java.lang.reflect.Field.html#_top_">Field</a>[] getDeclaredFields() throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns an array of Field objects reflecting all the fields
 declared by the class or interface represented by this Class
 object. This includes public, protected, default (package)
 access, and private fields, but excludes inherited
 fields. Returns an array of length 0 if the class or interface
 declares no fields, or if this Class object represents a
 primitive type.
 See <em>The Java Language Specification</em>, sections 8.2 and
 8.3.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Field.html#_top_">Field</a>
  </dl></dd>
</dl>
<a name="getDeclaredMethods()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaredMethods"><b>getDeclaredMethods</b></a>
<pre>
 public <a href="java.lang.reflect.Method.html#_top_">Method</a>[] getDeclaredMethods() throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns an array of Method objects reflecting all the methods
 declared by the class or interface represented by this Class
 object. This includes public, protected, default (package)
 access, and private methods, but excludes inherited
 methods. Returns an array of length 0 if the class or interface
 declares no methods, or if this Class object represents a
 primitive type.
 <p>See <em>The Java Language Specification</em>, section 8.2.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Method.html#_top_">Method</a>
  </dl></dd>
</dl>
<a name="getDeclaredConstructors()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaredConstructors"><b>getDeclaredConstructors</b></a>
<pre>
 public <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a>[] getDeclaredConstructors() throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns an array of Constructor objects reflecting all the
 constructors declared by the class represented by this Class
 object. These are public, protected, default (package) access,
 and private constructors.  Returns an array of length 0 if this
 Class object represents an interface or a primitive type.
 <p>See <em>The Java Language Specification</em>, section 8.2.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a>
  </dl></dd>
</dl>
<a name="getDeclaredField(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaredField"><b>getDeclaredField</b></a>
<pre>
 public <a href="java.lang.reflect.Field.html#_top_">Field</a> getDeclaredField(<a href="java.lang.String.html#_top_">String</a> name) throws <a href="java.lang.NoSuchFieldException.html#_top_">NoSuchFieldException</a>, <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns a Field object that reflects the specified declared
 field of the class or interface represented by this Class
 object. The name parameter is a String that specifies the
 simple name of the desired field.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.NoSuchFieldException.html#_top_">NoSuchFieldException</a>
    <dd> if a field with the specified name is
              not found.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Field.html#_top_">Field</a>
  </dl></dd>
</dl>
<a name="getDeclaredMethod(java.lang.String, java.lang.Class[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaredMethod"><b>getDeclaredMethod</b></a>
<pre>
 public <a href="java.lang.reflect.Method.html#_top_">Method</a> getDeclaredMethod(<a href="java.lang.String.html#_top_">String</a> name,
                                 <a href="#_top_">Class</a> parameterTypes[]) throws <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>, <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns a Method object that reflects the specified declared
 method of the class or interface represented by this Class
 object. The name parameter is a String that specifies the
 simple name of the desired method, and the parameterTypes
 parameter is an array of Class objects that identify the
 method's formal parameter types, in declared order.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>
    <dd> if a matching method is not found.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Method.html#_top_">Method</a>
  </dl></dd>
</dl>
<a name="getDeclaredConstructor(java.lang.Class[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDeclaredConstructor"><b>getDeclaredConstructor</b></a>
<pre>
 public <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a> getDeclaredConstructor(<a href="#_top_">Class</a> parameterTypes[]) throws <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>, <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Returns a Constructor object that reflects the specified declared
 constructor of the class or interface represented by this Class
 object.  The parameterTypes parameter is an array of Class
 objects that identify the constructor's formal parameter types,
 in declared order.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.NoSuchMethodException.html#_top_">NoSuchMethodException</a>
    <dd> if a matching method is not found.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if access to the information is denied.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Constructor.html#_top_">Constructor</a>
  </dl></dd>
</dl>
<a name="getResourceAsStream(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getResourceAsStream"><b>getResourceAsStream</b></a>
<pre>
 public <a href="java.io.InputStream.html#_top_">InputStream</a> getResourceAsStream(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Finds a resource with a given name.  Will return null if no
 resource with this name is found.  The rules for searching a
 resources associated with a given class are implemented by the
 ClassLoader of the class.<p>
 The Class methods delegate to ClassLoader methods, after applying
 a naming convention: if the resource name starts with "/", it is used
 as is.  Otherwise, the name of the package is prepended, after
 converting "." to "/".
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the string representing the resource to be found
    <dt> <b>Returns:</b>
    <dd> the <code>InputStream</code> object having the
             specified name, or <code>null</code> if no 
             resource with the specified name is found.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#_top_">ClassLoader</a>, <a href="#getResource">getResource</a>
  </dl></dd>
</dl>
<a name="getResource(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getResource"><b>getResource</b></a>
<pre>
 public <a href="java.net.URL.html#_top_">URL</a> getResource(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Finds a resource with the specified name. The rules for searching 
 for resources associated with a given class are implemented by 
 the class loader of the class.
 <p>
 The Class methods delegate to ClassLoader methods, after applying
 a naming convention: if the resource name starts with "/", it is used
 as is.  Otherwise, the name of the package is prepended, after
 converting "." to "/".
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the string representing the resource to be found.
    <dt> <b>Returns:</b>
    <dd> the <code>URL</code> object having the specified name,
             or <code>null</code> if no resource with the specified 
             name is found.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.ClassLoader.html#_top_">ClassLoader</a>, <a href="#getResourceAsStream">getResourceAsStream</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Character.html#_top_">Previous</a>  <a href="java.lang.ClassLoader.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
