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.

Modifier.html 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  1. <!DOCTYPE HTML>
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (11) on Sat May 08 11:16:00 JST 2021 -->
  6. <title>Modifier (Javassist API)</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <meta name="dc.created" content="2021-05-08">
  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-3.3.1.js"></script>
  18. <script type="text/javascript" src="../jquery/jquery-migrate-3.0.1.js"></script>
  19. <script type="text/javascript" src="../jquery/jquery-ui.js"></script>
  20. </head>
  21. <body>
  22. <script type="text/javascript"><!--
  23. try {
  24. if (location.href.indexOf('is-external=true') == -1) {
  25. parent.document.title="Modifier (Javassist API)";
  26. }
  27. }
  28. catch(err) {
  29. }
  30. //-->
  31. var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9};
  32. var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
  33. var altColor = "altColor";
  34. var rowColor = "rowColor";
  35. var tableTab = "tableTab";
  36. var activeTableTab = "activeTableTab";
  37. var pathtoroot = "../";
  38. var useModuleDirectories = true;
  39. loadScripts(document, 'script');</script>
  40. <noscript>
  41. <div>JavaScript is disabled on your browser.</div>
  42. </noscript>
  43. <header role="banner">
  44. <nav role="navigation">
  45. <div class="fixedNav">
  46. <!-- ========= START OF TOP NAVBAR ======= -->
  47. <div class="topNav"><a id="navbar.top">
  48. <!-- -->
  49. </a>
  50. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  51. <a id="navbar.top.firstrow">
  52. <!-- -->
  53. </a>
  54. <ul class="navList" title="Navigation">
  55. <li><a href="../index.html">Overview</a></li>
  56. <li><a href="package-summary.html">Package</a></li>
  57. <li class="navBarCell1Rev">Class</li>
  58. <li><a href="class-use/Modifier.html">Use</a></li>
  59. <li><a href="package-tree.html">Tree</a></li>
  60. <li><a href="../deprecated-list.html">Deprecated</a></li>
  61. <li><a href="../index-all.html">Index</a></li>
  62. </ul>
  63. </div>
  64. <div class="subNav">
  65. <ul class="navList" id="allclasses_navbar_top">
  66. <li><a href="../allclasses.html">All&nbsp;Classes</a></li>
  67. </ul>
  68. <ul class="navListSearch">
  69. <li><label for="search">SEARCH:</label>
  70. <input type="text" id="search" value="search" disabled="disabled">
  71. <input type="reset" id="reset" value="reset" disabled="disabled">
  72. </li>
  73. </ul>
  74. <div>
  75. <script type="text/javascript"><!--
  76. allClassesLink = document.getElementById("allclasses_navbar_top");
  77. if(window==top) {
  78. allClassesLink.style.display = "block";
  79. }
  80. else {
  81. allClassesLink.style.display = "none";
  82. }
  83. //-->
  84. </script>
  85. <noscript>
  86. <div>JavaScript is disabled on your browser.</div>
  87. </noscript>
  88. </div>
  89. <div>
  90. <ul class="subNavList">
  91. <li>Summary:&nbsp;</li>
  92. <li>Nested&nbsp;|&nbsp;</li>
  93. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  94. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  95. <li><a href="#method.summary">Method</a></li>
  96. </ul>
  97. <ul class="subNavList">
  98. <li>Detail:&nbsp;</li>
  99. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  100. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  101. <li><a href="#method.detail">Method</a></li>
  102. </ul>
  103. </div>
  104. <a id="skip.navbar.top">
  105. <!-- -->
  106. </a></div>
  107. <!-- ========= END OF TOP NAVBAR ========= -->
  108. </div>
  109. <div class="navPadding">&nbsp;</div>
  110. <script type="text/javascript"><!--
  111. $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  112. //-->
  113. </script>
  114. </nav>
  115. </header>
  116. <!-- ======== START OF CLASS DATA ======== -->
  117. <main role="main">
  118. <div class="header">
  119. <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">javassist</a></div>
  120. <h2 title="Class Modifier" class="title">Class Modifier</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.Modifier</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">Modifier</span>
  136. extends java.lang.Object</pre>
  137. <div class="block">The Modifier class provides static methods and constants to decode
  138. class and member access modifiers. The constant values are equivalent
  139. to the corresponding values in <code>javassist.bytecode.AccessFlag</code>.
  140. <p>All the methods/constants in this class are compatible with
  141. ones in <code>java.lang.reflect.Modifier</code>.</div>
  142. <dl>
  143. <dt><span class="seeLabel">See Also:</span></dt>
  144. <dd><a href="CtClass.html#getModifiers()"><code>CtClass.getModifiers()</code></a></dd>
  145. </dl>
  146. </li>
  147. </ul>
  148. </div>
  149. <div class="summary">
  150. <ul class="blockList">
  151. <li class="blockList">
  152. <!-- =========== FIELD SUMMARY =========== -->
  153. <section role="region">
  154. <ul class="blockList">
  155. <li class="blockList"><a id="field.summary">
  156. <!-- -->
  157. </a>
  158. <h3>Field Summary</h3>
  159. <table class="memberSummary">
  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 int</code></td>
  168. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ABSTRACT">ABSTRACT</a></span></code></th>
  169. <td class="colLast">&nbsp;</td>
  170. </tr>
  171. <tr class="rowColor">
  172. <td class="colFirst"><code>static int</code></td>
  173. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ANNOTATION">ANNOTATION</a></span></code></th>
  174. <td class="colLast">&nbsp;</td>
  175. </tr>
  176. <tr class="altColor">
  177. <td class="colFirst"><code>static int</code></td>
  178. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ENUM">ENUM</a></span></code></th>
  179. <td class="colLast">&nbsp;</td>
  180. </tr>
  181. <tr class="rowColor">
  182. <td class="colFirst"><code>static int</code></td>
  183. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#FINAL">FINAL</a></span></code></th>
  184. <td class="colLast">&nbsp;</td>
  185. </tr>
  186. <tr class="altColor">
  187. <td class="colFirst"><code>static int</code></td>
  188. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#INTERFACE">INTERFACE</a></span></code></th>
  189. <td class="colLast">&nbsp;</td>
  190. </tr>
  191. <tr class="rowColor">
  192. <td class="colFirst"><code>static int</code></td>
  193. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#NATIVE">NATIVE</a></span></code></th>
  194. <td class="colLast">&nbsp;</td>
  195. </tr>
  196. <tr class="altColor">
  197. <td class="colFirst"><code>static int</code></td>
  198. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PRIVATE">PRIVATE</a></span></code></th>
  199. <td class="colLast">&nbsp;</td>
  200. </tr>
  201. <tr class="rowColor">
  202. <td class="colFirst"><code>static int</code></td>
  203. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PROTECTED">PROTECTED</a></span></code></th>
  204. <td class="colLast">&nbsp;</td>
  205. </tr>
  206. <tr class="altColor">
  207. <td class="colFirst"><code>static int</code></td>
  208. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PUBLIC">PUBLIC</a></span></code></th>
  209. <td class="colLast">&nbsp;</td>
  210. </tr>
  211. <tr class="rowColor">
  212. <td class="colFirst"><code>static int</code></td>
  213. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#STATIC">STATIC</a></span></code></th>
  214. <td class="colLast">&nbsp;</td>
  215. </tr>
  216. <tr class="altColor">
  217. <td class="colFirst"><code>static int</code></td>
  218. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#STRICT">STRICT</a></span></code></th>
  219. <td class="colLast">&nbsp;</td>
  220. </tr>
  221. <tr class="rowColor">
  222. <td class="colFirst"><code>static int</code></td>
  223. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SYNCHRONIZED">SYNCHRONIZED</a></span></code></th>
  224. <td class="colLast">&nbsp;</td>
  225. </tr>
  226. <tr class="altColor">
  227. <td class="colFirst"><code>static int</code></td>
  228. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TRANSIENT">TRANSIENT</a></span></code></th>
  229. <td class="colLast">&nbsp;</td>
  230. </tr>
  231. <tr class="rowColor">
  232. <td class="colFirst"><code>static int</code></td>
  233. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#VARARGS">VARARGS</a></span></code></th>
  234. <td class="colLast">&nbsp;</td>
  235. </tr>
  236. <tr class="altColor">
  237. <td class="colFirst"><code>static int</code></td>
  238. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#VOLATILE">VOLATILE</a></span></code></th>
  239. <td class="colLast">&nbsp;</td>
  240. </tr>
  241. </table>
  242. </li>
  243. </ul>
  244. </section>
  245. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  246. <section role="region">
  247. <ul class="blockList">
  248. <li class="blockList"><a id="constructor.summary">
  249. <!-- -->
  250. </a>
  251. <h3>Constructor Summary</h3>
  252. <table class="memberSummary">
  253. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  254. <tr>
  255. <th class="colFirst" scope="col">Constructor</th>
  256. <th class="colLast" scope="col">Description</th>
  257. </tr>
  258. <tr class="altColor">
  259. <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">Modifier</a></span>()</code></th>
  260. <td class="colLast">&nbsp;</td>
  261. </tr>
  262. </table>
  263. </li>
  264. </ul>
  265. </section>
  266. <!-- ========== METHOD SUMMARY =========== -->
  267. <section role="region">
  268. <ul class="blockList">
  269. <li class="blockList"><a id="method.summary">
  270. <!-- -->
  271. </a>
  272. <h3>Method Summary</h3>
  273. <table class="memberSummary">
  274. <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>
  275. <tr>
  276. <th class="colFirst" scope="col">Modifier and Type</th>
  277. <th class="colSecond" scope="col">Method</th>
  278. <th class="colLast" scope="col">Description</th>
  279. </tr>
  280. <tr id="i0" class="altColor">
  281. <td class="colFirst"><code>static int</code></td>
  282. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clear(int,int)">clear</a></span>&#8203;(int&nbsp;mod,
  283. int&nbsp;clearBit)</code></th>
  284. <td class="colLast">
  285. <div class="block">Clears a specified bit in <code>mod</code>.</div>
  286. </td>
  287. </tr>
  288. <tr id="i1" class="rowColor">
  289. <td class="colFirst"><code>static boolean</code></td>
  290. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isAbstract(int)">isAbstract</a></span>&#8203;(int&nbsp;mod)</code></th>
  291. <td class="colLast">
  292. <div class="block">Returns true if the modifiers include the <code>abstract</code>
  293. modifier.</div>
  294. </td>
  295. </tr>
  296. <tr id="i2" class="altColor">
  297. <td class="colFirst"><code>static boolean</code></td>
  298. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isAnnotation(int)">isAnnotation</a></span>&#8203;(int&nbsp;mod)</code></th>
  299. <td class="colLast">
  300. <div class="block">Returns true if the modifiers include the <code>annotation</code>
  301. modifier.</div>
  302. </td>
  303. </tr>
  304. <tr id="i3" class="rowColor">
  305. <td class="colFirst"><code>static boolean</code></td>
  306. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isEnum(int)">isEnum</a></span>&#8203;(int&nbsp;mod)</code></th>
  307. <td class="colLast">
  308. <div class="block">Returns true if the modifiers include the <code>enum</code>
  309. modifier.</div>
  310. </td>
  311. </tr>
  312. <tr id="i4" class="altColor">
  313. <td class="colFirst"><code>static boolean</code></td>
  314. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isFinal(int)">isFinal</a></span>&#8203;(int&nbsp;mod)</code></th>
  315. <td class="colLast">
  316. <div class="block">Returns true if the modifiers include the <code>final</code>
  317. modifier.</div>
  318. </td>
  319. </tr>
  320. <tr id="i5" class="rowColor">
  321. <td class="colFirst"><code>static boolean</code></td>
  322. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isInterface(int)">isInterface</a></span>&#8203;(int&nbsp;mod)</code></th>
  323. <td class="colLast">
  324. <div class="block">Returns true if the modifiers include the <code>interface</code>
  325. modifier.</div>
  326. </td>
  327. </tr>
  328. <tr id="i6" class="altColor">
  329. <td class="colFirst"><code>static boolean</code></td>
  330. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNative(int)">isNative</a></span>&#8203;(int&nbsp;mod)</code></th>
  331. <td class="colLast">
  332. <div class="block">Returns true if the modifiers include the <code>native</code>
  333. modifier.</div>
  334. </td>
  335. </tr>
  336. <tr id="i7" class="rowColor">
  337. <td class="colFirst"><code>static boolean</code></td>
  338. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isPackage(int)">isPackage</a></span>&#8203;(int&nbsp;mod)</code></th>
  339. <td class="colLast">
  340. <div class="block">Returns true if the modifiers do not include either
  341. <code>public</code>, <code>protected</code>, or <code>private</code>.</div>
  342. </td>
  343. </tr>
  344. <tr id="i8" class="altColor">
  345. <td class="colFirst"><code>static boolean</code></td>
  346. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isPrivate(int)">isPrivate</a></span>&#8203;(int&nbsp;mod)</code></th>
  347. <td class="colLast">
  348. <div class="block">Returns true if the modifiers include the <code>private</code>
  349. modifier.</div>
  350. </td>
  351. </tr>
  352. <tr id="i9" class="rowColor">
  353. <td class="colFirst"><code>static boolean</code></td>
  354. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isProtected(int)">isProtected</a></span>&#8203;(int&nbsp;mod)</code></th>
  355. <td class="colLast">
  356. <div class="block">Returns true if the modifiers include the <code>protected</code>
  357. modifier.</div>
  358. </td>
  359. </tr>
  360. <tr id="i10" class="altColor">
  361. <td class="colFirst"><code>static boolean</code></td>
  362. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isPublic(int)">isPublic</a></span>&#8203;(int&nbsp;mod)</code></th>
  363. <td class="colLast">
  364. <div class="block">Returns true if the modifiers include the <code>public</code>
  365. modifier.</div>
  366. </td>
  367. </tr>
  368. <tr id="i11" class="rowColor">
  369. <td class="colFirst"><code>static boolean</code></td>
  370. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isStatic(int)">isStatic</a></span>&#8203;(int&nbsp;mod)</code></th>
  371. <td class="colLast">
  372. <div class="block">Returns true if the modifiers include the <code>static</code>
  373. modifier.</div>
  374. </td>
  375. </tr>
  376. <tr id="i12" class="altColor">
  377. <td class="colFirst"><code>static boolean</code></td>
  378. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isStrict(int)">isStrict</a></span>&#8203;(int&nbsp;mod)</code></th>
  379. <td class="colLast">
  380. <div class="block">Returns true if the modifiers include the <code>strictfp</code>
  381. modifier.</div>
  382. </td>
  383. </tr>
  384. <tr id="i13" class="rowColor">
  385. <td class="colFirst"><code>static boolean</code></td>
  386. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isSynchronized(int)">isSynchronized</a></span>&#8203;(int&nbsp;mod)</code></th>
  387. <td class="colLast">
  388. <div class="block">Returns true if the modifiers include the <code>synchronized</code>
  389. modifier.</div>
  390. </td>
  391. </tr>
  392. <tr id="i14" class="altColor">
  393. <td class="colFirst"><code>static boolean</code></td>
  394. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isTransient(int)">isTransient</a></span>&#8203;(int&nbsp;mod)</code></th>
  395. <td class="colLast">
  396. <div class="block">Returns true if the modifiers include the <code>transient</code>
  397. modifier.</div>
  398. </td>
  399. </tr>
  400. <tr id="i15" class="rowColor">
  401. <td class="colFirst"><code>static boolean</code></td>
  402. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isVarArgs(int)">isVarArgs</a></span>&#8203;(int&nbsp;mod)</code></th>
  403. <td class="colLast">
  404. <div class="block">Returns true if the modifiers include the <code>varargs</code>
  405. (variable number of arguments) modifier.</div>
  406. </td>
  407. </tr>
  408. <tr id="i16" class="altColor">
  409. <td class="colFirst"><code>static boolean</code></td>
  410. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isVolatile(int)">isVolatile</a></span>&#8203;(int&nbsp;mod)</code></th>
  411. <td class="colLast">
  412. <div class="block">Returns true if the modifiers include the <code>volatile</code>
  413. modifier.</div>
  414. </td>
  415. </tr>
  416. <tr id="i17" class="rowColor">
  417. <td class="colFirst"><code>static int</code></td>
  418. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPackage(int)">setPackage</a></span>&#8203;(int&nbsp;mod)</code></th>
  419. <td class="colLast">
  420. <div class="block">Clears the public, protected, and private bits.</div>
  421. </td>
  422. </tr>
  423. <tr id="i18" class="altColor">
  424. <td class="colFirst"><code>static int</code></td>
  425. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPrivate(int)">setPrivate</a></span>&#8203;(int&nbsp;mod)</code></th>
  426. <td class="colLast">
  427. <div class="block">Truns the private bit on.</div>
  428. </td>
  429. </tr>
  430. <tr id="i19" class="rowColor">
  431. <td class="colFirst"><code>static int</code></td>
  432. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setProtected(int)">setProtected</a></span>&#8203;(int&nbsp;mod)</code></th>
  433. <td class="colLast">
  434. <div class="block">Truns the protected bit on.</div>
  435. </td>
  436. </tr>
  437. <tr id="i20" class="altColor">
  438. <td class="colFirst"><code>static int</code></td>
  439. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPublic(int)">setPublic</a></span>&#8203;(int&nbsp;mod)</code></th>
  440. <td class="colLast">
  441. <div class="block">Truns the public bit on.</div>
  442. </td>
  443. </tr>
  444. <tr id="i21" class="rowColor">
  445. <td class="colFirst"><code>static java.lang.String</code></td>
  446. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString(int)">toString</a></span>&#8203;(int&nbsp;mod)</code></th>
  447. <td class="colLast">
  448. <div class="block">Return a string describing the access modifier flags in
  449. the specified modifier.</div>
  450. </td>
  451. </tr>
  452. </table>
  453. <ul class="blockList">
  454. <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
  455. <!-- -->
  456. </a>
  457. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  458. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  459. </ul>
  460. </li>
  461. </ul>
  462. </section>
  463. </li>
  464. </ul>
  465. </div>
  466. <div class="details">
  467. <ul class="blockList">
  468. <li class="blockList">
  469. <!-- ============ FIELD DETAIL =========== -->
  470. <section role="region">
  471. <ul class="blockList">
  472. <li class="blockList"><a id="field.detail">
  473. <!-- -->
  474. </a>
  475. <h3>Field Detail</h3>
  476. <a id="PUBLIC">
  477. <!-- -->
  478. </a>
  479. <ul class="blockList">
  480. <li class="blockList">
  481. <h4>PUBLIC</h4>
  482. <pre>public static final&nbsp;int PUBLIC</pre>
  483. <dl>
  484. <dt><span class="seeLabel">See Also:</span></dt>
  485. <dd><a href="../constant-values.html#javassist.Modifier.PUBLIC">Constant Field Values</a></dd>
  486. </dl>
  487. </li>
  488. </ul>
  489. <a id="PRIVATE">
  490. <!-- -->
  491. </a>
  492. <ul class="blockList">
  493. <li class="blockList">
  494. <h4>PRIVATE</h4>
  495. <pre>public static final&nbsp;int PRIVATE</pre>
  496. <dl>
  497. <dt><span class="seeLabel">See Also:</span></dt>
  498. <dd><a href="../constant-values.html#javassist.Modifier.PRIVATE">Constant Field Values</a></dd>
  499. </dl>
  500. </li>
  501. </ul>
  502. <a id="PROTECTED">
  503. <!-- -->
  504. </a>
  505. <ul class="blockList">
  506. <li class="blockList">
  507. <h4>PROTECTED</h4>
  508. <pre>public static final&nbsp;int PROTECTED</pre>
  509. <dl>
  510. <dt><span class="seeLabel">See Also:</span></dt>
  511. <dd><a href="../constant-values.html#javassist.Modifier.PROTECTED">Constant Field Values</a></dd>
  512. </dl>
  513. </li>
  514. </ul>
  515. <a id="STATIC">
  516. <!-- -->
  517. </a>
  518. <ul class="blockList">
  519. <li class="blockList">
  520. <h4>STATIC</h4>
  521. <pre>public static final&nbsp;int STATIC</pre>
  522. <dl>
  523. <dt><span class="seeLabel">See Also:</span></dt>
  524. <dd><a href="../constant-values.html#javassist.Modifier.STATIC">Constant Field Values</a></dd>
  525. </dl>
  526. </li>
  527. </ul>
  528. <a id="FINAL">
  529. <!-- -->
  530. </a>
  531. <ul class="blockList">
  532. <li class="blockList">
  533. <h4>FINAL</h4>
  534. <pre>public static final&nbsp;int FINAL</pre>
  535. <dl>
  536. <dt><span class="seeLabel">See Also:</span></dt>
  537. <dd><a href="../constant-values.html#javassist.Modifier.FINAL">Constant Field Values</a></dd>
  538. </dl>
  539. </li>
  540. </ul>
  541. <a id="SYNCHRONIZED">
  542. <!-- -->
  543. </a>
  544. <ul class="blockList">
  545. <li class="blockList">
  546. <h4>SYNCHRONIZED</h4>
  547. <pre>public static final&nbsp;int SYNCHRONIZED</pre>
  548. <dl>
  549. <dt><span class="seeLabel">See Also:</span></dt>
  550. <dd><a href="../constant-values.html#javassist.Modifier.SYNCHRONIZED">Constant Field Values</a></dd>
  551. </dl>
  552. </li>
  553. </ul>
  554. <a id="VOLATILE">
  555. <!-- -->
  556. </a>
  557. <ul class="blockList">
  558. <li class="blockList">
  559. <h4>VOLATILE</h4>
  560. <pre>public static final&nbsp;int VOLATILE</pre>
  561. <dl>
  562. <dt><span class="seeLabel">See Also:</span></dt>
  563. <dd><a href="../constant-values.html#javassist.Modifier.VOLATILE">Constant Field Values</a></dd>
  564. </dl>
  565. </li>
  566. </ul>
  567. <a id="VARARGS">
  568. <!-- -->
  569. </a>
  570. <ul class="blockList">
  571. <li class="blockList">
  572. <h4>VARARGS</h4>
  573. <pre>public static final&nbsp;int VARARGS</pre>
  574. <dl>
  575. <dt><span class="seeLabel">See Also:</span></dt>
  576. <dd><a href="../constant-values.html#javassist.Modifier.VARARGS">Constant Field Values</a></dd>
  577. </dl>
  578. </li>
  579. </ul>
  580. <a id="TRANSIENT">
  581. <!-- -->
  582. </a>
  583. <ul class="blockList">
  584. <li class="blockList">
  585. <h4>TRANSIENT</h4>
  586. <pre>public static final&nbsp;int TRANSIENT</pre>
  587. <dl>
  588. <dt><span class="seeLabel">See Also:</span></dt>
  589. <dd><a href="../constant-values.html#javassist.Modifier.TRANSIENT">Constant Field Values</a></dd>
  590. </dl>
  591. </li>
  592. </ul>
  593. <a id="NATIVE">
  594. <!-- -->
  595. </a>
  596. <ul class="blockList">
  597. <li class="blockList">
  598. <h4>NATIVE</h4>
  599. <pre>public static final&nbsp;int NATIVE</pre>
  600. <dl>
  601. <dt><span class="seeLabel">See Also:</span></dt>
  602. <dd><a href="../constant-values.html#javassist.Modifier.NATIVE">Constant Field Values</a></dd>
  603. </dl>
  604. </li>
  605. </ul>
  606. <a id="INTERFACE">
  607. <!-- -->
  608. </a>
  609. <ul class="blockList">
  610. <li class="blockList">
  611. <h4>INTERFACE</h4>
  612. <pre>public static final&nbsp;int INTERFACE</pre>
  613. <dl>
  614. <dt><span class="seeLabel">See Also:</span></dt>
  615. <dd><a href="../constant-values.html#javassist.Modifier.INTERFACE">Constant Field Values</a></dd>
  616. </dl>
  617. </li>
  618. </ul>
  619. <a id="ABSTRACT">
  620. <!-- -->
  621. </a>
  622. <ul class="blockList">
  623. <li class="blockList">
  624. <h4>ABSTRACT</h4>
  625. <pre>public static final&nbsp;int ABSTRACT</pre>
  626. <dl>
  627. <dt><span class="seeLabel">See Also:</span></dt>
  628. <dd><a href="../constant-values.html#javassist.Modifier.ABSTRACT">Constant Field Values</a></dd>
  629. </dl>
  630. </li>
  631. </ul>
  632. <a id="STRICT">
  633. <!-- -->
  634. </a>
  635. <ul class="blockList">
  636. <li class="blockList">
  637. <h4>STRICT</h4>
  638. <pre>public static final&nbsp;int STRICT</pre>
  639. <dl>
  640. <dt><span class="seeLabel">See Also:</span></dt>
  641. <dd><a href="../constant-values.html#javassist.Modifier.STRICT">Constant Field Values</a></dd>
  642. </dl>
  643. </li>
  644. </ul>
  645. <a id="ANNOTATION">
  646. <!-- -->
  647. </a>
  648. <ul class="blockList">
  649. <li class="blockList">
  650. <h4>ANNOTATION</h4>
  651. <pre>public static final&nbsp;int ANNOTATION</pre>
  652. <dl>
  653. <dt><span class="seeLabel">See Also:</span></dt>
  654. <dd><a href="../constant-values.html#javassist.Modifier.ANNOTATION">Constant Field Values</a></dd>
  655. </dl>
  656. </li>
  657. </ul>
  658. <a id="ENUM">
  659. <!-- -->
  660. </a>
  661. <ul class="blockListLast">
  662. <li class="blockList">
  663. <h4>ENUM</h4>
  664. <pre>public static final&nbsp;int ENUM</pre>
  665. <dl>
  666. <dt><span class="seeLabel">See Also:</span></dt>
  667. <dd><a href="../constant-values.html#javassist.Modifier.ENUM">Constant Field Values</a></dd>
  668. </dl>
  669. </li>
  670. </ul>
  671. </li>
  672. </ul>
  673. </section>
  674. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  675. <section role="region">
  676. <ul class="blockList">
  677. <li class="blockList"><a id="constructor.detail">
  678. <!-- -->
  679. </a>
  680. <h3>Constructor Detail</h3>
  681. <a id="&lt;init&gt;()">
  682. <!-- -->
  683. </a>
  684. <ul class="blockListLast">
  685. <li class="blockList">
  686. <h4>Modifier</h4>
  687. <pre>public&nbsp;Modifier()</pre>
  688. </li>
  689. </ul>
  690. </li>
  691. </ul>
  692. </section>
  693. <!-- ============ METHOD DETAIL ========== -->
  694. <section role="region">
  695. <ul class="blockList">
  696. <li class="blockList"><a id="method.detail">
  697. <!-- -->
  698. </a>
  699. <h3>Method Detail</h3>
  700. <a id="isPublic(int)">
  701. <!-- -->
  702. </a>
  703. <ul class="blockList">
  704. <li class="blockList">
  705. <h4>isPublic</h4>
  706. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isPublic&#8203;(int&nbsp;mod)</pre>
  707. <div class="block">Returns true if the modifiers include the <code>public</code>
  708. modifier.</div>
  709. </li>
  710. </ul>
  711. <a id="isPrivate(int)">
  712. <!-- -->
  713. </a>
  714. <ul class="blockList">
  715. <li class="blockList">
  716. <h4>isPrivate</h4>
  717. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isPrivate&#8203;(int&nbsp;mod)</pre>
  718. <div class="block">Returns true if the modifiers include the <code>private</code>
  719. modifier.</div>
  720. </li>
  721. </ul>
  722. <a id="isProtected(int)">
  723. <!-- -->
  724. </a>
  725. <ul class="blockList">
  726. <li class="blockList">
  727. <h4>isProtected</h4>
  728. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isProtected&#8203;(int&nbsp;mod)</pre>
  729. <div class="block">Returns true if the modifiers include the <code>protected</code>
  730. modifier.</div>
  731. </li>
  732. </ul>
  733. <a id="isPackage(int)">
  734. <!-- -->
  735. </a>
  736. <ul class="blockList">
  737. <li class="blockList">
  738. <h4>isPackage</h4>
  739. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isPackage&#8203;(int&nbsp;mod)</pre>
  740. <div class="block">Returns true if the modifiers do not include either
  741. <code>public</code>, <code>protected</code>, or <code>private</code>.</div>
  742. </li>
  743. </ul>
  744. <a id="isStatic(int)">
  745. <!-- -->
  746. </a>
  747. <ul class="blockList">
  748. <li class="blockList">
  749. <h4>isStatic</h4>
  750. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isStatic&#8203;(int&nbsp;mod)</pre>
  751. <div class="block">Returns true if the modifiers include the <code>static</code>
  752. modifier.</div>
  753. </li>
  754. </ul>
  755. <a id="isFinal(int)">
  756. <!-- -->
  757. </a>
  758. <ul class="blockList">
  759. <li class="blockList">
  760. <h4>isFinal</h4>
  761. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isFinal&#8203;(int&nbsp;mod)</pre>
  762. <div class="block">Returns true if the modifiers include the <code>final</code>
  763. modifier.</div>
  764. </li>
  765. </ul>
  766. <a id="isSynchronized(int)">
  767. <!-- -->
  768. </a>
  769. <ul class="blockList">
  770. <li class="blockList">
  771. <h4>isSynchronized</h4>
  772. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isSynchronized&#8203;(int&nbsp;mod)</pre>
  773. <div class="block">Returns true if the modifiers include the <code>synchronized</code>
  774. modifier.</div>
  775. </li>
  776. </ul>
  777. <a id="isVolatile(int)">
  778. <!-- -->
  779. </a>
  780. <ul class="blockList">
  781. <li class="blockList">
  782. <h4>isVolatile</h4>
  783. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isVolatile&#8203;(int&nbsp;mod)</pre>
  784. <div class="block">Returns true if the modifiers include the <code>volatile</code>
  785. modifier.</div>
  786. </li>
  787. </ul>
  788. <a id="isTransient(int)">
  789. <!-- -->
  790. </a>
  791. <ul class="blockList">
  792. <li class="blockList">
  793. <h4>isTransient</h4>
  794. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isTransient&#8203;(int&nbsp;mod)</pre>
  795. <div class="block">Returns true if the modifiers include the <code>transient</code>
  796. modifier.</div>
  797. </li>
  798. </ul>
  799. <a id="isNative(int)">
  800. <!-- -->
  801. </a>
  802. <ul class="blockList">
  803. <li class="blockList">
  804. <h4>isNative</h4>
  805. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isNative&#8203;(int&nbsp;mod)</pre>
  806. <div class="block">Returns true if the modifiers include the <code>native</code>
  807. modifier.</div>
  808. </li>
  809. </ul>
  810. <a id="isInterface(int)">
  811. <!-- -->
  812. </a>
  813. <ul class="blockList">
  814. <li class="blockList">
  815. <h4>isInterface</h4>
  816. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isInterface&#8203;(int&nbsp;mod)</pre>
  817. <div class="block">Returns true if the modifiers include the <code>interface</code>
  818. modifier.</div>
  819. </li>
  820. </ul>
  821. <a id="isAnnotation(int)">
  822. <!-- -->
  823. </a>
  824. <ul class="blockList">
  825. <li class="blockList">
  826. <h4>isAnnotation</h4>
  827. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isAnnotation&#8203;(int&nbsp;mod)</pre>
  828. <div class="block">Returns true if the modifiers include the <code>annotation</code>
  829. modifier.</div>
  830. <dl>
  831. <dt><span class="simpleTagLabel">Since:</span></dt>
  832. <dd>3.2</dd>
  833. </dl>
  834. </li>
  835. </ul>
  836. <a id="isEnum(int)">
  837. <!-- -->
  838. </a>
  839. <ul class="blockList">
  840. <li class="blockList">
  841. <h4>isEnum</h4>
  842. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isEnum&#8203;(int&nbsp;mod)</pre>
  843. <div class="block">Returns true if the modifiers include the <code>enum</code>
  844. modifier.</div>
  845. <dl>
  846. <dt><span class="simpleTagLabel">Since:</span></dt>
  847. <dd>3.2</dd>
  848. </dl>
  849. </li>
  850. </ul>
  851. <a id="isAbstract(int)">
  852. <!-- -->
  853. </a>
  854. <ul class="blockList">
  855. <li class="blockList">
  856. <h4>isAbstract</h4>
  857. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isAbstract&#8203;(int&nbsp;mod)</pre>
  858. <div class="block">Returns true if the modifiers include the <code>abstract</code>
  859. modifier.</div>
  860. </li>
  861. </ul>
  862. <a id="isStrict(int)">
  863. <!-- -->
  864. </a>
  865. <ul class="blockList">
  866. <li class="blockList">
  867. <h4>isStrict</h4>
  868. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isStrict&#8203;(int&nbsp;mod)</pre>
  869. <div class="block">Returns true if the modifiers include the <code>strictfp</code>
  870. modifier.</div>
  871. </li>
  872. </ul>
  873. <a id="isVarArgs(int)">
  874. <!-- -->
  875. </a>
  876. <ul class="blockList">
  877. <li class="blockList">
  878. <h4>isVarArgs</h4>
  879. <pre class="methodSignature">public static&nbsp;boolean&nbsp;isVarArgs&#8203;(int&nbsp;mod)</pre>
  880. <div class="block">Returns true if the modifiers include the <code>varargs</code>
  881. (variable number of arguments) modifier.</div>
  882. </li>
  883. </ul>
  884. <a id="setPublic(int)">
  885. <!-- -->
  886. </a>
  887. <ul class="blockList">
  888. <li class="blockList">
  889. <h4>setPublic</h4>
  890. <pre class="methodSignature">public static&nbsp;int&nbsp;setPublic&#8203;(int&nbsp;mod)</pre>
  891. <div class="block">Truns the public bit on. The protected and private bits are
  892. cleared.</div>
  893. </li>
  894. </ul>
  895. <a id="setProtected(int)">
  896. <!-- -->
  897. </a>
  898. <ul class="blockList">
  899. <li class="blockList">
  900. <h4>setProtected</h4>
  901. <pre class="methodSignature">public static&nbsp;int&nbsp;setProtected&#8203;(int&nbsp;mod)</pre>
  902. <div class="block">Truns the protected bit on. The protected and public bits are
  903. cleared.</div>
  904. </li>
  905. </ul>
  906. <a id="setPrivate(int)">
  907. <!-- -->
  908. </a>
  909. <ul class="blockList">
  910. <li class="blockList">
  911. <h4>setPrivate</h4>
  912. <pre class="methodSignature">public static&nbsp;int&nbsp;setPrivate&#8203;(int&nbsp;mod)</pre>
  913. <div class="block">Truns the private bit on. The protected and private bits are
  914. cleared.</div>
  915. </li>
  916. </ul>
  917. <a id="setPackage(int)">
  918. <!-- -->
  919. </a>
  920. <ul class="blockList">
  921. <li class="blockList">
  922. <h4>setPackage</h4>
  923. <pre class="methodSignature">public static&nbsp;int&nbsp;setPackage&#8203;(int&nbsp;mod)</pre>
  924. <div class="block">Clears the public, protected, and private bits.</div>
  925. </li>
  926. </ul>
  927. <a id="clear(int,int)">
  928. <!-- -->
  929. </a>
  930. <ul class="blockList">
  931. <li class="blockList">
  932. <h4>clear</h4>
  933. <pre class="methodSignature">public static&nbsp;int&nbsp;clear&#8203;(int&nbsp;mod,
  934. int&nbsp;clearBit)</pre>
  935. <div class="block">Clears a specified bit in <code>mod</code>.</div>
  936. </li>
  937. </ul>
  938. <a id="toString(int)">
  939. <!-- -->
  940. </a>
  941. <ul class="blockListLast">
  942. <li class="blockList">
  943. <h4>toString</h4>
  944. <pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;toString&#8203;(int&nbsp;mod)</pre>
  945. <div class="block">Return a string describing the access modifier flags in
  946. the specified modifier.</div>
  947. <dl>
  948. <dt><span class="paramLabel">Parameters:</span></dt>
  949. <dd><code>mod</code> - modifier flags.</dd>
  950. </dl>
  951. </li>
  952. </ul>
  953. </li>
  954. </ul>
  955. </section>
  956. </li>
  957. </ul>
  958. </div>
  959. </div>
  960. </main>
  961. <!-- ========= END OF CLASS DATA ========= -->
  962. <footer role="contentinfo">
  963. <nav role="navigation">
  964. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  965. <div class="bottomNav"><a id="navbar.bottom">
  966. <!-- -->
  967. </a>
  968. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  969. <a id="navbar.bottom.firstrow">
  970. <!-- -->
  971. </a>
  972. <ul class="navList" title="Navigation">
  973. <li><a href="../index.html">Overview</a></li>
  974. <li><a href="package-summary.html">Package</a></li>
  975. <li class="navBarCell1Rev">Class</li>
  976. <li><a href="class-use/Modifier.html">Use</a></li>
  977. <li><a href="package-tree.html">Tree</a></li>
  978. <li><a href="../deprecated-list.html">Deprecated</a></li>
  979. <li><a href="../index-all.html">Index</a></li>
  980. </ul>
  981. </div>
  982. <div class="subNav">
  983. <ul class="navList" id="allclasses_navbar_bottom">
  984. <li><a href="../allclasses.html">All&nbsp;Classes</a></li>
  985. </ul>
  986. <div>
  987. <script type="text/javascript"><!--
  988. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  989. if(window==top) {
  990. allClassesLink.style.display = "block";
  991. }
  992. else {
  993. allClassesLink.style.display = "none";
  994. }
  995. //-->
  996. </script>
  997. <noscript>
  998. <div>JavaScript is disabled on your browser.</div>
  999. </noscript>
  1000. </div>
  1001. <div>
  1002. <ul class="subNavList">
  1003. <li>Summary:&nbsp;</li>
  1004. <li>Nested&nbsp;|&nbsp;</li>
  1005. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  1006. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  1007. <li><a href="#method.summary">Method</a></li>
  1008. </ul>
  1009. <ul class="subNavList">
  1010. <li>Detail:&nbsp;</li>
  1011. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  1012. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  1013. <li><a href="#method.detail">Method</a></li>
  1014. </ul>
  1015. </div>
  1016. <a id="skip.navbar.bottom">
  1017. <!-- -->
  1018. </a></div>
  1019. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1020. </nav>
  1021. <p class="legalCopy"><small><i>Javassist, a Java-bytecode translator toolkit.<br>
  1022. Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i></small></p>
  1023. </footer>
  1024. </body>
  1025. </html>