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.

LocalVariableAttribute.html 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  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>LocalVariableAttribute (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="LocalVariableAttribute (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};
  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/LocalVariableAttribute.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/LineNumberAttribute.Pc.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  62. <li><a href="../../javassist/bytecode/LocalVariableTypeAttribute.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/LocalVariableAttribute.html" target="_top">Frames</a></li>
  66. <li><a href="LocalVariableAttribute.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><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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 LocalVariableAttribute" class="title">Class LocalVariableAttribute</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><a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">javassist.bytecode.AttributeInfo</a></li>
  128. <li>
  129. <ul class="inheritance">
  130. <li>javassist.bytecode.LocalVariableAttribute</li>
  131. </ul>
  132. </li>
  133. </ul>
  134. </li>
  135. </ul>
  136. <div class="description">
  137. <ul class="blockList">
  138. <li class="blockList">
  139. <dl>
  140. <dt>Direct Known Subclasses:</dt>
  141. <dd><code><a href="../../javassist/bytecode/LocalVariableTypeAttribute.html" title="class in javassist.bytecode">LocalVariableTypeAttribute</a></code></dd>
  142. </dl>
  143. <hr>
  144. <pre>public class <span class="typeNameLabel">LocalVariableAttribute</span>
  145. extends <a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a></pre>
  146. <div class="block"><code>LocalVariableTable_attribute</code>.</div>
  147. </li>
  148. </ul>
  149. </div>
  150. <div class="summary">
  151. <ul class="blockList">
  152. <li class="blockList">
  153. <!-- =========== FIELD SUMMARY =========== -->
  154. <ul class="blockList">
  155. <li class="blockList"><a name="field.summary">
  156. <!-- -->
  157. </a>
  158. <h3>Field Summary</h3>
  159. <table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
  160. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  161. <tr>
  162. <th class="colFirst" scope="col">Modifier and Type</th>
  163. <th class="colSecond" scope="col">Field</th>
  164. <th class="colLast" scope="col">Description</th>
  165. </tr>
  166. <tr class="altColor">
  167. <td class="colFirst"><code>static java.lang.String</code></td>
  168. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#tag">tag</a></span></code></th>
  169. <td class="colLast">
  170. <div class="block">The name of this attribute <code>"LocalVariableTable"</code>.</div>
  171. </td>
  172. </tr>
  173. <tr class="rowColor">
  174. <td class="colFirst"><code>static java.lang.String</code></td>
  175. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#typeTag">typeTag</a></span></code></th>
  176. <td class="colLast">
  177. <div class="block">The name of the attribute <code>"LocalVariableTypeTable"</code>.</div>
  178. </td>
  179. </tr>
  180. </table>
  181. </li>
  182. </ul>
  183. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  184. <ul class="blockList">
  185. <li class="blockList"><a name="constructor.summary">
  186. <!-- -->
  187. </a>
  188. <h3>Constructor Summary</h3>
  189. <table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
  190. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  191. <tr>
  192. <th class="colFirst" scope="col">Constructor</th>
  193. <th class="colLast" scope="col">Description</th>
  194. </tr>
  195. <tr class="altColor">
  196. <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#LocalVariableAttribute-javassist.bytecode.ConstPool-">LocalVariableAttribute</a></span>&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;cp)</code></th>
  197. <td class="colLast">
  198. <div class="block">Constructs an empty LocalVariableTable.</div>
  199. </td>
  200. </tr>
  201. <tr class="rowColor">
  202. <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#LocalVariableAttribute-javassist.bytecode.ConstPool-java.lang.String-">LocalVariableAttribute</a></span>&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;cp,
  203. java.lang.String&nbsp;name)</code></th>
  204. <td class="colLast">
  205. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  206. </td>
  207. </tr>
  208. </table>
  209. </li>
  210. </ul>
  211. <!-- ========== METHOD SUMMARY =========== -->
  212. <ul class="blockList">
  213. <li class="blockList"><a name="method.summary">
  214. <!-- -->
  215. </a>
  216. <h3>Method Summary</h3>
  217. <table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
  218. <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>
  219. <tr>
  220. <th class="colFirst" scope="col">Modifier and Type</th>
  221. <th class="colSecond" scope="col">Method</th>
  222. <th class="colLast" scope="col">Description</th>
  223. </tr>
  224. <tr id="i0" class="altColor">
  225. <td class="colFirst"><code>void</code></td>
  226. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#addEntry-int-int-int-int-int-">addEntry</a></span>&#8203;(int&nbsp;startPc,
  227. int&nbsp;length,
  228. int&nbsp;nameIndex,
  229. int&nbsp;descriptorIndex,
  230. int&nbsp;index)</code></th>
  231. <td class="colLast">
  232. <div class="block">Appends a new entry to <code>local_variable_table</code>.</div>
  233. </td>
  234. </tr>
  235. <tr id="i1" class="rowColor">
  236. <td class="colFirst"><code>int</code></td>
  237. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#codeLength-int-">codeLength</a></span>&#8203;(int&nbsp;i)</code></th>
  238. <td class="colLast">
  239. <div class="block">Returns <code>local_variable_table[i].length</code>.</div>
  240. </td>
  241. </tr>
  242. <tr id="i2" class="altColor">
  243. <td class="colFirst"><code><a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a></code></td>
  244. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.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,
  245. java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;classnames)</code></th>
  246. <td class="colLast">
  247. <div class="block">Makes a copy.</div>
  248. </td>
  249. </tr>
  250. <tr id="i3" class="rowColor">
  251. <td class="colFirst"><code>java.lang.String</code></td>
  252. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#descriptor-int-">descriptor</a></span>&#8203;(int&nbsp;i)</code></th>
  253. <td class="colLast">
  254. <div class="block">Returns the type descriptor of the local variable
  255. specified by <code>local_variable_table[i].descriptor_index</code>.</div>
  256. </td>
  257. </tr>
  258. <tr id="i4" class="altColor">
  259. <td class="colFirst"><code>int</code></td>
  260. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#descriptorIndex-int-">descriptorIndex</a></span>&#8203;(int&nbsp;i)</code></th>
  261. <td class="colLast">
  262. <div class="block">Returns the value of
  263. <code>local_variable_table[i].descriptor_index</code>.</div>
  264. </td>
  265. </tr>
  266. <tr id="i5" class="rowColor">
  267. <td class="colFirst"><code>int</code></td>
  268. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#index-int-">index</a></span>&#8203;(int&nbsp;i)</code></th>
  269. <td class="colLast">
  270. <div class="block">Returns <code>local_variable_table[i].index</code>.</div>
  271. </td>
  272. </tr>
  273. <tr id="i6" class="altColor">
  274. <td class="colFirst"><code>int</code></td>
  275. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#nameIndex-int-">nameIndex</a></span>&#8203;(int&nbsp;i)</code></th>
  276. <td class="colLast">
  277. <div class="block">Returns the value of <code>local_variable_table[i].name_index</code>.</div>
  278. </td>
  279. </tr>
  280. <tr id="i7" class="rowColor">
  281. <td class="colFirst"><code>void</code></td>
  282. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#shiftIndex-int-int-">shiftIndex</a></span>&#8203;(int&nbsp;lessThan,
  283. int&nbsp;delta)</code></th>
  284. <td class="colLast">
  285. <div class="block">For each <code>local_variable_table[i].index</code>,
  286. this method increases <code>index</code> by <code>delta</code>.</div>
  287. </td>
  288. </tr>
  289. <tr id="i8" class="altColor">
  290. <td class="colFirst"><code>java.lang.String</code></td>
  291. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#signature-int-">signature</a></span>&#8203;(int&nbsp;i)</code></th>
  292. <td class="colLast">
  293. <div class="block">This method is equivalent to <code>descriptor()</code>.</div>
  294. </td>
  295. </tr>
  296. <tr id="i9" class="rowColor">
  297. <td class="colFirst"><code>int</code></td>
  298. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#signatureIndex-int-">signatureIndex</a></span>&#8203;(int&nbsp;i)</code></th>
  299. <td class="colLast">
  300. <div class="block">This method is equivalent to <code>descriptorIndex()</code>.</div>
  301. </td>
  302. </tr>
  303. <tr id="i10" class="altColor">
  304. <td class="colFirst"><code>int</code></td>
  305. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#startPc-int-">startPc</a></span>&#8203;(int&nbsp;i)</code></th>
  306. <td class="colLast">
  307. <div class="block">Returns <code>local_variable_table[i].start_pc</code>.</div>
  308. </td>
  309. </tr>
  310. <tr id="i11" class="rowColor">
  311. <td class="colFirst"><code>int</code></td>
  312. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#tableLength--">tableLength</a></span>()</code></th>
  313. <td class="colLast">
  314. <div class="block">Returns <code>local_variable_table_length</code>.</div>
  315. </td>
  316. </tr>
  317. <tr id="i12" class="altColor">
  318. <td class="colFirst"><code>java.lang.String</code></td>
  319. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/LocalVariableAttribute.html#variableName-int-">variableName</a></span>&#8203;(int&nbsp;i)</code></th>
  320. <td class="colLast">
  321. <div class="block">Returns the name of the local variable
  322. specified by <code>local_variable_table[i].name_index</code>.</div>
  323. </td>
  324. </tr>
  325. </table>
  326. <ul class="blockList">
  327. <li class="blockList"><a name="methods.inherited.from.class.javassist.bytecode.AttributeInfo">
  328. <!-- -->
  329. </a>
  330. <h3>Methods inherited from class&nbsp;javassist.bytecode.<a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a></h3>
  331. <code><a href="../../javassist/bytecode/AttributeInfo.html#get--">get</a>, <a href="../../javassist/bytecode/AttributeInfo.html#getConstPool--">getConstPool</a>, <a href="../../javassist/bytecode/AttributeInfo.html#getName--">getName</a>, <a href="../../javassist/bytecode/AttributeInfo.html#length--">length</a>, <a href="../../javassist/bytecode/AttributeInfo.html#set-byte:A-">set</a></code></li>
  332. </ul>
  333. <ul class="blockList">
  334. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  335. <!-- -->
  336. </a>
  337. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  338. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  339. </ul>
  340. </li>
  341. </ul>
  342. </li>
  343. </ul>
  344. </div>
  345. <div class="details">
  346. <ul class="blockList">
  347. <li class="blockList">
  348. <!-- ============ FIELD DETAIL =========== -->
  349. <ul class="blockList">
  350. <li class="blockList"><a name="field.detail">
  351. <!-- -->
  352. </a>
  353. <h3>Field Detail</h3>
  354. <a name="tag">
  355. <!-- -->
  356. </a>
  357. <ul class="blockList">
  358. <li class="blockList">
  359. <h4>tag</h4>
  360. <pre>public static final&nbsp;java.lang.String tag</pre>
  361. <div class="block">The name of this attribute <code>"LocalVariableTable"</code>.</div>
  362. <dl>
  363. <dt><span class="seeLabel">See Also:</span></dt>
  364. <dd><a href="../../constant-values.html#javassist.bytecode.LocalVariableAttribute.tag">Constant Field Values</a></dd>
  365. </dl>
  366. </li>
  367. </ul>
  368. <a name="typeTag">
  369. <!-- -->
  370. </a>
  371. <ul class="blockListLast">
  372. <li class="blockList">
  373. <h4>typeTag</h4>
  374. <pre>public static final&nbsp;java.lang.String typeTag</pre>
  375. <div class="block">The name of the attribute <code>"LocalVariableTypeTable"</code>.</div>
  376. <dl>
  377. <dt><span class="seeLabel">See Also:</span></dt>
  378. <dd><a href="../../constant-values.html#javassist.bytecode.LocalVariableAttribute.typeTag">Constant Field Values</a></dd>
  379. </dl>
  380. </li>
  381. </ul>
  382. </li>
  383. </ul>
  384. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  385. <ul class="blockList">
  386. <li class="blockList"><a name="constructor.detail">
  387. <!-- -->
  388. </a>
  389. <h3>Constructor Detail</h3>
  390. <a name="LocalVariableAttribute-javassist.bytecode.ConstPool-">
  391. <!-- -->
  392. </a>
  393. <ul class="blockList">
  394. <li class="blockList">
  395. <h4>LocalVariableAttribute</h4>
  396. <pre>public&nbsp;LocalVariableAttribute&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;cp)</pre>
  397. <div class="block">Constructs an empty LocalVariableTable.</div>
  398. </li>
  399. </ul>
  400. <a name="LocalVariableAttribute-javassist.bytecode.ConstPool-java.lang.String-">
  401. <!-- -->
  402. </a>
  403. <ul class="blockListLast">
  404. <li class="blockList">
  405. <h4>LocalVariableAttribute</h4>
  406. <pre>@Deprecated
  407. public&nbsp;LocalVariableAttribute&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;cp,
  408. java.lang.String&nbsp;name)</pre>
  409. <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
  410. <div class="block">Constructs an empty LocalVariableTable.</div>
  411. <dl>
  412. <dt><span class="paramLabel">Parameters:</span></dt>
  413. <dd><code>name</code> - the attribute name.
  414. <code>LocalVariableAttribute.tag</code> or
  415. <code>LocalVariableAttribute.typeTag</code>.</dd>
  416. <dt><span class="simpleTagLabel">Since:</span></dt>
  417. <dd>3.1</dd>
  418. <dt><span class="seeLabel">See Also:</span></dt>
  419. <dd><a href="../../javassist/bytecode/LocalVariableAttribute.html#tag"><code>tag</code></a>,
  420. <a href="../../javassist/bytecode/LocalVariableAttribute.html#typeTag"><code>typeTag</code></a></dd>
  421. </dl>
  422. </li>
  423. </ul>
  424. </li>
  425. </ul>
  426. <!-- ============ METHOD DETAIL ========== -->
  427. <ul class="blockList">
  428. <li class="blockList"><a name="method.detail">
  429. <!-- -->
  430. </a>
  431. <h3>Method Detail</h3>
  432. <a name="addEntry-int-int-int-int-int-">
  433. <!-- -->
  434. </a>
  435. <ul class="blockList">
  436. <li class="blockList">
  437. <h4>addEntry</h4>
  438. <pre>public&nbsp;void&nbsp;addEntry&#8203;(int&nbsp;startPc,
  439. int&nbsp;length,
  440. int&nbsp;nameIndex,
  441. int&nbsp;descriptorIndex,
  442. int&nbsp;index)</pre>
  443. <div class="block">Appends a new entry to <code>local_variable_table</code>.</div>
  444. <dl>
  445. <dt><span class="paramLabel">Parameters:</span></dt>
  446. <dd><code>startPc</code> - <code>start_pc</code></dd>
  447. <dd><code>length</code> - <code>length</code></dd>
  448. <dd><code>nameIndex</code> - <code>name_index</code></dd>
  449. <dd><code>descriptorIndex</code> - <code>descriptor_index</code></dd>
  450. <dd><code>index</code> - <code>index</code></dd>
  451. </dl>
  452. </li>
  453. </ul>
  454. <a name="shiftIndex-int-int-">
  455. <!-- -->
  456. </a>
  457. <ul class="blockList">
  458. <li class="blockList">
  459. <h4>shiftIndex</h4>
  460. <pre>public&nbsp;void&nbsp;shiftIndex&#8203;(int&nbsp;lessThan,
  461. int&nbsp;delta)</pre>
  462. <div class="block">For each <code>local_variable_table[i].index</code>,
  463. this method increases <code>index</code> by <code>delta</code>.</div>
  464. <dl>
  465. <dt><span class="paramLabel">Parameters:</span></dt>
  466. <dd><code>lessThan</code> - the index does not change if it
  467. is less than this value.</dd>
  468. </dl>
  469. </li>
  470. </ul>
  471. <a name="tableLength--">
  472. <!-- -->
  473. </a>
  474. <ul class="blockList">
  475. <li class="blockList">
  476. <h4>tableLength</h4>
  477. <pre>public&nbsp;int&nbsp;tableLength()</pre>
  478. <div class="block">Returns <code>local_variable_table_length</code>.
  479. This represents the number of entries in the table.</div>
  480. </li>
  481. </ul>
  482. <a name="startPc-int-">
  483. <!-- -->
  484. </a>
  485. <ul class="blockList">
  486. <li class="blockList">
  487. <h4>startPc</h4>
  488. <pre>public&nbsp;int&nbsp;startPc&#8203;(int&nbsp;i)</pre>
  489. <div class="block">Returns <code>local_variable_table[i].start_pc</code>.
  490. This represents the index into the code array from which the local
  491. variable is effective.</div>
  492. <dl>
  493. <dt><span class="paramLabel">Parameters:</span></dt>
  494. <dd><code>i</code> - the i-th entry.</dd>
  495. </dl>
  496. </li>
  497. </ul>
  498. <a name="codeLength-int-">
  499. <!-- -->
  500. </a>
  501. <ul class="blockList">
  502. <li class="blockList">
  503. <h4>codeLength</h4>
  504. <pre>public&nbsp;int&nbsp;codeLength&#8203;(int&nbsp;i)</pre>
  505. <div class="block">Returns <code>local_variable_table[i].length</code>.
  506. This represents the length of the code region in which the local
  507. variable is effective.</div>
  508. <dl>
  509. <dt><span class="paramLabel">Parameters:</span></dt>
  510. <dd><code>i</code> - the i-th entry.</dd>
  511. </dl>
  512. </li>
  513. </ul>
  514. <a name="nameIndex-int-">
  515. <!-- -->
  516. </a>
  517. <ul class="blockList">
  518. <li class="blockList">
  519. <h4>nameIndex</h4>
  520. <pre>public&nbsp;int&nbsp;nameIndex&#8203;(int&nbsp;i)</pre>
  521. <div class="block">Returns the value of <code>local_variable_table[i].name_index</code>.
  522. This represents the name of the local variable.</div>
  523. <dl>
  524. <dt><span class="paramLabel">Parameters:</span></dt>
  525. <dd><code>i</code> - the i-th entry.</dd>
  526. </dl>
  527. </li>
  528. </ul>
  529. <a name="variableName-int-">
  530. <!-- -->
  531. </a>
  532. <ul class="blockList">
  533. <li class="blockList">
  534. <h4>variableName</h4>
  535. <pre>public&nbsp;java.lang.String&nbsp;variableName&#8203;(int&nbsp;i)</pre>
  536. <div class="block">Returns the name of the local variable
  537. specified by <code>local_variable_table[i].name_index</code>.</div>
  538. <dl>
  539. <dt><span class="paramLabel">Parameters:</span></dt>
  540. <dd><code>i</code> - the i-th entry.</dd>
  541. </dl>
  542. </li>
  543. </ul>
  544. <a name="descriptorIndex-int-">
  545. <!-- -->
  546. </a>
  547. <ul class="blockList">
  548. <li class="blockList">
  549. <h4>descriptorIndex</h4>
  550. <pre>public&nbsp;int&nbsp;descriptorIndex&#8203;(int&nbsp;i)</pre>
  551. <div class="block">Returns the value of
  552. <code>local_variable_table[i].descriptor_index</code>.
  553. This represents the type descriptor of the local variable.
  554. <p>
  555. If this attribute represents a LocalVariableTypeTable attribute,
  556. this method returns the value of
  557. <code>local_variable_type_table[i].signature_index</code>.
  558. It represents the type of the local variable.</div>
  559. <dl>
  560. <dt><span class="paramLabel">Parameters:</span></dt>
  561. <dd><code>i</code> - the i-th entry.</dd>
  562. </dl>
  563. </li>
  564. </ul>
  565. <a name="signatureIndex-int-">
  566. <!-- -->
  567. </a>
  568. <ul class="blockList">
  569. <li class="blockList">
  570. <h4>signatureIndex</h4>
  571. <pre>public&nbsp;int&nbsp;signatureIndex&#8203;(int&nbsp;i)</pre>
  572. <div class="block">This method is equivalent to <code>descriptorIndex()</code>.
  573. If this attribute represents a LocalVariableTypeTable attribute,
  574. this method should be used instead of <code>descriptorIndex()</code>
  575. since the method name is more appropriate.</div>
  576. <dl>
  577. <dt><span class="paramLabel">Parameters:</span></dt>
  578. <dd><code>i</code> - the i-th entry.</dd>
  579. <dt><span class="seeLabel">See Also:</span></dt>
  580. <dd><a href="../../javassist/bytecode/LocalVariableAttribute.html#descriptorIndex-int-"><code>descriptorIndex(int)</code></a>,
  581. <a href="../../javassist/bytecode/SignatureAttribute.html#toFieldSignature-java.lang.String-"><code>SignatureAttribute.toFieldSignature(String)</code></a></dd>
  582. </dl>
  583. </li>
  584. </ul>
  585. <a name="descriptor-int-">
  586. <!-- -->
  587. </a>
  588. <ul class="blockList">
  589. <li class="blockList">
  590. <h4>descriptor</h4>
  591. <pre>public&nbsp;java.lang.String&nbsp;descriptor&#8203;(int&nbsp;i)</pre>
  592. <div class="block">Returns the type descriptor of the local variable
  593. specified by <code>local_variable_table[i].descriptor_index</code>.
  594. <p>
  595. If this attribute represents a LocalVariableTypeTable attribute,
  596. this method returns the type signature of the local variable
  597. specified by <code>local_variable_type_table[i].signature_index</code>.</div>
  598. <dl>
  599. <dt><span class="paramLabel">Parameters:</span></dt>
  600. <dd><code>i</code> - the i-th entry.</dd>
  601. </dl>
  602. </li>
  603. </ul>
  604. <a name="signature-int-">
  605. <!-- -->
  606. </a>
  607. <ul class="blockList">
  608. <li class="blockList">
  609. <h4>signature</h4>
  610. <pre>public&nbsp;java.lang.String&nbsp;signature&#8203;(int&nbsp;i)</pre>
  611. <div class="block">This method is equivalent to <code>descriptor()</code>.
  612. If this attribute represents a LocalVariableTypeTable attribute,
  613. this method should be used instead of <code>descriptor()</code>
  614. since the method name is more appropriate.
  615. <p>To parse the string, call <code>toFieldSignature(String)</code>
  616. in <code>SignatureAttribute</code>.</div>
  617. <dl>
  618. <dt><span class="paramLabel">Parameters:</span></dt>
  619. <dd><code>i</code> - the i-th entry.</dd>
  620. <dt><span class="seeLabel">See Also:</span></dt>
  621. <dd><a href="../../javassist/bytecode/LocalVariableAttribute.html#descriptor-int-"><code>descriptor(int)</code></a>,
  622. <a href="../../javassist/bytecode/SignatureAttribute.html#toFieldSignature-java.lang.String-"><code>SignatureAttribute.toFieldSignature(String)</code></a></dd>
  623. </dl>
  624. </li>
  625. </ul>
  626. <a name="index-int-">
  627. <!-- -->
  628. </a>
  629. <ul class="blockList">
  630. <li class="blockList">
  631. <h4>index</h4>
  632. <pre>public&nbsp;int&nbsp;index&#8203;(int&nbsp;i)</pre>
  633. <div class="block">Returns <code>local_variable_table[i].index</code>.
  634. This represents the index of the local variable.</div>
  635. <dl>
  636. <dt><span class="paramLabel">Parameters:</span></dt>
  637. <dd><code>i</code> - the i-th entry.</dd>
  638. </dl>
  639. </li>
  640. </ul>
  641. <a name="copy-javassist.bytecode.ConstPool-java.util.Map-">
  642. <!-- -->
  643. </a>
  644. <ul class="blockListLast">
  645. <li class="blockList">
  646. <h4>copy</h4>
  647. <pre>public&nbsp;<a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a>&nbsp;copy&#8203;(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a>&nbsp;newCp,
  648. java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;classnames)</pre>
  649. <div class="block">Makes a copy.</div>
  650. <dl>
  651. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  652. <dd><code><a href="../../javassist/bytecode/AttributeInfo.html#copy-javassist.bytecode.ConstPool-java.util.Map-">copy</a></code>&nbsp;in class&nbsp;<code><a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a></code></dd>
  653. <dt><span class="paramLabel">Parameters:</span></dt>
  654. <dd><code>newCp</code> - the constant pool table used by the new copy.</dd>
  655. <dd><code>classnames</code> - should be null.</dd>
  656. </dl>
  657. </li>
  658. </ul>
  659. </li>
  660. </ul>
  661. </li>
  662. </ul>
  663. </div>
  664. </div>
  665. <!-- ========= END OF CLASS DATA ========= -->
  666. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  667. <div class="bottomNav"><a name="navbar.bottom">
  668. <!-- -->
  669. </a>
  670. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  671. <a name="navbar.bottom.firstrow">
  672. <!-- -->
  673. </a>
  674. <ul class="navList" title="Navigation">
  675. <li><a href="../../overview-summary.html">Overview</a></li>
  676. <li><a href="package-summary.html">Package</a></li>
  677. <li class="navBarCell1Rev">Class</li>
  678. <li><a href="class-use/LocalVariableAttribute.html">Use</a></li>
  679. <li><a href="package-tree.html">Tree</a></li>
  680. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  681. <li><a href="../../index-all.html">Index</a></li>
  682. </ul>
  683. </div>
  684. <div class="subNav">
  685. <ul class="navList">
  686. <li><a href="../../javassist/bytecode/LineNumberAttribute.Pc.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  687. <li><a href="../../javassist/bytecode/LocalVariableTypeAttribute.html" title="class in javassist.bytecode"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  688. </ul>
  689. <ul class="navList">
  690. <li><a href="../../index.html?javassist/bytecode/LocalVariableAttribute.html" target="_top">Frames</a></li>
  691. <li><a href="LocalVariableAttribute.html" target="_top">No&nbsp;Frames</a></li>
  692. </ul>
  693. <ul class="navList" id="allclasses_navbar_bottom">
  694. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  695. </ul>
  696. <div>
  697. <script type="text/javascript"><!--
  698. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  699. if(window==top) {
  700. allClassesLink.style.display = "block";
  701. }
  702. else {
  703. allClassesLink.style.display = "none";
  704. }
  705. //-->
  706. </script>
  707. <noscript>
  708. <div>JavaScript is disabled on your browser.</div>
  709. </noscript>
  710. </div>
  711. <div>
  712. <ul class="subNavList">
  713. <li>Summary:&nbsp;</li>
  714. <li>Nested&nbsp;|&nbsp;</li>
  715. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  716. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  717. <li><a href="#method.summary">Method</a></li>
  718. </ul>
  719. <ul class="subNavList">
  720. <li>Detail:&nbsp;</li>
  721. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  722. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  723. <li><a href="#method.detail">Method</a></li>
  724. </ul>
  725. </div>
  726. <a name="skip.navbar.bottom">
  727. <!-- -->
  728. </a></div>
  729. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  730. <p class="legalCopy"><small><i>Javassist, a Java-bytecode translator toolkit.<br>
  731. Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i></small></p>
  732. </body>
  733. </html>