<!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.reflect.Field
</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.reflect.html">This Package</a>  <a href="java.lang.reflect.Constructor.html#_top_">Previous</a>  <a href="java.lang.reflect.Method.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.reflect.Field
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.lang.reflect.Field
</pre>
<hr>
<dl>
  <dt> public final class <b>Field</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.lang.reflect.Member.html#_top_">Member</a>
</dl>
A Field provides information about, and dynamic access to, a
 single field of a class or an interface.  The reflected field may
 be a class (static) field or an instance field.
 <p>A Field permits widening conversions to occur during a get or
 set access operation, but throws an IllegalArgumentException if a
 narrowing conversion would occur.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Member.html#_top_">Member</a>, <a href="java.lang.Class.html#_top_">Class</a>, <a href="java.lang.Class.html#getFields()">getFields</a>, <a href="java.lang.Class.html#getField()">getField</a>, <a href="java.lang.Class.html#getDeclaredFields()">getDeclaredFields</a>, <a href="java.lang.Class.html#getDeclaredField()">getDeclaredField</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/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#equals(java.lang.Object)"><b>equals</b></a>(Object)
  <dd>  Compares this Field against the specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#get(java.lang.Object)"><b>get</b></a>(Object)
  <dd>  Returns the value of the field represented by this Field, on
 the specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getBoolean(java.lang.Object)"><b>getBoolean</b></a>(Object)
  <dd>  Get the value of a field as a boolean on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getByte(java.lang.Object)"><b>getByte</b></a>(Object)
  <dd>  Get the value of a field as a byte on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getChar(java.lang.Object)"><b>getChar</b></a>(Object)
  <dd>  Get the value of a field as a char on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDeclaringClass()"><b>getDeclaringClass</b></a>()
  <dd>  Returns the Class object representing the class or interface
 that declares the field represented by this Field object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDouble(java.lang.Object)"><b>getDouble</b></a>(Object)
  <dd>  Get the value of a field as a double on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getFloat(java.lang.Object)"><b>getFloat</b></a>(Object)
  <dd>  Get the value of a field as a float on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInt(java.lang.Object)"><b>getInt</b></a>(Object)
  <dd>  Get the value of a field as a int on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLong(java.lang.Object)"><b>getLong</b></a>(Object)
  <dd>  Get the value of a field as a long on specified object.
  <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 the field represented
 by this Field object, as 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 name of the field represented by this Field object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getShort(java.lang.Object)"><b>getShort</b></a>(Object)
  <dd>  Get the value of a field as a short on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getType()"><b>getType</b></a>()
  <dd>  Returns a Class object that identifies the declared type for
 the field represented by this Field object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hashCode()"><b>hashCode</b></a>()
  <dd>  Returns a hashcode for this Field.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#set(java.lang.Object, java.lang.Object)"><b>set</b></a>(Object, Object)
  <dd>  Sets the field represented by this Field object on the
 specified object argument to the specified new value.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setBoolean(java.lang.Object, boolean)"><b>setBoolean</b></a>(Object, boolean)
  <dd>  Set the value of a field as a boolean on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setByte(java.lang.Object, byte)"><b>setByte</b></a>(Object, byte)
  <dd>  Set the value of a field as a byte on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setChar(java.lang.Object, char)"><b>setChar</b></a>(Object, char)
  <dd>  Set the value of a field as a char on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setDouble(java.lang.Object, double)"><b>setDouble</b></a>(Object, double)
  <dd>  Set the value of a field as a double on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setFloat(java.lang.Object, float)"><b>setFloat</b></a>(Object, float)
  <dd>  Set the value of a field as a float on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setInt(java.lang.Object, int)"><b>setInt</b></a>(Object, int)
  <dd>  Set the value of a field as an int on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setLong(java.lang.Object, long)"><b>setLong</b></a>(Object, long)
  <dd>  Set the value of a field as a long on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setShort(java.lang.Object, short)"><b>setShort</b></a>(Object, short)
  <dd>  Set the value of a field as a short on specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Return a string describing this Field.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<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="java.lang.Class.html#_top_">Class</a> getDeclaringClass()
