⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classrttifielddescriptor.html

📁 java 反射机制详解示例,实现类属性及方法修改
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>RTTIFieldDescriptor class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.15 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center><hr><h1>RTTIFieldDescriptor  Class Reference</h1><code>#include &lt;<a class="el" href="field_8h-source.html">field.h</a>&gt;</code><p><a href="classRTTIFieldDescriptor-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>char const *&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora0">getName</a> ()</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora1">setValue</a> (void *obj, void *buf)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora2">getValue</a> (void *obj, void *buf)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classRTTIClassDescriptor.html">RTTIClassDescriptor</a> *&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora3">getDelcaringClass</a> ()</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora4">getOffset</a> ()</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora5">getSize</a> ()</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classRTTIType.html">RTTIType</a> *&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora6">getType</a> ()</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora7">getFlags</a> ()</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora8">RTTIFieldDescriptor</a> (char const *name, int offs, int size, int flags, <a class="el" href="classRTTIType.html">RTTIType</a> *type)</td></tr><tr><td nowrap align=right valign=top>RTTIFieldDescriptor &amp;&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora9">operator,</a> (RTTIFieldDescriptor &amp;field)</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora10">getIndex</a> ()</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRTTIFieldDescriptor.html#RTTIFieldDescriptora11">~RTTIFieldDescriptor</a> ()</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn0" doxytag="RTTIFieldDescriptor::flags"></a>int&nbsp;</td><td valign=bottom><b>flags</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn1" doxytag="RTTIFieldDescriptor::index"></a>int&nbsp;</td><td valign=bottom><b>index</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn2" doxytag="RTTIFieldDescriptor::type"></a><a class="el" href="classRTTIType.html">RTTIType</a> *&nbsp;</td><td valign=bottom><b>type</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn3" doxytag="RTTIFieldDescriptor::offs"></a>int&nbsp;</td><td valign=bottom><b>offs</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn4" doxytag="RTTIFieldDescriptor::size"></a>int&nbsp;</td><td valign=bottom><b>size</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn5" doxytag="RTTIFieldDescriptor::name"></a>char const *&nbsp;</td><td valign=bottom><b>name</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn6" doxytag="RTTIFieldDescriptor::declaringClass"></a><a class="el" href="classRTTIClassDescriptor.html">RTTIClassDescriptor</a> *&nbsp;</td><td valign=bottom><b>declaringClass</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn7" doxytag="RTTIFieldDescriptor::next"></a>RTTIFieldDescriptor *&nbsp;</td><td valign=bottom><b>next</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorn8" doxytag="RTTIFieldDescriptor::chain"></a>RTTIFieldDescriptor **&nbsp;</td><td valign=bottom><b>chain</b></td></tr><tr><td colspan=2><br><h2>Friends</h2></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorl0" doxytag="RTTIFieldDescriptor::RTTIType"></a>class&nbsp;</td><td valign=bottom><a class="el" href="classRTTIType.html#RTTIFieldDescriptorl0">RTTIType</a></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorl1" doxytag="RTTIFieldDescriptor::RTTIClassDescriptor"></a>class&nbsp;</td><td valign=bottom><a class="el" href="classRTTIClassDescriptor.html#RTTIFieldDescriptorl1">RTTIClassDescriptor</a></td></tr><tr><td nowrap align=right valign=top><a name="RTTIFieldDescriptorl2" doxytag="RTTIFieldDescriptor::RTTIBfdRepository"></a>class&nbsp;</td><td valign=bottom><b>RTTIBfdRepository</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Field descriptor <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="RTTIFieldDescriptora8" doxytag="RTTIFieldDescriptor::RTTIFieldDescriptor"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> RTTIFieldDescriptor::RTTIFieldDescriptor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char const *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>offs</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>size</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>flags</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classRTTIType.html">RTTIType</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>type</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor of the field descriptor <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>name</em>&nbsp;</td><td>name of the field </td></tr><tr><td valign=top><em>offs</em>&nbsp;</td><td>offset within class </td></tr><tr><td valign=top><em>size</em>&nbsp;</td><td>size of the field </td></tr><tr><td valign=top><em>flags</em>&nbsp;</td><td>flags associated with the field </td></tr><tr><td valign=top><em>type</em>&nbsp;</td><td>type of the field </td></tr></table></dl>    </td>  </tr></table><a name="RTTIFieldDescriptora11" doxytag="RTTIFieldDescriptor::~RTTIFieldDescriptor"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> RTTIFieldDescriptor::~RTTIFieldDescriptor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Destructor of field descriptor     </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="RTTIFieldDescriptora3" doxytag="RTTIFieldDescriptor::getDelcaringClass"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classRTTIClassDescriptor.html">RTTIClassDescriptor</a>* RTTIFieldDescriptor::getDelcaringClass </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get class to which the field belongs <dl compact><dt><b>Returns: </b><dd>descriptor of the class containing this field </dl>    </td>  </tr></table><a name="RTTIFieldDescriptora7" doxytag="RTTIFieldDescriptor::getFlags"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int RTTIFieldDescriptor::getFlags </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get flags associated with the field <dl compact><dt><b>Returns: </b><dd>combination of <code>RTTIFieldFlags&gt;/code&gt; flags </dl>    </td>  </tr></table><a name="RTTIFieldDescriptora10" doxytag="RTTIFieldDescriptor::getIndex"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int RTTIFieldDescriptor::getIndex </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get index of the field in the array returned by <code><a class="el" href="classRTTIClassDescriptor.html#RTTIClassDescriptora2">RTTIClassDescriptor::getFields</a>()</code> method <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>index</em>&nbsp;</td><td>of the field descriptor in the array sorted by field name </td></tr></table></dl>    </td>  </tr></table><a name="RTTIFieldDescriptora0" doxytag="RTTIFieldDescriptor::getName"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -