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

📄 classrttifielddescriptor.html

📁 java 反射机制详解示例,实现类属性及方法修改
💻 HTML
📖 第 1 页 / 共 2 页
字号:
        <tr>          <td class="md" nowrap valign="top"> char const* RTTIFieldDescriptor::getName </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 field's name <dl compact><dt><b>Returns: </b><dd>name of the field </dl>    </td>  </tr></table><a name="RTTIFieldDescriptora4" doxytag="RTTIFieldDescriptor::getOffset"></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::getOffset </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 offset of the field in the class <dl compact><dt><b>Returns: </b><dd>offset of the field in bytes within the class </dl>    </td>  </tr></table><a name="RTTIFieldDescriptora5" doxytag="RTTIFieldDescriptor::getSize"></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::getSize </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 field size <dl compact><dt><b>Returns: </b><dd>size of the field in bytes </dl>    </td>  </tr></table><a name="RTTIFieldDescriptora6" doxytag="RTTIFieldDescriptor::getType"></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="classRTTIType.html">RTTIType</a>* RTTIFieldDescriptor::getType </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 field type <dl compact><dt><b>Returns: </b><dd>descriptor of the field's type </dl>    </td>  </tr></table><a name="RTTIFieldDescriptora2" doxytag="RTTIFieldDescriptor::getValue"></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"> void RTTIFieldDescriptor::getValue </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>obj</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buf</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>Get field value <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>obj</em>&nbsp;</td><td>pointer to the object to which field belongs. If there are several nested structures,  address of the most enclosed structure should be used. This paramter is agnredfor static fields. </td></tr><tr><td valign=top><em>buf</em>&nbsp;</td><td>buffer to receive field value. </td></tr></table></dl>    </td>  </tr></table><a name="RTTIFieldDescriptora9" doxytag="RTTIFieldDescriptor::operator,"></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&amp; RTTIFieldDescriptor::operator, </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">RTTIFieldDescriptor &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>field</em>          </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>Comma operator used to concatenate field descriptors in the list <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>field</em>&nbsp;</td><td>descriptor tail conctateneted with this head field descriptor, <code>chain</code> component of which contains address of <code>next</code> field of last element of the list  </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>head of the list </dl>    </td>  </tr></table><a name="RTTIFieldDescriptora1" doxytag="RTTIFieldDescriptor::setValue"></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"> void RTTIFieldDescriptor::setValue </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>obj</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buf</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>Set field value <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>obj</em>&nbsp;</td><td>pointer to the object to which field belongs. If there are several nested structures,  address of the most enclosed structure should be used. This paramter is agnredfor static fields. </td></tr><tr><td valign=top><em>buf</em>&nbsp;</td><td>buffer with stored value </td></tr></table></dl>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="field_8h-source.html">field.h</a></ul><hr><address align="right"><small>Generated on Fri Apr 26 17:39:24 2002 for CppReflection by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address></body></html>

⌨️ 快捷键说明

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