</pre>
<dl>
  <dd> Returns the Class object representing the class or interface
 that declares the field represented by this Field object.
<p>
</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 <a href="java.lang.String.html#_top_">String</a> getName()
</pre>
<dl>
  <dd> Returns the name of the field represented by this Field object.
<p>
</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 the field represented
 by this Field object, as an integer. The Modifier class should
 be used to decode the modifiers.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.reflect.Modifier.html#_top_">Modifier</a>
  </dl></dd>
</dl>
<a name="getType()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getType"><b>getType</b></a>
<pre>
 public <a href="java.lang.Class.html#_top_">Class</a> getType()
</pre>
<dl>
  <dd> Returns a Class object that identifies the declared type for
 the field represented by this Field object.
<p>
</dl>
<a name="equals(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="equals"><b>equals</b></a>
<pre>
 public boolean equals(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Compares this Field against the specified object.  Returns
 true if the objects are the same.  Two Fields are the same if
 they were declared by the same class and have the same name
 and type.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#equals(java.lang.Object)">equals</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="hashCode()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="hashCode"><b>hashCode</b></a>
<pre>
 public int hashCode()
</pre>
<dl>
  <dd> Returns a hashcode for this Field.  This is computed as the
 exclusive-or of the hashcodes for the underlying field's
 declaring class name and its name.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#hashCode()">hashCode</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<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> Return a string describing this Field.  The format is
 the access modifiers for the field, if any, followed
 by the field type, followed by a space, followed by
 the fully-qualified name of the class declaring the field,
 followed by a period, followed by the name of the field.
 For example:
 <pre>
    public static final int java.lang.Thread.MIN_PRIORITY
    private int java.io.FileDescriptor.fd
 </pre>
 <p>The modifiers are placed in canonical order as specified by
 "The Java Language Specification".  This is <tt>public</tt>,
 <tt>protected</tt> or <tt>private</tt> first, and then other
 modifiers in the following order: <tt>static</tt>, <tt>final</tt>,
 <tt>transient</tt>, <tt>volatile</tt>.
<p>
  <dd><dl>
    <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="get(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="get"><b>get</b></a>
<pre>
 public native <a href="java.lang.Object.html#_top_">Object</a> get(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Returns the value of the field represented by this Field, on
 the specified object. The value is automatically wrapped in an
 object if it has a primitive type.
 <p>The underlying field's value is obtained as follows:
 <p>If the underlying field is a static field, the object argument
 is ignored; it may be null.
 <p>Otherwise, the underlying field is an instance field.  If the
 specified object argument is null, the method throws a
 NullPointerException. If the specified object is not an
 instance of the class or interface declaring the underlying
 field, the method throws an IllegalArgumentException.
 <p>If this Field object enforces Java language access control, and
 the underlying field is inaccessible, the method throws an
 IllegalAccessException.
 <p>Otherwise, the value is retrieved from the underlying instance
 or static field.  If the field has a primitive type, the value
 is wrapped in an object before being returned, otherwise it is
 returned as is.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field.
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> if the specified object is null.
  </dl></dd>
</dl>
<a name="getBoolean(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getBoolean"><b>getBoolean</b></a>
<pre>
 public native boolean getBoolean(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a boolean on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getByte(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getByte"><b>getByte</b></a>
<pre>
 public native byte getByte(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a byte on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getChar(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getChar"><b>getChar</b></a>
<pre>
 public native char getChar(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a char on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getShort(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getShort"><b>getShort</b></a>
<pre>
 public native short getShort(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a short on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getInt(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInt"><b>getInt</b></a>
<pre>
 public native int getInt(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a int on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getLong(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLong"><b>getLong</b></a>
<pre>
 public native long getLong(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a long on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getFloat(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getFloat"><b>getFloat</b></a>
<pre>
 public native float getFloat(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a float on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getDouble(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDouble"><b>getDouble</b></a>
<pre>
 public native double getDouble(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Get the value of a field as a double on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the field value cannot be
              converted to the return type by a widening conversion.
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="set(java.lang.Object, java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="set"><b>set</b></a>
<pre>
 public native void set(<a href="java.lang.Object.html#_top_">Object</a> obj,
                        <a href="java.lang.Object.html#_top_">Object</a> value) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Sets the field represented by this Field object on the
 specified object argument to the specified new value. The new
 value is automatically unwrapped if the underlying field has a
 primitive type.
 <p>The operation proceeds as follows:
 <p>If the underlying field is static, the object argument is
 ignored; it may be null.
 <p>Otherwise the underlying field is an instance field.  If the
 specified object argument is null, the method throws a
 NullPointerException.  If the specified object argument is not
 an instance of the class or interface declaring the underlying
 field, the method throws an IllegalArgumentException.
 <p>If this Field object enforces Java language access control, and
 the underlying field is inaccessible, the method throws an
 IllegalAccessException.
 <p>If the underlying field is final, the method throws an
 IllegalAccessException.
 <p>If the underlying field is of a primitive type, an unwrapping
 conversion is attempted to convert the new value to a value of
 a primitive type.  If this attempt fails, the method throws an
 IllegalArgumentException.
 <p>If, after possible unwrapping, the new value cannot be
 converted to the type of the underlying field by an identity or
 widening conversion, the method throws an
 IllegalArgumentException.
 <p>The field is set to the possibly unwrapped and widened new value.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> if the specified object is null.
  </dl></dd>
</dl>
<a name="setBoolean(java.lang.Object, boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setBoolean"><b>setBoolean</b></a>
<pre>
 public native void setBoolean(<a href="java.lang.Object.html#_top_">Object</a> obj,
                               boolean z) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as a boolean on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setByte(java.lang.Object, byte)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setByte"><b>setByte</b></a>
<pre>
 public native void setByte(<a href="java.lang.Object.html#_top_">Object</a> obj,
                            byte b) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as a byte on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setChar(java.lang.Object, char)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setChar"><b>setChar</b></a>
<pre>
 public native void setChar(<a href="java.lang.Object.html#_top_">Object</a> obj,
                            char c) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as a char on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setShort(java.lang.Object, short)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setShort"><b>setShort</b></a>
<pre>
 public native void setShort(<a href="java.lang.Object.html#_top_">Object</a> obj,
                             short s) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as a short on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setInt(java.lang.Object, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setInt"><b>setInt</b></a>
<pre>
 public native void setInt(<a href="java.lang.Object.html#_top_">Object</a> obj,
                           int i) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as an int on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setLong(java.lang.Object, long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setLong"><b>setLong</b></a>
<pre>
 public native void setLong(<a href="java.lang.Object.html#_top_">Object</a> obj,
                            long l) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as a long on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setFloat(java.lang.Object, float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setFloat"><b>setFloat</b></a>
<pre>
 public native void setFloat(<a href="java.lang.Object.html#_top_">Object</a> obj,
                             float f) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as a float on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setDouble(java.lang.Object, double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setDouble"><b>setDouble</b></a>
<pre>
 public native void setDouble(<a href="java.lang.Object.html#_top_">Object</a> obj,
                              double d) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
</pre>
<dl>
  <dd> Set the value of a field as a double on specified object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalAccessException.html#_top_">IllegalAccessException</a>
    <dd> if the underlying constructor
              is inaccessible.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified object is not an
              instance of the class or interface declaring the underlying
              field, or if an unwrapping conversion fails.
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</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.reflect.html">This Package</a>  <a href="java.lang.reflect.Constructor.html#_top_">Previous</a>  <a href="java.lang.reflect.Method.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
