You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CtNewMethod.html 40KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (10.0.1) on Thu Jun 21 01:52:55 JST 2018 -->
  6. <title>CtNewMethod (Javassist API)</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <meta name="date" content="2018-06-21">
  9. <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
  10. <link rel="stylesheet" type="text/css" href="../jquery/jquery-ui.css" title="Style">
  11. <script type="text/javascript" src="../script.js"></script>
  12. <script type="text/javascript" src="../jquery/jszip/dist/jszip.min.js"></script>
  13. <script type="text/javascript" src="../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
  14. <!--[if IE]>
  15. <script type="text/javascript" src="../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
  16. <![endif]-->
  17. <script type="text/javascript" src="../jquery/jquery-1.10.2.js"></script>
  18. <script type="text/javascript" src="../jquery/jquery-ui.js"></script>
  19. </head>
  20. <body>
  21. <script type="text/javascript"><!--
  22. try {
  23. if (location.href.indexOf('is-external=true') == -1) {
  24. parent.document.title="CtNewMethod (Javassist API)";
  25. }
  26. }
  27. catch(err) {
  28. }
  29. //-->
  30. var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9};
  31. var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
  32. var altColor = "altColor";
  33. var rowColor = "rowColor";
  34. var tableTab = "tableTab";
  35. var activeTableTab = "activeTableTab";
  36. var pathtoroot = "../";loadScripts(document, 'script');</script>
  37. <noscript>
  38. <div>JavaScript is disabled on your browser.</div>
  39. </noscript>
  40. <div class="fixedNav">
  41. <!-- ========= START OF TOP NAVBAR ======= -->
  42. <div class="topNav"><a name="navbar.top">
  43. <!-- -->
  44. </a>
  45. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  46. <a name="navbar.top.firstrow">
  47. <!-- -->
  48. </a>
  49. <ul class="navList" title="Navigation">
  50. <li><a href="../overview-summary.html">Overview</a></li>
  51. <li><a href="package-summary.html">Package</a></li>
  52. <li class="navBarCell1Rev">Class</li>
  53. <li><a href="class-use/CtNewMethod.html">Use</a></li>
  54. <li><a href="package-tree.html">Tree</a></li>
  55. <li><a href="../deprecated-list.html">Deprecated</a></li>
  56. <li><a href="../index-all.html">Index</a></li>
  57. </ul>
  58. </div>
  59. <div class="subNav">
  60. <ul class="navList">
  61. <li><a href="../javassist/CtNewConstructor.html" title="class in javassist"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  62. <li><a href="../javassist/CtPrimitiveType.html" title="class in javassist"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  63. </ul>
  64. <ul class="navList">
  65. <li><a href="../index.html?javassist/CtNewMethod.html" target="_top">Frames</a></li>
  66. <li><a href="CtNewMethod.html" target="_top">No&nbsp;Frames</a></li>
  67. </ul>
  68. <ul class="navList" id="allclasses_navbar_top">
  69. <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
  70. </ul>
  71. <ul class="navListSearch">
  72. <li><label for="search">SEARCH:</label>
  73. <input type="text" id="search" value="search" disabled="disabled">
  74. <input type="reset" id="reset" value="reset" disabled="disabled">
  75. </li>
  76. </ul>
  77. <div>
  78. <script type="text/javascript"><!--
  79. allClassesLink = document.getElementById("allclasses_navbar_top");
  80. if(window==top) {
  81. allClassesLink.style.display = "block";
  82. }
  83. else {
  84. allClassesLink.style.display = "none";
  85. }
  86. //-->
  87. </script>
  88. <noscript>
  89. <div>JavaScript is disabled on your browser.</div>
  90. </noscript>
  91. </div>
  92. <div>
  93. <ul class="subNavList">
  94. <li>Summary:&nbsp;</li>
  95. <li>Nested&nbsp;|&nbsp;</li>
  96. <li>Field&nbsp;|&nbsp;</li>
  97. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  98. <li><a href="#method.summary">Method</a></li>
  99. </ul>
  100. <ul class="subNavList">
  101. <li>Detail:&nbsp;</li>
  102. <li>Field&nbsp;|&nbsp;</li>
  103. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  104. <li><a href="#method.detail">Method</a></li>
  105. </ul>
  106. </div>
  107. <a name="skip.navbar.top">
  108. <!-- -->
  109. </a></div>
  110. <!-- ========= END OF TOP NAVBAR ========= -->
  111. </div>
  112. <div class="navPadding">&nbsp;</div>
  113. <script type="text/javascript"><!--
  114. $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  115. //-->
  116. </script>
  117. <!-- ======== START OF CLASS DATA ======== -->
  118. <div class="header">
  119. <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="../javassist/package-summary.html">javassist</a></div>
  120. <h2 title="Class CtNewMethod" class="title">Class CtNewMethod</h2>
  121. </div>
  122. <div class="contentContainer">
  123. <ul class="inheritance">
  124. <li>java.lang.Object</li>
  125. <li>
  126. <ul class="inheritance">
  127. <li>javassist.CtNewMethod</li>
  128. </ul>
  129. </li>
  130. </ul>
  131. <div class="description">
  132. <ul class="blockList">
  133. <li class="blockList">
  134. <hr>
  135. <pre>public class <span class="typeNameLabel">CtNewMethod</span>
  136. extends java.lang.Object</pre>
  137. <div class="block">A collection of static methods for creating a <code>CtMethod</code>.
  138. An instance of this class does not make any sense.</div>
  139. <dl>
  140. <dt><span class="seeLabel">See Also:</span></dt>
  141. <dd><a href="../javassist/CtClass.html#addMethod-javassist.CtMethod-"><code>CtClass.addMethod(CtMethod)</code></a></dd>
  142. </dl>
  143. </li>
  144. </ul>
  145. </div>
  146. <div class="summary">
  147. <ul class="blockList">
  148. <li class="blockList">
  149. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  150. <ul class="blockList">
  151. <li class="blockList"><a name="constructor.summary">
  152. <!-- -->
  153. </a>
  154. <h3>Constructor Summary</h3>
  155. <table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
  156. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  157. <tr>
  158. <th class="colFirst" scope="col">Constructor</th>
  159. <th class="colLast" scope="col">Description</th>
  160. </tr>
  161. <tr class="altColor">
  162. <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#CtNewMethod--">CtNewMethod</a></span>()</code></th>
  163. <td class="colLast">&nbsp;</td>
  164. </tr>
  165. </table>
  166. </li>
  167. </ul>
  168. <!-- ========== METHOD SUMMARY =========== -->
  169. <ul class="blockList">
  170. <li class="blockList"><a name="method.summary">
  171. <!-- -->
  172. </a>
  173. <h3>Method Summary</h3>
  174. <table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
  175. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  176. <tr>
  177. <th class="colFirst" scope="col">Modifier and Type</th>
  178. <th class="colSecond" scope="col">Method</th>
  179. <th class="colLast" scope="col">Description</th>
  180. </tr>
  181. <tr id="i0" class="altColor">
  182. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  183. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#abstractMethod-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-javassist.CtClass-">abstractMethod</a></span>&#8203;(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  184. java.lang.String&nbsp;mname,
  185. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameters,
  186. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptions,
  187. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)</code></th>
  188. <td class="colLast">
  189. <div class="block">Creates a public abstract method.</div>
  190. </td>
  191. </tr>
  192. <tr id="i1" class="rowColor">
  193. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  194. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#copy-javassist.CtMethod-java.lang.String-javassist.CtClass-javassist.ClassMap-">copy</a></span>&#8203;(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;src,
  195. java.lang.String&nbsp;name,
  196. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring,
  197. <a href="../javassist/ClassMap.html" title="class in javassist">ClassMap</a>&nbsp;map)</code></th>
  198. <td class="colLast">
  199. <div class="block">Creates a copy of a method with a new name.</div>
  200. </td>
  201. </tr>
  202. <tr id="i2" class="altColor">
  203. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  204. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#copy-javassist.CtMethod-javassist.CtClass-javassist.ClassMap-">copy</a></span>&#8203;(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;src,
  205. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring,
  206. <a href="../javassist/ClassMap.html" title="class in javassist">ClassMap</a>&nbsp;map)</code></th>
  207. <td class="colLast">
  208. <div class="block">Creates a copy of a method.</div>
  209. </td>
  210. </tr>
  211. <tr id="i3" class="rowColor">
  212. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  213. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#delegator-javassist.CtMethod-javassist.CtClass-">delegator</a></span>&#8203;(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;delegate,
  214. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)</code></th>
  215. <td class="colLast">
  216. <div class="block">Creates a method forwarding to a delegate in
  217. a super class.</div>
  218. </td>
  219. </tr>
  220. <tr id="i4" class="altColor">
  221. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  222. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#getter-java.lang.String-javassist.CtField-">getter</a></span>&#8203;(java.lang.String&nbsp;methodName,
  223. <a href="../javassist/CtField.html" title="class in javassist">CtField</a>&nbsp;field)</code></th>
  224. <td class="colLast">
  225. <div class="block">Creates a public getter method.</div>
  226. </td>
  227. </tr>
  228. <tr id="i5" class="rowColor">
  229. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  230. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#make-int-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-java.lang.String-javassist.CtClass-">make</a></span>&#8203;(int&nbsp;modifiers,
  231. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  232. java.lang.String&nbsp;mname,
  233. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameters,
  234. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptions,
  235. java.lang.String&nbsp;body,
  236. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)</code></th>
  237. <td class="colLast">
  238. <div class="block">Creates a method.</div>
  239. </td>
  240. </tr>
  241. <tr id="i6" class="altColor">
  242. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  243. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#make-java.lang.String-javassist.CtClass-">make</a></span>&#8203;(java.lang.String&nbsp;src,
  244. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)</code></th>
  245. <td class="colLast">
  246. <div class="block">Compiles the given source code and creates a method.</div>
  247. </td>
  248. </tr>
  249. <tr id="i7" class="rowColor">
  250. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  251. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#make-java.lang.String-javassist.CtClass-java.lang.String-java.lang.String-">make</a></span>&#8203;(java.lang.String&nbsp;src,
  252. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring,
  253. java.lang.String&nbsp;delegateObj,
  254. java.lang.String&nbsp;delegateMethod)</code></th>
  255. <td class="colLast">
  256. <div class="block">Compiles the given source code and creates a method.</div>
  257. </td>
  258. </tr>
  259. <tr id="i8" class="altColor">
  260. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  261. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#make-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-java.lang.String-javassist.CtClass-">make</a></span>&#8203;(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  262. java.lang.String&nbsp;mname,
  263. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameters,
  264. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptions,
  265. java.lang.String&nbsp;body,
  266. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)</code></th>
  267. <td class="colLast">
  268. <div class="block">Creates a public (non-static) method.</div>
  269. </td>
  270. </tr>
  271. <tr id="i9" class="rowColor">
  272. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  273. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#setter-java.lang.String-javassist.CtField-">setter</a></span>&#8203;(java.lang.String&nbsp;methodName,
  274. <a href="../javassist/CtField.html" title="class in javassist">CtField</a>&nbsp;field)</code></th>
  275. <td class="colLast">
  276. <div class="block">Creates a public setter method.</div>
  277. </td>
  278. </tr>
  279. <tr id="i10" class="altColor">
  280. <td class="colFirst"><code>static <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
  281. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtNewMethod.html#wrapped-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-javassist.CtMethod-javassist.CtMethod.ConstParameter-javassist.CtClass-">wrapped</a></span>&#8203;(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  282. java.lang.String&nbsp;mname,
  283. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameterTypes,
  284. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptionTypes,
  285. <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;body,
  286. <a href="../javassist/CtMethod.ConstParameter.html" title="class in javassist">CtMethod.ConstParameter</a>&nbsp;constParam,
  287. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)</code></th>
  288. <td class="colLast">
  289. <div class="block">Creates a wrapped method.</div>
  290. </td>
  291. </tr>
  292. </table>
  293. <ul class="blockList">
  294. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  295. <!-- -->
  296. </a>
  297. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  298. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  299. </ul>
  300. </li>
  301. </ul>
  302. </li>
  303. </ul>
  304. </div>
  305. <div class="details">
  306. <ul class="blockList">
  307. <li class="blockList">
  308. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  309. <ul class="blockList">
  310. <li class="blockList"><a name="constructor.detail">
  311. <!-- -->
  312. </a>
  313. <h3>Constructor Detail</h3>
  314. <a name="CtNewMethod--">
  315. <!-- -->
  316. </a>
  317. <ul class="blockListLast">
  318. <li class="blockList">
  319. <h4>CtNewMethod</h4>
  320. <pre>public&nbsp;CtNewMethod()</pre>
  321. </li>
  322. </ul>
  323. </li>
  324. </ul>
  325. <!-- ============ METHOD DETAIL ========== -->
  326. <ul class="blockList">
  327. <li class="blockList"><a name="method.detail">
  328. <!-- -->
  329. </a>
  330. <h3>Method Detail</h3>
  331. <a name="make-java.lang.String-javassist.CtClass-">
  332. <!-- -->
  333. </a>
  334. <ul class="blockList">
  335. <li class="blockList">
  336. <h4>make</h4>
  337. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;make&#8203;(java.lang.String&nbsp;src,
  338. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)
  339. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  340. <div class="block">Compiles the given source code and creates a method.
  341. The source code must include not only the method body
  342. but the whole declaration, for example,
  343. <pre>"public Object id(Object obj) { return obj; }"</pre></div>
  344. <dl>
  345. <dt><span class="paramLabel">Parameters:</span></dt>
  346. <dd><code>src</code> - the source text.</dd>
  347. <dd><code>declaring</code> - the class to which the created method is added.</dd>
  348. <dt><span class="throwsLabel">Throws:</span></dt>
  349. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  350. </dl>
  351. </li>
  352. </ul>
  353. <a name="make-java.lang.String-javassist.CtClass-java.lang.String-java.lang.String-">
  354. <!-- -->
  355. </a>
  356. <ul class="blockList">
  357. <li class="blockList">
  358. <h4>make</h4>
  359. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;make&#8203;(java.lang.String&nbsp;src,
  360. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring,
  361. java.lang.String&nbsp;delegateObj,
  362. java.lang.String&nbsp;delegateMethod)
  363. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  364. <div class="block">Compiles the given source code and creates a method.
  365. The source code must include not only the method body
  366. but the whole declaration, for example,
  367. <pre>"public Object id(Object obj) { return obj; }"</pre>
  368. <p>If the source code includes <code>$proceed()</code>, then
  369. it is compiled into a method call on the specified object.</div>
  370. <dl>
  371. <dt><span class="paramLabel">Parameters:</span></dt>
  372. <dd><code>src</code> - the source text.</dd>
  373. <dd><code>declaring</code> - the class to which the created method is added.</dd>
  374. <dd><code>delegateObj</code> - the source text specifying the object
  375. that is called on by <code>$proceed()</code>.</dd>
  376. <dd><code>delegateMethod</code> - the name of the method
  377. that is called by <code>$proceed()</code>.</dd>
  378. <dt><span class="throwsLabel">Throws:</span></dt>
  379. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  380. </dl>
  381. </li>
  382. </ul>
  383. <a name="make-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-java.lang.String-javassist.CtClass-">
  384. <!-- -->
  385. </a>
  386. <ul class="blockList">
  387. <li class="blockList">
  388. <h4>make</h4>
  389. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;make&#8203;(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  390. java.lang.String&nbsp;mname,
  391. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameters,
  392. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptions,
  393. java.lang.String&nbsp;body,
  394. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)
  395. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  396. <div class="block">Creates a public (non-static) method. The created method cannot
  397. be changed to a static method later.</div>
  398. <dl>
  399. <dt><span class="paramLabel">Parameters:</span></dt>
  400. <dd><code>returnType</code> - the type of the returned value.</dd>
  401. <dd><code>mname</code> - the method name.</dd>
  402. <dd><code>parameters</code> - a list of the parameter types.</dd>
  403. <dd><code>exceptions</code> - a list of the exception types.</dd>
  404. <dd><code>body</code> - the source text of the method body.
  405. It must be a block surrounded by <code>{}</code>.
  406. If it is <code>null</code>, the created method
  407. does nothing except returning zero or null.</dd>
  408. <dd><code>declaring</code> - the class to which the created method is added.</dd>
  409. <dt><span class="throwsLabel">Throws:</span></dt>
  410. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  411. <dt><span class="seeLabel">See Also:</span></dt>
  412. <dd><a href="../javassist/CtNewMethod.html#make-int-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-java.lang.String-javassist.CtClass-"><code>make(int, CtClass, String, CtClass[], CtClass[], String, CtClass)</code></a></dd>
  413. </dl>
  414. </li>
  415. </ul>
  416. <a name="make-int-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-java.lang.String-javassist.CtClass-">
  417. <!-- -->
  418. </a>
  419. <ul class="blockList">
  420. <li class="blockList">
  421. <h4>make</h4>
  422. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;make&#8203;(int&nbsp;modifiers,
  423. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  424. java.lang.String&nbsp;mname,
  425. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameters,
  426. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptions,
  427. java.lang.String&nbsp;body,
  428. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)
  429. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  430. <div class="block">Creates a method. <code>modifiers</code> can contain
  431. <code>Modifier.STATIC</code>.</div>
  432. <dl>
  433. <dt><span class="paramLabel">Parameters:</span></dt>
  434. <dd><code>modifiers</code> - access modifiers.</dd>
  435. <dd><code>returnType</code> - the type of the returned value.</dd>
  436. <dd><code>mname</code> - the method name.</dd>
  437. <dd><code>parameters</code> - a list of the parameter types.</dd>
  438. <dd><code>exceptions</code> - a list of the exception types.</dd>
  439. <dd><code>body</code> - the source text of the method body.
  440. It must be a block surrounded by <code>{}</code>.
  441. If it is <code>null</code>, the created method
  442. does nothing except returning zero or null.</dd>
  443. <dd><code>declaring</code> - the class to which the created method is added.</dd>
  444. <dt><span class="throwsLabel">Throws:</span></dt>
  445. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  446. <dt><span class="seeLabel">See Also:</span></dt>
  447. <dd><a href="../javassist/Modifier.html" title="class in javassist"><code>Modifier</code></a></dd>
  448. </dl>
  449. </li>
  450. </ul>
  451. <a name="copy-javassist.CtMethod-javassist.CtClass-javassist.ClassMap-">
  452. <!-- -->
  453. </a>
  454. <ul class="blockList">
  455. <li class="blockList">
  456. <h4>copy</h4>
  457. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;copy&#8203;(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;src,
  458. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring,
  459. <a href="../javassist/ClassMap.html" title="class in javassist">ClassMap</a>&nbsp;map)
  460. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  461. <div class="block">Creates a copy of a method. This method is provided for creating
  462. a new method based on an existing method.
  463. This is a convenience method for calling
  464. <a href="../javassist/CtMethod.html#CtMethod-javassist.CtMethod-javassist.CtClass-javassist.ClassMap-"><code>this constructor</code></a>.
  465. See the description of the constructor for particular behavior of the copying.</div>
  466. <dl>
  467. <dt><span class="paramLabel">Parameters:</span></dt>
  468. <dd><code>src</code> - the source method.</dd>
  469. <dd><code>declaring</code> - the class to which the created method is added.</dd>
  470. <dd><code>map</code> - the hash table associating original class names
  471. with substituted names.
  472. It can be <code>null</code>.</dd>
  473. <dt><span class="throwsLabel">Throws:</span></dt>
  474. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  475. <dt><span class="seeLabel">See Also:</span></dt>
  476. <dd><a href="../javassist/CtMethod.html#CtMethod-javassist.CtMethod-javassist.CtClass-javassist.ClassMap-"><code>CtMethod(CtMethod,CtClass,ClassMap)</code></a></dd>
  477. </dl>
  478. </li>
  479. </ul>
  480. <a name="copy-javassist.CtMethod-java.lang.String-javassist.CtClass-javassist.ClassMap-">
  481. <!-- -->
  482. </a>
  483. <ul class="blockList">
  484. <li class="blockList">
  485. <h4>copy</h4>
  486. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;copy&#8203;(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;src,
  487. java.lang.String&nbsp;name,
  488. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring,
  489. <a href="../javassist/ClassMap.html" title="class in javassist">ClassMap</a>&nbsp;map)
  490. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  491. <div class="block">Creates a copy of a method with a new name.
  492. This method is provided for creating
  493. a new method based on an existing method.
  494. This is a convenience method for calling
  495. <a href="../javassist/CtMethod.html#CtMethod-javassist.CtMethod-javassist.CtClass-javassist.ClassMap-"><code>this constructor</code></a>.
  496. See the description of the constructor for particular behavior of the copying.</div>
  497. <dl>
  498. <dt><span class="paramLabel">Parameters:</span></dt>
  499. <dd><code>src</code> - the source method.</dd>
  500. <dd><code>name</code> - the name of the created method.</dd>
  501. <dd><code>declaring</code> - the class to which the created method is added.</dd>
  502. <dd><code>map</code> - the hash table associating original class names
  503. with substituted names.
  504. It can be <code>null</code>.</dd>
  505. <dt><span class="throwsLabel">Throws:</span></dt>
  506. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  507. <dt><span class="seeLabel">See Also:</span></dt>
  508. <dd><a href="../javassist/CtMethod.html#CtMethod-javassist.CtMethod-javassist.CtClass-javassist.ClassMap-"><code>CtMethod(CtMethod,CtClass,ClassMap)</code></a></dd>
  509. </dl>
  510. </li>
  511. </ul>
  512. <a name="abstractMethod-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-javassist.CtClass-">
  513. <!-- -->
  514. </a>
  515. <ul class="blockList">
  516. <li class="blockList">
  517. <h4>abstractMethod</h4>
  518. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;abstractMethod&#8203;(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  519. java.lang.String&nbsp;mname,
  520. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameters,
  521. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptions,
  522. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)
  523. throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
  524. <div class="block">Creates a public abstract method.</div>
  525. <dl>
  526. <dt><span class="paramLabel">Parameters:</span></dt>
  527. <dd><code>returnType</code> - the type of the returned value</dd>
  528. <dd><code>mname</code> - the method name</dd>
  529. <dd><code>parameters</code> - a list of the parameter types</dd>
  530. <dd><code>exceptions</code> - a list of the exception types</dd>
  531. <dd><code>declaring</code> - the class to which the created method is added.</dd>
  532. <dt><span class="throwsLabel">Throws:</span></dt>
  533. <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
  534. <dt><span class="seeLabel">See Also:</span></dt>
  535. <dd><a href="../javassist/CtMethod.html#CtMethod-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass-"><code>CtMethod(CtClass,String,CtClass[],CtClass)</code></a></dd>
  536. </dl>
  537. </li>
  538. </ul>
  539. <a name="getter-java.lang.String-javassist.CtField-">
  540. <!-- -->
  541. </a>
  542. <ul class="blockList">
  543. <li class="blockList">
  544. <h4>getter</h4>
  545. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;getter&#8203;(java.lang.String&nbsp;methodName,
  546. <a href="../javassist/CtField.html" title="class in javassist">CtField</a>&nbsp;field)
  547. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  548. <div class="block">Creates a public getter method. The getter method returns the value
  549. of the specified field in the class to which this method is added.
  550. The created method is initially not static even if the field is
  551. static. Change the modifiers if the method should be static.</div>
  552. <dl>
  553. <dt><span class="paramLabel">Parameters:</span></dt>
  554. <dd><code>methodName</code> - the name of the getter</dd>
  555. <dd><code>field</code> - the field accessed.</dd>
  556. <dt><span class="throwsLabel">Throws:</span></dt>
  557. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  558. </dl>
  559. </li>
  560. </ul>
  561. <a name="setter-java.lang.String-javassist.CtField-">
  562. <!-- -->
  563. </a>
  564. <ul class="blockList">
  565. <li class="blockList">
  566. <h4>setter</h4>
  567. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;setter&#8203;(java.lang.String&nbsp;methodName,
  568. <a href="../javassist/CtField.html" title="class in javassist">CtField</a>&nbsp;field)
  569. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  570. <div class="block">Creates a public setter method. The setter method assigns the
  571. value of the first parameter to the specified field
  572. in the class to which this method is added.
  573. The created method is not static even if the field is
  574. static. You may not change it to be static
  575. by <code>setModifiers()</code> in <code>CtBehavior</code>.</div>
  576. <dl>
  577. <dt><span class="paramLabel">Parameters:</span></dt>
  578. <dd><code>methodName</code> - the name of the setter</dd>
  579. <dd><code>field</code> - the field accessed.</dd>
  580. <dt><span class="throwsLabel">Throws:</span></dt>
  581. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  582. </dl>
  583. </li>
  584. </ul>
  585. <a name="delegator-javassist.CtMethod-javassist.CtClass-">
  586. <!-- -->
  587. </a>
  588. <ul class="blockList">
  589. <li class="blockList">
  590. <h4>delegator</h4>
  591. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;delegator&#8203;(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;delegate,
  592. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)
  593. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  594. <div class="block">Creates a method forwarding to a delegate in
  595. a super class. The created method calls a method specified
  596. by <code>delegate</code> with all the parameters passed to the
  597. created method. If the delegate method returns a value,
  598. the created method returns that value to the caller.
  599. The delegate method must be declared in a super class.
  600. <p>The following method is an example of the created method.
  601. <pre>
  602. int f(int p, int q) {
  603. return super.f(p, q);
  604. }</pre>
  605. <p>The name of the created method can be changed by
  606. <code>setName()</code>.</div>
  607. <dl>
  608. <dt><span class="paramLabel">Parameters:</span></dt>
  609. <dd><code>delegate</code> - the method that the created method forwards to.</dd>
  610. <dd><code>declaring</code> - the class to which the created method is
  611. added.</dd>
  612. <dt><span class="throwsLabel">Throws:</span></dt>
  613. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  614. </dl>
  615. </li>
  616. </ul>
  617. <a name="wrapped-javassist.CtClass-java.lang.String-javassist.CtClass:A-javassist.CtClass:A-javassist.CtMethod-javassist.CtMethod.ConstParameter-javassist.CtClass-">
  618. <!-- -->
  619. </a>
  620. <ul class="blockListLast">
  621. <li class="blockList">
  622. <h4>wrapped</h4>
  623. <pre>public static&nbsp;<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;wrapped&#8203;(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;returnType,
  624. java.lang.String&nbsp;mname,
  625. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;parameterTypes,
  626. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]&nbsp;exceptionTypes,
  627. <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>&nbsp;body,
  628. <a href="../javassist/CtMethod.ConstParameter.html" title="class in javassist">CtMethod.ConstParameter</a>&nbsp;constParam,
  629. <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>&nbsp;declaring)
  630. throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
  631. <div class="block">Creates a wrapped method. The wrapped method receives parameters
  632. in the form of an array of <code>Object</code>.
  633. <p>The body of the created method is a copy of the body of the method
  634. specified by <code>body</code>. However, it is wrapped in
  635. parameter-conversion code.
  636. <p>The method specified by <code>body</code> must have this singature:
  637. <pre>Object method(Object[] params, &lt;type&gt; cvalue)</pre>
  638. <p>The type of the <code>cvalue</code> depends on
  639. <code>constParam</code>.
  640. If <code>constParam</code> is <code>null</code>, the signature
  641. must be:
  642. <pre>Object method(Object[] params)</pre>
  643. <p>The method body copied from <code>body</code> is wrapped in
  644. parameter-conversion code, which converts parameters specified by
  645. <code>parameterTypes</code> into an array of <code>Object</code>.
  646. The returned value is also converted from the <code>Object</code>
  647. type to the type specified by <code>returnType</code>. Thus,
  648. the resulting method body is as follows:
  649. <pre>
  650. Object[] params = new Object[] { p0, p1, ... };
  651. &lt;<i>type</i>&gt; cvalue = &lt;<i>constant-value</i>&gt;;
  652. <i>... copied method body ...</i>
  653. Object result = &lt;<i>returned value</i>&gt;
  654. return (<i>&lt;returnType&gt;</i>)result;
  655. </pre>
  656. <p>The variables <code>p0</code>, <code>p2</code>, ... represent
  657. formal parameters of the created method.
  658. The value of <code>cvalue</code> is specified by
  659. <code>constParam</code>.
  660. <p>If the type of a parameter or a returned value is a primitive
  661. type, then the value is converted into a wrapper object such as
  662. <code>java.lang.Integer</code>. If the type of the returned value
  663. is <code>void</code>, the returned value is discarded.
  664. <p><i>Example:</i>
  665. <pre>
  666. ClassPool pool = ... ;
  667. CtClass vec = pool.makeClass("intVector");
  668. vec.setSuperclass(pool.get("java.util.Vector"));
  669. CtMethod addMethod = pool.getMethod("Sample", "add0");
  670. CtClass[] argTypes = { CtClass.intType };
  671. CtMethod m = CtNewMethod.wrapped(CtClass.voidType, "add", argTypes,
  672. null, addMethod, null, vec);
  673. vec.addMethod(m);</pre>
  674. <p>where the class <code>Sample</code> is as follows:
  675. <pre>public class Sample extends java.util.Vector {
  676. public Object add0(Object[] args) {
  677. super.addElement(args[0]);
  678. return null;
  679. }
  680. }</pre>
  681. <p>This program produces a class <code>intVector</code>:
  682. <pre>public class intVector extends java.util.Vector {
  683. public void add(int p0) {
  684. Object[] args = new Object[] { p0 };
  685. // begin of the copied body
  686. super.addElement(args[0]);
  687. Object result = null;
  688. // end
  689. }
  690. }</pre>
  691. <p>Note that the type of the parameter to <code>add()</code> depends
  692. only on the value of <code>argTypes</code> passed to
  693. <code>CtNewMethod.wrapped()</code>. Thus, it is easy to
  694. modify this program to produce a
  695. <code>StringVector</code> class, which is a vector containing
  696. only <code>String</code> objects, and other vector classes.</div>
  697. <dl>
  698. <dt><span class="paramLabel">Parameters:</span></dt>
  699. <dd><code>returnType</code> - the type of the returned value.</dd>
  700. <dd><code>mname</code> - the method name.</dd>
  701. <dd><code>parameterTypes</code> - a list of the parameter types.</dd>
  702. <dd><code>exceptionTypes</code> - a list of the exception types.</dd>
  703. <dd><code>body</code> - the method body
  704. (must not be a static method).</dd>
  705. <dd><code>constParam</code> - the constant parameter
  706. (maybe <code>null</code>).</dd>
  707. <dd><code>declaring</code> - the class to which the created method is
  708. added.</dd>
  709. <dt><span class="throwsLabel">Throws:</span></dt>
  710. <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
  711. </dl>
  712. </li>
  713. </ul>
  714. </li>
  715. </ul>
  716. </li>
  717. </ul>
  718. </div>
  719. </div>
  720. <!-- ========= END OF CLASS DATA ========= -->
  721. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  722. <div class="bottomNav"><a name="navbar.bottom">
  723. <!-- -->
  724. </a>
  725. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  726. <a name="navbar.bottom.firstrow">
  727. <!-- -->
  728. </a>
  729. <ul class="navList" title="Navigation">
  730. <li><a href="../overview-summary.html">Overview</a></li>
  731. <li><a href="package-summary.html">Package</a></li>
  732. <li class="navBarCell1Rev">Class</li>
  733. <li><a href="class-use/CtNewMethod.html">Use</a></li>
  734. <li><a href="package-tree.html">Tree</a></li>
  735. <li><a href="../deprecated-list.html">Deprecated</a></li>
  736. <li><a href="../index-all.html">Index</a></li>
  737. </ul>
  738. </div>
  739. <div class="subNav">
  740. <ul class="navList">
  741. <li><a href="../javassist/CtNewConstructor.html" title="class in javassist"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  742. <li><a href="../javassist/CtPrimitiveType.html" title="class in javassist"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  743. </ul>
  744. <ul class="navList">
  745. <li><a href="../index.html?javassist/CtNewMethod.html" target="_top">Frames</a></li>
  746. <li><a href="CtNewMethod.html" target="_top">No&nbsp;Frames</a></li>
  747. </ul>
  748. <ul class="navList" id="allclasses_navbar_bottom">
  749. <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
  750. </ul>
  751. <div>
  752. <script type="text/javascript"><!--
  753. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  754. if(window==top) {
  755. allClassesLink.style.display = "block";
  756. }
  757. else {
  758. allClassesLink.style.display = "none";
  759. }
  760. //-->
  761. </script>
  762. <noscript>
  763. <div>JavaScript is disabled on your browser.</div>
  764. </noscript>
  765. </div>
  766. <div>
  767. <ul class="subNavList">
  768. <li>Summary:&nbsp;</li>
  769. <li>Nested&nbsp;|&nbsp;</li>
  770. <li>Field&nbsp;|&nbsp;</li>
  771. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  772. <li><a href="#method.summary">Method</a></li>
  773. </ul>
  774. <ul class="subNavList">
  775. <li>Detail:&nbsp;</li>
  776. <li>Field&nbsp;|&nbsp;</li>
  777. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  778. <li><a href="#method.detail">Method</a></li>
  779. </ul>
  780. </div>
  781. <a name="skip.navbar.bottom">
  782. <!-- -->
  783. </a></div>
  784. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  785. <p class="legalCopy"><small><i>Javassist, a Java-bytecode translator toolkit.<br>
  786. Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i></small></p>
  787. </body>
  788. </html>