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

📄 classrttimethoddescriptor.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>RTTIMethodDescriptor 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>RTTIMethodDescriptor  Class Reference</h1><code>#include &lt;<a class="el" href="method_8h-source.html">method.h</a>&gt;</code><p><a href="classRTTIMethodDescriptor-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="classRTTIMethodDescriptor.html#RTTIMethodDescriptora0">getName</a> ()</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classRTTIMethodType.html">RTTIMethodType</a> *&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora1">getType</a> ()</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora2">getFlags</a> ()</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora3">getMethodDeclaration</a> (char *buf)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora4">invoke</a> (void *result, void *obj, void *parameters[])</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="classRTTIMethodDescriptor.html#RTTIMethodDescriptora5">getDeclaringClass</a> ()</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora6">RTTIMethodDescriptor</a> (char const *name, int flags, <a class="el" href="classRTTIMethodType.html">RTTIMethodType</a> *type)</td></tr><tr><td nowrap align=right valign=top>RTTIMethodDescriptor &amp;&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora7">operator,</a> (RTTIMethodDescriptor &amp;method)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora8">~RTTIMethodDescriptor</a> ()</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classRTTIMethodDescriptor.html#RTTIMethodDescriptora9">getIndex</a> ()</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorn0" doxytag="RTTIMethodDescriptor::flags"></a>int&nbsp;</td><td valign=bottom><b>flags</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorn1" doxytag="RTTIMethodDescriptor::index"></a>int&nbsp;</td><td valign=bottom><b>index</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorn2" doxytag="RTTIMethodDescriptor::type"></a><a class="el" href="classRTTIMethodType.html">RTTIMethodType</a> *&nbsp;</td><td valign=bottom><b>type</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorn3" doxytag="RTTIMethodDescriptor::name"></a>char const *&nbsp;</td><td valign=bottom><b>name</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorn4" doxytag="RTTIMethodDescriptor::next"></a>RTTIMethodDescriptor *&nbsp;</td><td valign=bottom><b>next</b></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorn5" doxytag="RTTIMethodDescriptor::chain"></a>RTTIMethodDescriptor **&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="RTTIMethodDescriptorl0" doxytag="RTTIMethodDescriptor::RTTIType"></a>class&nbsp;</td><td valign=bottom><a class="el" href="classRTTIType.html#RTTIMethodDescriptorl0">RTTIType</a></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorl1" doxytag="RTTIMethodDescriptor::RTTIClassDescriptor"></a>class&nbsp;</td><td valign=bottom><a class="el" href="classRTTIClassDescriptor.html#RTTIMethodDescriptorl1">RTTIClassDescriptor</a></td></tr><tr><td nowrap align=right valign=top><a name="RTTIMethodDescriptorl2" doxytag="RTTIMethodDescriptor::RTTIBfdRepository"></a>class&nbsp;</td><td valign=bottom><b>RTTIBfdRepository</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Method descriptor <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="RTTIMethodDescriptora6" doxytag="RTTIMethodDescriptor::RTTIMethodDescriptor"></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::RTTIMethodDescriptor </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>flags</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classRTTIMethodType.html">RTTIMethodType</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>Method descriptor constructor <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 method </td></tr><tr><td valign=top><em>flags</em>&nbsp;</td><td>method qualifiers </td></tr><tr><td valign=top><em>type</em>&nbsp;</td><td>method type </td></tr></table></dl>    </td>  </tr></table><a name="RTTIMethodDescriptora8" doxytag="RTTIMethodDescriptor::~RTTIMethodDescriptor"></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::~RTTIMethodDescriptor </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 method descriptor     </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="RTTIMethodDescriptora5" doxytag="RTTIMethodDescriptor::getDeclaringClass"></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>* RTTIMethodDescriptor::getDeclaringClass </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 method belongs <dl compact><dt><b>Returns: </b><dd>descriptor of the class containing this method </dl>    </td>  </tr></table><a name="RTTIMethodDescriptora2" doxytag="RTTIMethodDescriptor::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 RTTIMethodDescriptor::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 method <dl compact><dt><b>Returns: </b><dd>combination of <code>RTTIMethodFlags&gt;/code&gt; flags </dl>    </td>  </tr></table><a name="RTTIMethodDescriptora9" doxytag="RTTIMethodDescriptor::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 RTTIMethodDescriptor::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>

⌨️ 快捷键说明

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