<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Returns the field names of a class</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for getFields.Class"><tr><td>getFields.Class</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Returns the field names of a class</h2>

<h3>Description</h3>

<p>Returns the field names of a class.
</p>


<h3>Usage</h3>

<pre>
## S3 method for class 'Class'
getFields(this, private=FALSE, ...)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>private</code></td>
<td>
<p>If <code>TRUE</code>, private fields will also be returned,
otherwise only public fields are returned.</p>
</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
<p>Not used.</p>
</td></tr>
</table>


<h3>Value</h3>

<p>Returns a <code>character</code> <code>vector</code> of field names.
</p>


<h3>Author(s)</h3>

<p>Henrik Bengtsson</p>


<h3>See Also</h3>

<p>For more information see <code>Class</code>.
</p>


<h3>Examples</h3>

<pre>
  print(getFields(Exception))
</pre>


</body></html>
