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

📄 classrttimethoddescriptor.html

📁 java 反射机制详解示例,实现类属性及方法修改
💻 HTML
📖 第 1 页 / 共 2 页
字号:
      &nbsp;    </td>    <td><p>Get index of the metod in the array returned by <code><a class="el" href="classRTTIClassDescriptor.html#RTTIClassDescriptora10">RTTIClassDescriptor::getMethods</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 method descriptor in the array sorted by method name </td></tr></table></dl>    </td>  </tr></table><a name="RTTIMethodDescriptora3" doxytag="RTTIMethodDescriptor::getMethodDeclaration"></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 RTTIMethodDescriptor::getMethodDeclaration </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>buf</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>Print to the buffer forward declaration of the method, ifor example: <pre>      void SomeClass::foo(char* name); </pre> <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>buf</em>&nbsp;</td><td>buffer to which method declaration will be printed </td></tr></table></dl>    </td>  </tr></table><a name="RTTIMethodDescriptora0" doxytag="RTTIMethodDescriptor::getName"></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"> char const* RTTIMethodDescriptor::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 method's name     </td>  </tr></table><a name="RTTIMethodDescriptora1" doxytag="RTTIMethodDescriptor::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="classRTTIMethodType.html">RTTIMethodType</a>* RTTIMethodDescriptor::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>Gte type of the method <dl compact><dt><b>Returns: </b><dd>method type </dl>    </td>  </tr></table><a name="RTTIMethodDescriptora4" doxytag="RTTIMethodDescriptor::invoke"></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 RTTIMethodDescriptor::invoke </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>result</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>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>parameters</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>Invoke method <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>result</em>&nbsp;</td><td>pointer to the location where method result will be stored.  </td></tr><tr><td valign=top><em>obj</em>&nbsp;</td><td>target object (ignired for static methods) </td></tr><tr><td valign=top><em>parameters</em>&nbsp;</td><td>array of pointer to the parameter values </td></tr></table></dl>    </td>  </tr></table><a name="RTTIMethodDescriptora7" doxytag="RTTIMethodDescriptor::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"> RTTIMethodDescriptor&amp; RTTIMethodDescriptor::operator, </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">RTTIMethodDescriptor &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>method</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 metod descriptors in the list <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>method</em>&nbsp;</td><td>descriptor tail conctateneted with this head method 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><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="method_8h-source.html">method.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 + -