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.

SignatureAttribute.MethodSignature.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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>SignatureAttribute.MethodSignature (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="SignatureAttribute.MethodSignature (Javassist API)";
  25. }
  26. }
  27. catch(err) {
  28. }
  29. //-->
  30. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10};
  31. var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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/SignatureAttribute.MethodSignature.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/bytecode/SignatureAttribute.ClassType.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  62. <li><a href="../../javassist/bytecode/SignatureAttribute.NestedClassType.html" title="class in javassist.bytecode"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  63. </ul>
  64. <ul class="navList">
  65. <li><a href="../../index.html?javassist/bytecode/SignatureAttribute.MethodSignature.html" target="_top">Frames</a></li>
  66. <li><a href="SignatureAttribute.MethodSignature.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/bytecode/package-summary.html">javassist.bytecode</a></div>
  120. <h2 title="Class SignatureAttribute.MethodSignature" class="title">Class SignatureAttribute.MethodSignature</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.bytecode.SignatureAttribute.MethodSignature</li>
  128. </ul>
  129. </li>
  130. </ul>
  131. <div class="description">
  132. <ul class="blockList">
  133. <li class="blockList">
  134. <dl>
  135. <dt>Enclosing class:</dt>
  136. <dd><a href="../../javassist/bytecode/SignatureAttribute.html" title="class in javassist.bytecode">SignatureAttribute</a></dd>
  137. </dl>
  138. <hr>
  139. <pre>public static class <span class="typeNameLabel">SignatureAttribute.MethodSignature</span>
  140. extends java.lang.Object</pre>
  141. <div class="block">Method type signature.</div>
  142. </li>
  143. </ul>
  144. </div>
  145. <div class="summary">
  146. <ul class="blockList">
  147. <li class="blockList">
  148. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  149. <ul class="blockList">
  150. <li class="blockList"><a name="constructor.summary">
  151. <!-- -->
  152. </a>
  153. <h3>Constructor Summary</h3>
  154. <table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
  155. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  156. <tr>
  157. <th class="colFirst" scope="col">Constructor</th>
  158. <th class="colLast" scope="col">Description</th>
  159. </tr>
  160. <tr class="altColor">
  161. <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/SignatureAttribute.MethodSignature.html#MethodSignature-javassist.bytecode.SignatureAttribute.TypeParameter:A-javassist.bytecode.SignatureAttribute.Type:A-javassist.bytecode.SignatureAttribute.Type-javassist.bytecode.SignatureAttribute.ObjectType:A-">MethodSignature</a></span>&#8203;(<a href="../../javassist/bytecode/SignatureAttribute.TypeParameter.html" title="class in javassist.bytecode">SignatureAttribute.TypeParameter</a>[]&nbsp;tp,
  162. <a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a>[]&nbsp;params,
  163. <a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a>&nbsp;ret,
  164. <a href="../../javassist/bytecode/SignatureAttribute.ObjectType.html" title="class in javassist.bytecode">SignatureAttribute.ObjectType</a>[]&nbsp;ex)</code></th>
  165. <td class="colLast">
  166. <div class="block">Constructs a method type signature.</div>
  167. </td>
  168. </tr>
  169. </table>
  170. </li>
  171. </ul>
  172. <!-- ========== METHOD SUMMARY =========== -->
  173. <ul class="blockList">
  174. <li class="blockList"><a name="method.summary">
  175. <!-- -->
  176. </a>
  177. <h3>Method Summary</h3>
  178. <table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
  179. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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>
  180. <tr>
  181. <th class="colFirst" scope="col">Modifier and Type</th>
  182. <th class="colSecond" scope="col">Method</th>
  183. <th class="colLast" scope="col">Description</th>
  184. </tr>
  185. <tr id="i0" class="altColor">
  186. <td class="colFirst"><code>java.lang.String</code></td>
  187. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/SignatureAttribute.MethodSignature.html#encode--">encode</a></span>()</code></th>
  188. <td class="colLast">
  189. <div class="block">Returns the encoded string representing the method type signature.</div>
  190. </td>
  191. </tr>
  192. <tr id="i1" class="rowColor">
  193. <td class="colFirst"><code><a href="../../javassist/bytecode/SignatureAttribute.ObjectType.html" title="class in javassist.bytecode">SignatureAttribute.ObjectType</a>[]</code></td>
  194. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/SignatureAttribute.MethodSignature.html#getExceptionTypes--">getExceptionTypes</a></span>()</code></th>
  195. <td class="colLast">
  196. <div class="block">Returns the types of the exceptions that may be thrown.</div>
  197. </td>
  198. </tr>
  199. <tr id="i2" class="altColor">
  200. <td class="colFirst"><code><a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a>[]</code></td>
  201. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/SignatureAttribute.MethodSignature.html#getParameterTypes--">getParameterTypes</a></span>()</code></th>
  202. <td class="colLast">
  203. <div class="block">Returns the types of the formal parameters.</div>
  204. </td>
  205. </tr>
  206. <tr id="i3" class="rowColor">
  207. <td class="colFirst"><code><a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a></code></td>
  208. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/SignatureAttribute.MethodSignature.html#getReturnType--">getReturnType</a></span>()</code></th>
  209. <td class="colLast">
  210. <div class="block">Returns the type of the returned value.</div>
  211. </td>
  212. </tr>
  213. <tr id="i4" class="altColor">
  214. <td class="colFirst"><code><a href="../../javassist/bytecode/SignatureAttribute.TypeParameter.html" title="class in javassist.bytecode">SignatureAttribute.TypeParameter</a>[]</code></td>
  215. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/SignatureAttribute.MethodSignature.html#getTypeParameters--">getTypeParameters</a></span>()</code></th>
  216. <td class="colLast">
  217. <div class="block">Returns the formal type parameters.</div>
  218. </td>
  219. </tr>
  220. <tr id="i5" class="rowColor">
  221. <td class="colFirst"><code>java.lang.String</code></td>
  222. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/SignatureAttribute.MethodSignature.html#toString--">toString</a></span>()</code></th>
  223. <td class="colLast">
  224. <div class="block">Returns the string representation.</div>
  225. </td>
  226. </tr>
  227. </table>
  228. <ul class="blockList">
  229. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  230. <!-- -->
  231. </a>
  232. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  233. <code>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  234. </ul>
  235. </li>
  236. </ul>
  237. </li>
  238. </ul>
  239. </div>
  240. <div class="details">
  241. <ul class="blockList">
  242. <li class="blockList">
  243. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  244. <ul class="blockList">
  245. <li class="blockList"><a name="constructor.detail">
  246. <!-- -->
  247. </a>
  248. <h3>Constructor Detail</h3>
  249. <a name="MethodSignature-javassist.bytecode.SignatureAttribute.TypeParameter:A-javassist.bytecode.SignatureAttribute.Type:A-javassist.bytecode.SignatureAttribute.Type-javassist.bytecode.SignatureAttribute.ObjectType:A-">
  250. <!-- -->
  251. </a>
  252. <ul class="blockListLast">
  253. <li class="blockList">
  254. <h4>MethodSignature</h4>
  255. <pre>public&nbsp;MethodSignature&#8203;(<a href="../../javassist/bytecode/SignatureAttribute.TypeParameter.html" title="class in javassist.bytecode">SignatureAttribute.TypeParameter</a>[]&nbsp;tp,
  256. <a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a>[]&nbsp;params,
  257. <a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a>&nbsp;ret,
  258. <a href="../../javassist/bytecode/SignatureAttribute.ObjectType.html" title="class in javassist.bytecode">SignatureAttribute.ObjectType</a>[]&nbsp;ex)</pre>
  259. <div class="block">Constructs a method type signature. Any parameter can be null
  260. to represent <code>void</code> or nothing.</div>
  261. <dl>
  262. <dt><span class="paramLabel">Parameters:</span></dt>
  263. <dd><code>tp</code> - type parameters.</dd>
  264. <dd><code>params</code> - parameter types.</dd>
  265. <dd><code>ret</code> - a return type, or null if the return type is <code>void</code>.</dd>
  266. <dd><code>ex</code> - exception types.</dd>
  267. </dl>
  268. </li>
  269. </ul>
  270. </li>
  271. </ul>
  272. <!-- ============ METHOD DETAIL ========== -->
  273. <ul class="blockList">
  274. <li class="blockList"><a name="method.detail">
  275. <!-- -->
  276. </a>
  277. <h3>Method Detail</h3>
  278. <a name="getTypeParameters--">
  279. <!-- -->
  280. </a>
  281. <ul class="blockList">
  282. <li class="blockList">
  283. <h4>getTypeParameters</h4>
  284. <pre>public&nbsp;<a href="../../javassist/bytecode/SignatureAttribute.TypeParameter.html" title="class in javassist.bytecode">SignatureAttribute.TypeParameter</a>[]&nbsp;getTypeParameters()</pre>
  285. <div class="block">Returns the formal type parameters.</div>
  286. <dl>
  287. <dt><span class="returnLabel">Returns:</span></dt>
  288. <dd>a zero-length array if the type parameters are not specified.</dd>
  289. </dl>
  290. </li>
  291. </ul>
  292. <a name="getParameterTypes--">
  293. <!-- -->
  294. </a>
  295. <ul class="blockList">
  296. <li class="blockList">
  297. <h4>getParameterTypes</h4>
  298. <pre>public&nbsp;<a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a>[]&nbsp;getParameterTypes()</pre>
  299. <div class="block">Returns the types of the formal parameters.</div>
  300. <dl>
  301. <dt><span class="returnLabel">Returns:</span></dt>
  302. <dd>a zero-length array if no formal parameter is taken.</dd>
  303. </dl>
  304. </li>
  305. </ul>
  306. <a name="getReturnType--">
  307. <!-- -->
  308. </a>
  309. <ul class="blockList">
  310. <li class="blockList">
  311. <h4>getReturnType</h4>
  312. <pre>public&nbsp;<a href="../../javassist/bytecode/SignatureAttribute.Type.html" title="class in javassist.bytecode">SignatureAttribute.Type</a>&nbsp;getReturnType()</pre>
  313. <div class="block">Returns the type of the returned value.</div>
  314. </li>
  315. </ul>
  316. <a name="getExceptionTypes--">
  317. <!-- -->
  318. </a>
  319. <ul class="blockList">
  320. <li class="blockList">
  321. <h4>getExceptionTypes</h4>
  322. <pre>public&nbsp;<a href="../../javassist/bytecode/SignatureAttribute.ObjectType.html" title="class in javassist.bytecode">SignatureAttribute.ObjectType</a>[]&nbsp;getExceptionTypes()</pre>
  323. <div class="block">Returns the types of the exceptions that may be thrown.</div>
  324. <dl>
  325. <dt><span class="returnLabel">Returns:</span></dt>
  326. <dd>a zero-length array if exceptions are never thrown or
  327. the exception types are not parameterized types or type variables.</dd>
  328. </dl>
  329. </li>
  330. </ul>
  331. <a name="toString--">
  332. <!-- -->
  333. </a>
  334. <ul class="blockList">
  335. <li class="blockList">
  336. <h4>toString</h4>
  337. <pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
  338. <div class="block">Returns the string representation.</div>
  339. <dl>
  340. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  341. <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  342. </dl>
  343. </li>
  344. </ul>
  345. <a name="encode--">
  346. <!-- -->
  347. </a>
  348. <ul class="blockListLast">
  349. <li class="blockList">
  350. <h4>encode</h4>
  351. <pre>public&nbsp;java.lang.String&nbsp;encode()</pre>
  352. <div class="block">Returns the encoded string representing the method type signature.</div>
  353. </li>
  354. </ul>
  355. </li>
  356. </ul>
  357. </li>
  358. </ul>
  359. </div>
  360. </div>
  361. <!-- ========= END OF CLASS DATA ========= -->
  362. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  363. <div class="bottomNav"><a name="navbar.bottom">
  364. <!-- -->
  365. </a>
  366. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  367. <a name="navbar.bottom.firstrow">
  368. <!-- -->
  369. </a>
  370. <ul class="navList" title="Navigation">
  371. <li><a href="../../overview-summary.html">Overview</a></li>
  372. <li><a href="package-summary.html">Package</a></li>
  373. <li class="navBarCell1Rev">Class</li>
  374. <li><a href="class-use/SignatureAttribute.MethodSignature.html">Use</a></li>
  375. <li><a href="package-tree.html">Tree</a></li>
  376. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  377. <li><a href="../../index-all.html">Index</a></li>
  378. </ul>
  379. </div>
  380. <div class="subNav">
  381. <ul class="navList">
  382. <li><a href="../../javassist/bytecode/SignatureAttribute.ClassType.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  383. <li><a href="../../javassist/bytecode/SignatureAttribute.NestedClassType.html" title="class in javassist.bytecode"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  384. </ul>
  385. <ul class="navList">
  386. <li><a href="../../index.html?javassist/bytecode/SignatureAttribute.MethodSignature.html" target="_top">Frames</a></li>
  387. <li><a href="SignatureAttribute.MethodSignature.html" target="_top">No&nbsp;Frames</a></li>
  388. </ul>
  389. <ul class="navList" id="allclasses_navbar_bottom">
  390. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  391. </ul>
  392. <div>
  393. <script type="text/javascript"><!--
  394. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  395. if(window==top) {
  396. allClassesLink.style.display = "block";
  397. }
  398. else {
  399. allClassesLink.style.display = "none";
  400. }
  401. //-->
  402. </script>
  403. <noscript>
  404. <div>JavaScript is disabled on your browser.</div>
  405. </noscript>
  406. </div>
  407. <div>
  408. <ul class="subNavList">
  409. <li>Summary:&nbsp;</li>
  410. <li>Nested&nbsp;|&nbsp;</li>
  411. <li>Field&nbsp;|&nbsp;</li>
  412. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  413. <li><a href="#method.summary">Method</a></li>
  414. </ul>
  415. <ul class="subNavList">
  416. <li>Detail:&nbsp;</li>
  417. <li>Field&nbsp;|&nbsp;</li>
  418. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  419. <li><a href="#method.detail">Method</a></li>
  420. </ul>
  421. </div>
  422. <a name="skip.navbar.bottom">
  423. <!-- -->
  424. </a></div>
  425. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  426. <p class="legalCopy"><small><i>Javassist, a Java-bytecode translator toolkit.<br>
  427. Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i></small></p>
  428. </body>
  429. </html>