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.

ExceptionTable.html 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  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>ExceptionTable (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="ExceptionTable (Javassist API)";
  25. }
  26. }
  27. catch(err) {
  28. }
  29. //-->
  30. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":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/ExceptionTable.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/ExceptionsAttribute.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  62. <li><a href="../../javassist/bytecode/FieldInfo.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/ExceptionTable.html" target="_top">Frames</a></li>
  66. <li><a href="ExceptionTable.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 ExceptionTable" class="title">Class ExceptionTable</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.ExceptionTable</li>
  128. </ul>
  129. </li>
  130. </ul>
  131. <div class="description">
  132. <ul class="blockList">
  133. <li class="blockList">
  134. <dl>
  135. <dt>All Implemented Interfaces:</dt>
  136. <dd><code>java.lang.Cloneable</code></dd>
  137. </dl>
  138. <hr>
  139. <pre>public class <span class="typeNameLabel">ExceptionTable</span>
  140. extends java.lang.Object
  141. implements java.lang.Cloneable</pre>
  142. <div class="block"><code>exception_table[]</code> of <code>Code_attribute</code>.</div>
  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/bytecode/ExceptionTable.html#ExceptionTable-javassist.bytecode.ConstPool-">ExceptionTable</a></span>&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;cp)</code></th>
  163. <td class="colLast">
  164. <div class="block">Constructs an <code>exception_table[]</code>.</div>
  165. </td>
  166. </tr>
  167. </table>
  168. </li>
  169. </ul>
  170. <!-- ========== METHOD SUMMARY =========== -->
  171. <ul class="blockList">
  172. <li class="blockList"><a name="method.summary">
  173. <!-- -->
  174. </a>
  175. <h3>Method Summary</h3>
  176. <table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
  177. <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>
  178. <tr>
  179. <th class="colFirst" scope="col">Modifier and Type</th>
  180. <th class="colSecond" scope="col">Method</th>
  181. <th class="colLast" scope="col">Description</th>
  182. </tr>
  183. <tr id="i0" class="altColor">
  184. <td class="colFirst"><code>void</code></td>
  185. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#add-int-int-int-int-">add</a></span>&#8203;(int&nbsp;start,
  186. int&nbsp;end,
  187. int&nbsp;handler,
  188. int&nbsp;type)</code></th>
  189. <td class="colLast">
  190. <div class="block">Appends a new entry at the end of the table.</div>
  191. </td>
  192. </tr>
  193. <tr id="i1" class="rowColor">
  194. <td class="colFirst"><code>void</code></td>
  195. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#add-int-int-int-int-int-">add</a></span>&#8203;(int&nbsp;index,
  196. int&nbsp;start,
  197. int&nbsp;end,
  198. int&nbsp;handler,
  199. int&nbsp;type)</code></th>
  200. <td class="colLast">
  201. <div class="block">Adds a new entry at the specified position in the table.</div>
  202. </td>
  203. </tr>
  204. <tr id="i2" class="altColor">
  205. <td class="colFirst"><code>void</code></td>
  206. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#add-int-javassist.bytecode.ExceptionTable-int-">add</a></span>&#8203;(int&nbsp;index,
  207. <a href="../../javassist/bytecode/ExceptionTable.html" title="class in javassist.bytecode">ExceptionTable</a>&nbsp;table,
  208. int&nbsp;offset)</code></th>
  209. <td class="colLast">
  210. <div class="block">Copies the given exception table at the specified position
  211. in the table.</div>
  212. </td>
  213. </tr>
  214. <tr id="i3" class="rowColor">
  215. <td class="colFirst"><code>int</code></td>
  216. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#catchType-int-">catchType</a></span>&#8203;(int&nbsp;nth)</code></th>
  217. <td class="colLast">
  218. <div class="block">Returns <code>catchType</code> of the <i>n</i>-th entry.</div>
  219. </td>
  220. </tr>
  221. <tr id="i4" class="altColor">
  222. <td class="colFirst"><code>java.lang.Object</code></td>
  223. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#clone--">clone</a></span>()</code></th>
  224. <td class="colLast">
  225. <div class="block">Creates and returns a copy of this object.</div>
  226. </td>
  227. </tr>
  228. <tr id="i5" class="rowColor">
  229. <td class="colFirst"><code><a href="../../javassist/bytecode/ExceptionTable.html" title="class in javassist.bytecode">ExceptionTable</a></code></td>
  230. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#copy-javassist.bytecode.ConstPool-java.util.Map-">copy</a></span>&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;newCp,
  231. java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;classnames)</code></th>
  232. <td class="colLast">
  233. <div class="block">Makes a copy of this <code>exception_table[]</code>.</div>
  234. </td>
  235. </tr>
  236. <tr id="i6" class="altColor">
  237. <td class="colFirst"><code>int</code></td>
  238. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#endPc-int-">endPc</a></span>&#8203;(int&nbsp;nth)</code></th>
  239. <td class="colLast">
  240. <div class="block">Returns <code>endPc</code> of the <i>n</i>-th entry.</div>
  241. </td>
  242. </tr>
  243. <tr id="i7" class="rowColor">
  244. <td class="colFirst"><code>int</code></td>
  245. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#handlerPc-int-">handlerPc</a></span>&#8203;(int&nbsp;nth)</code></th>
  246. <td class="colLast">
  247. <div class="block">Returns <code>handlerPc</code> of the <i>n</i>-th entry.</div>
  248. </td>
  249. </tr>
  250. <tr id="i8" class="altColor">
  251. <td class="colFirst"><code>void</code></td>
  252. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#remove-int-">remove</a></span>&#8203;(int&nbsp;index)</code></th>
  253. <td class="colLast">
  254. <div class="block">Removes the entry at the specified position in the table.</div>
  255. </td>
  256. </tr>
  257. <tr id="i9" class="rowColor">
  258. <td class="colFirst"><code>void</code></td>
  259. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#setCatchType-int-int-">setCatchType</a></span>&#8203;(int&nbsp;nth,
  260. int&nbsp;value)</code></th>
  261. <td class="colLast">
  262. <div class="block">Sets <code>catchType</code> of the <i>n</i>-th entry.</div>
  263. </td>
  264. </tr>
  265. <tr id="i10" class="altColor">
  266. <td class="colFirst"><code>void</code></td>
  267. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#setEndPc-int-int-">setEndPc</a></span>&#8203;(int&nbsp;nth,
  268. int&nbsp;value)</code></th>
  269. <td class="colLast">
  270. <div class="block">Sets <code>endPc</code> of the <i>n</i>-th entry.</div>
  271. </td>
  272. </tr>
  273. <tr id="i11" class="rowColor">
  274. <td class="colFirst"><code>void</code></td>
  275. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#setHandlerPc-int-int-">setHandlerPc</a></span>&#8203;(int&nbsp;nth,
  276. int&nbsp;value)</code></th>
  277. <td class="colLast">
  278. <div class="block">Sets <code>handlerPc</code> of the <i>n</i>-th entry.</div>
  279. </td>
  280. </tr>
  281. <tr id="i12" class="altColor">
  282. <td class="colFirst"><code>void</code></td>
  283. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#setStartPc-int-int-">setStartPc</a></span>&#8203;(int&nbsp;nth,
  284. int&nbsp;value)</code></th>
  285. <td class="colLast">
  286. <div class="block">Sets <code>startPc</code> of the <i>n</i>-th entry.</div>
  287. </td>
  288. </tr>
  289. <tr id="i13" class="rowColor">
  290. <td class="colFirst"><code>int</code></td>
  291. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#size--">size</a></span>()</code></th>
  292. <td class="colLast">
  293. <div class="block">Returns <code>exception_table_length</code>, which is the number
  294. of entries in the <code>exception_table[]</code>.</div>
  295. </td>
  296. </tr>
  297. <tr id="i14" class="altColor">
  298. <td class="colFirst"><code>int</code></td>
  299. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/ExceptionTable.html#startPc-int-">startPc</a></span>&#8203;(int&nbsp;nth)</code></th>
  300. <td class="colLast">
  301. <div class="block">Returns <code>startPc</code> of the <i>n</i>-th entry.</div>
  302. </td>
  303. </tr>
  304. </table>
  305. <ul class="blockList">
  306. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  307. <!-- -->
  308. </a>
  309. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  310. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  311. </ul>
  312. </li>
  313. </ul>
  314. </li>
  315. </ul>
  316. </div>
  317. <div class="details">
  318. <ul class="blockList">
  319. <li class="blockList">
  320. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  321. <ul class="blockList">
  322. <li class="blockList"><a name="constructor.detail">
  323. <!-- -->
  324. </a>
  325. <h3>Constructor Detail</h3>
  326. <a name="ExceptionTable-javassist.bytecode.ConstPool-">
  327. <!-- -->
  328. </a>
  329. <ul class="blockListLast">
  330. <li class="blockList">
  331. <h4>ExceptionTable</h4>
  332. <pre>public&nbsp;ExceptionTable&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;cp)</pre>
  333. <div class="block">Constructs an <code>exception_table[]</code>.</div>
  334. <dl>
  335. <dt><span class="paramLabel">Parameters:</span></dt>
  336. <dd><code>cp</code> - constant pool table.</dd>
  337. </dl>
  338. </li>
  339. </ul>
  340. </li>
  341. </ul>
  342. <!-- ============ METHOD DETAIL ========== -->
  343. <ul class="blockList">
  344. <li class="blockList"><a name="method.detail">
  345. <!-- -->
  346. </a>
  347. <h3>Method Detail</h3>
  348. <a name="clone--">
  349. <!-- -->
  350. </a>
  351. <ul class="blockList">
  352. <li class="blockList">
  353. <h4>clone</h4>
  354. <pre>public&nbsp;java.lang.Object&nbsp;clone()
  355. throws java.lang.CloneNotSupportedException</pre>
  356. <div class="block">Creates and returns a copy of this object.
  357. The constant pool object is shared between this object
  358. and the cloned object.</div>
  359. <dl>
  360. <dt><span class="throwsLabel">Throws:</span></dt>
  361. <dd><code>java.lang.CloneNotSupportedException</code></dd>
  362. </dl>
  363. </li>
  364. </ul>
  365. <a name="size--">
  366. <!-- -->
  367. </a>
  368. <ul class="blockList">
  369. <li class="blockList">
  370. <h4>size</h4>
  371. <pre>public&nbsp;int&nbsp;size()</pre>
  372. <div class="block">Returns <code>exception_table_length</code>, which is the number
  373. of entries in the <code>exception_table[]</code>.</div>
  374. </li>
  375. </ul>
  376. <a name="startPc-int-">
  377. <!-- -->
  378. </a>
  379. <ul class="blockList">
  380. <li class="blockList">
  381. <h4>startPc</h4>
  382. <pre>public&nbsp;int&nbsp;startPc&#8203;(int&nbsp;nth)</pre>
  383. <div class="block">Returns <code>startPc</code> of the <i>n</i>-th entry.</div>
  384. <dl>
  385. <dt><span class="paramLabel">Parameters:</span></dt>
  386. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  387. </dl>
  388. </li>
  389. </ul>
  390. <a name="setStartPc-int-int-">
  391. <!-- -->
  392. </a>
  393. <ul class="blockList">
  394. <li class="blockList">
  395. <h4>setStartPc</h4>
  396. <pre>public&nbsp;void&nbsp;setStartPc&#8203;(int&nbsp;nth,
  397. int&nbsp;value)</pre>
  398. <div class="block">Sets <code>startPc</code> of the <i>n</i>-th entry.</div>
  399. <dl>
  400. <dt><span class="paramLabel">Parameters:</span></dt>
  401. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  402. <dd><code>value</code> - new value.</dd>
  403. </dl>
  404. </li>
  405. </ul>
  406. <a name="endPc-int-">
  407. <!-- -->
  408. </a>
  409. <ul class="blockList">
  410. <li class="blockList">
  411. <h4>endPc</h4>
  412. <pre>public&nbsp;int&nbsp;endPc&#8203;(int&nbsp;nth)</pre>
  413. <div class="block">Returns <code>endPc</code> of the <i>n</i>-th entry.</div>
  414. <dl>
  415. <dt><span class="paramLabel">Parameters:</span></dt>
  416. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  417. </dl>
  418. </li>
  419. </ul>
  420. <a name="setEndPc-int-int-">
  421. <!-- -->
  422. </a>
  423. <ul class="blockList">
  424. <li class="blockList">
  425. <h4>setEndPc</h4>
  426. <pre>public&nbsp;void&nbsp;setEndPc&#8203;(int&nbsp;nth,
  427. int&nbsp;value)</pre>
  428. <div class="block">Sets <code>endPc</code> of the <i>n</i>-th entry.</div>
  429. <dl>
  430. <dt><span class="paramLabel">Parameters:</span></dt>
  431. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  432. <dd><code>value</code> - new value.</dd>
  433. </dl>
  434. </li>
  435. </ul>
  436. <a name="handlerPc-int-">
  437. <!-- -->
  438. </a>
  439. <ul class="blockList">
  440. <li class="blockList">
  441. <h4>handlerPc</h4>
  442. <pre>public&nbsp;int&nbsp;handlerPc&#8203;(int&nbsp;nth)</pre>
  443. <div class="block">Returns <code>handlerPc</code> of the <i>n</i>-th entry.</div>
  444. <dl>
  445. <dt><span class="paramLabel">Parameters:</span></dt>
  446. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  447. </dl>
  448. </li>
  449. </ul>
  450. <a name="setHandlerPc-int-int-">
  451. <!-- -->
  452. </a>
  453. <ul class="blockList">
  454. <li class="blockList">
  455. <h4>setHandlerPc</h4>
  456. <pre>public&nbsp;void&nbsp;setHandlerPc&#8203;(int&nbsp;nth,
  457. int&nbsp;value)</pre>
  458. <div class="block">Sets <code>handlerPc</code> of the <i>n</i>-th entry.</div>
  459. <dl>
  460. <dt><span class="paramLabel">Parameters:</span></dt>
  461. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  462. <dd><code>value</code> - new value.</dd>
  463. </dl>
  464. </li>
  465. </ul>
  466. <a name="catchType-int-">
  467. <!-- -->
  468. </a>
  469. <ul class="blockList">
  470. <li class="blockList">
  471. <h4>catchType</h4>
  472. <pre>public&nbsp;int&nbsp;catchType&#8203;(int&nbsp;nth)</pre>
  473. <div class="block">Returns <code>catchType</code> of the <i>n</i>-th entry.</div>
  474. <dl>
  475. <dt><span class="paramLabel">Parameters:</span></dt>
  476. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  477. <dt><span class="returnLabel">Returns:</span></dt>
  478. <dd>an index into the <code>constant_pool</code> table,
  479. or zero if this exception handler is for all exceptions.</dd>
  480. </dl>
  481. </li>
  482. </ul>
  483. <a name="setCatchType-int-int-">
  484. <!-- -->
  485. </a>
  486. <ul class="blockList">
  487. <li class="blockList">
  488. <h4>setCatchType</h4>
  489. <pre>public&nbsp;void&nbsp;setCatchType&#8203;(int&nbsp;nth,
  490. int&nbsp;value)</pre>
  491. <div class="block">Sets <code>catchType</code> of the <i>n</i>-th entry.</div>
  492. <dl>
  493. <dt><span class="paramLabel">Parameters:</span></dt>
  494. <dd><code>nth</code> - the <i>n</i>-th (&gt;= 0).</dd>
  495. <dd><code>value</code> - new value.</dd>
  496. </dl>
  497. </li>
  498. </ul>
  499. <a name="add-int-javassist.bytecode.ExceptionTable-int-">
  500. <!-- -->
  501. </a>
  502. <ul class="blockList">
  503. <li class="blockList">
  504. <h4>add</h4>
  505. <pre>public&nbsp;void&nbsp;add&#8203;(int&nbsp;index,
  506. <a href="../../javassist/bytecode/ExceptionTable.html" title="class in javassist.bytecode">ExceptionTable</a>&nbsp;table,
  507. int&nbsp;offset)</pre>
  508. <div class="block">Copies the given exception table at the specified position
  509. in the table.</div>
  510. <dl>
  511. <dt><span class="paramLabel">Parameters:</span></dt>
  512. <dd><code>index</code> - index (&gt;= 0) at which the entry is to be inserted.</dd>
  513. <dd><code>offset</code> - the offset added to the code position.</dd>
  514. </dl>
  515. </li>
  516. </ul>
  517. <a name="add-int-int-int-int-int-">
  518. <!-- -->
  519. </a>
  520. <ul class="blockList">
  521. <li class="blockList">
  522. <h4>add</h4>
  523. <pre>public&nbsp;void&nbsp;add&#8203;(int&nbsp;index,
  524. int&nbsp;start,
  525. int&nbsp;end,
  526. int&nbsp;handler,
  527. int&nbsp;type)</pre>
  528. <div class="block">Adds a new entry at the specified position in the table.</div>
  529. <dl>
  530. <dt><span class="paramLabel">Parameters:</span></dt>
  531. <dd><code>index</code> - index (&gt;= 0) at which the entry is to be inserted.</dd>
  532. <dd><code>start</code> - <code>startPc</code></dd>
  533. <dd><code>end</code> - <code>endPc</code></dd>
  534. <dd><code>handler</code> - <code>handlerPc</code></dd>
  535. <dd><code>type</code> - <code>catchType</code></dd>
  536. </dl>
  537. </li>
  538. </ul>
  539. <a name="add-int-int-int-int-">
  540. <!-- -->
  541. </a>
  542. <ul class="blockList">
  543. <li class="blockList">
  544. <h4>add</h4>
  545. <pre>public&nbsp;void&nbsp;add&#8203;(int&nbsp;start,
  546. int&nbsp;end,
  547. int&nbsp;handler,
  548. int&nbsp;type)</pre>
  549. <div class="block">Appends a new entry at the end of the table.</div>
  550. <dl>
  551. <dt><span class="paramLabel">Parameters:</span></dt>
  552. <dd><code>start</code> - <code>startPc</code></dd>
  553. <dd><code>end</code> - <code>endPc</code></dd>
  554. <dd><code>handler</code> - <code>handlerPc</code></dd>
  555. <dd><code>type</code> - <code>catchType</code></dd>
  556. </dl>
  557. </li>
  558. </ul>
  559. <a name="remove-int-">
  560. <!-- -->
  561. </a>
  562. <ul class="blockList">
  563. <li class="blockList">
  564. <h4>remove</h4>
  565. <pre>public&nbsp;void&nbsp;remove&#8203;(int&nbsp;index)</pre>
  566. <div class="block">Removes the entry at the specified position in the table.</div>
  567. <dl>
  568. <dt><span class="paramLabel">Parameters:</span></dt>
  569. <dd><code>index</code> - the index of the removed entry.</dd>
  570. </dl>
  571. </li>
  572. </ul>
  573. <a name="copy-javassist.bytecode.ConstPool-java.util.Map-">
  574. <!-- -->
  575. </a>
  576. <ul class="blockListLast">
  577. <li class="blockList">
  578. <h4>copy</h4>
  579. <pre>public&nbsp;<a href="../../javassist/bytecode/ExceptionTable.html" title="class in javassist.bytecode">ExceptionTable</a>&nbsp;copy&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;newCp,
  580. java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;classnames)</pre>
  581. <div class="block">Makes a copy of this <code>exception_table[]</code>.
  582. Class names are replaced according to the
  583. given <code>Map</code> object.</div>
  584. <dl>
  585. <dt><span class="paramLabel">Parameters:</span></dt>
  586. <dd><code>newCp</code> - the constant pool table used by the new copy.</dd>
  587. <dd><code>classnames</code> - pairs of replaced and substituted
  588. class names.</dd>
  589. </dl>
  590. </li>
  591. </ul>
  592. </li>
  593. </ul>
  594. </li>
  595. </ul>
  596. </div>
  597. </div>
  598. <!-- ========= END OF CLASS DATA ========= -->
  599. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  600. <div class="bottomNav"><a name="navbar.bottom">
  601. <!-- -->
  602. </a>
  603. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  604. <a name="navbar.bottom.firstrow">
  605. <!-- -->
  606. </a>
  607. <ul class="navList" title="Navigation">
  608. <li><a href="../../overview-summary.html">Overview</a></li>
  609. <li><a href="package-summary.html">Package</a></li>
  610. <li class="navBarCell1Rev">Class</li>
  611. <li><a href="class-use/ExceptionTable.html">Use</a></li>
  612. <li><a href="package-tree.html">Tree</a></li>
  613. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  614. <li><a href="../../index-all.html">Index</a></li>
  615. </ul>
  616. </div>
  617. <div class="subNav">
  618. <ul class="navList">
  619. <li><a href="../../javassist/bytecode/ExceptionsAttribute.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  620. <li><a href="../../javassist/bytecode/FieldInfo.html" title="class in javassist.bytecode"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  621. </ul>
  622. <ul class="navList">
  623. <li><a href="../../index.html?javassist/bytecode/ExceptionTable.html" target="_top">Frames</a></li>
  624. <li><a href="ExceptionTable.html" target="_top">No&nbsp;Frames</a></li>
  625. </ul>
  626. <ul class="navList" id="allclasses_navbar_bottom">
  627. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  628. </ul>
  629. <div>
  630. <script type="text/javascript"><!--
  631. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  632. if(window==top) {
  633. allClassesLink.style.display = "block";
  634. }
  635. else {
  636. allClassesLink.style.display = "none";
  637. }
  638. //-->
  639. </script>
  640. <noscript>
  641. <div>JavaScript is disabled on your browser.</div>
  642. </noscript>
  643. </div>
  644. <div>
  645. <ul class="subNavList">
  646. <li>Summary:&nbsp;</li>
  647. <li>Nested&nbsp;|&nbsp;</li>
  648. <li>Field&nbsp;|&nbsp;</li>
  649. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  650. <li><a href="#method.summary">Method</a></li>
  651. </ul>
  652. <ul class="subNavList">
  653. <li>Detail:&nbsp;</li>
  654. <li>Field&nbsp;|&nbsp;</li>
  655. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  656. <li><a href="#method.detail">Method</a></li>
  657. </ul>
  658. </div>
  659. <a name="skip.navbar.bottom">
  660. <!-- -->
  661. </a></div>
  662. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  663. <p class="legalCopy"><small><i>Javassist, a Java-bytecode translator toolkit.<br>
  664. Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i></small></p>
  665. </body>
  666. </html>