12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!-- NewPage -->
- <html lang="en">
- <head>
- <!-- Generated by javadoc (10.0.1) on Thu Jun 21 01:52:55 JST 2018 -->
- <title>CtClass (Javassist API)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="date" content="2018-06-21">
- <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
- <link rel="stylesheet" type="text/css" href="../jquery/jquery-ui.css" title="Style">
- <script type="text/javascript" src="../script.js"></script>
- <script type="text/javascript" src="../jquery/jszip/dist/jszip.min.js"></script>
- <script type="text/javascript" src="../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
- <!--[if IE]>
- <script type="text/javascript" src="../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
- <![endif]-->
- <script type="text/javascript" src="../jquery/jquery-1.10.2.js"></script>
- <script type="text/javascript" src="../jquery/jquery-ui.js"></script>
- </head>
- <body>
- <script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="CtClass (Javassist API)";
- }
- }
- catch(err) {
- }
- //-->
- 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,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":42,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":9,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":42,"i87":10,"i88":10,"i89":10,"i90":10};
- var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
- var altColor = "altColor";
- var rowColor = "rowColor";
- var tableTab = "tableTab";
- var activeTableTab = "activeTableTab";
- var pathtoroot = "../";loadScripts(document, 'script');</script>
- <noscript>
- <div>JavaScript is disabled on your browser.</div>
- </noscript>
- <div class="fixedNav">
- <!-- ========= START OF TOP NAVBAR ======= -->
- <div class="topNav"><a name="navbar.top">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
- <a name="navbar.top.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="class-use/CtClass.html">Use</a></li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../deprecated-list.html">Deprecated</a></li>
- <li><a href="../index-all.html">Index</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../javassist/CtBehavior.html" title="class in javassist"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../javassist/CtConstructor.html" title="class in javassist"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../index.html?javassist/CtClass.html" target="_top">Frames</a></li>
- <li><a href="CtClass.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_top">
- <li><a href="../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <ul class="navListSearch">
- <li><label for="search">SEARCH:</label>
- <input type="text" id="search" value="search" disabled="disabled">
- <input type="reset" id="reset" value="reset" disabled="disabled">
- </li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- <noscript>
- <div>JavaScript is disabled on your browser.</div>
- </noscript>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li><a href="#field.summary">Field</a> | </li>
- <li>Constr | </li>
- <li><a href="#method.summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li><a href="#field.detail">Field</a> | </li>
- <li>Constr | </li>
- <li><a href="#method.detail">Method</a></li>
- </ul>
- </div>
- <a name="skip.navbar.top">
- <!-- -->
- </a></div>
- <!-- ========= END OF TOP NAVBAR ========= -->
- </div>
- <div class="navPadding"> </div>
- <script type="text/javascript"><!--
- $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
- //-->
- </script>
- <!-- ======== START OF CLASS DATA ======== -->
- <div class="header">
- <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="../javassist/package-summary.html">javassist</a></div>
- <h2 title="Class CtClass" class="title">Class CtClass</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li>java.lang.Object</li>
- <li>
- <ul class="inheritance">
- <li>javassist.CtClass</li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <dl>
- <dt>Direct Known Subclasses:</dt>
- <dd><code><a href="../javassist/CtPrimitiveType.html" title="class in javassist">CtPrimitiveType</a></code></dd>
- </dl>
- <hr>
- <pre>public abstract class <span class="typeNameLabel">CtClass</span>
- extends java.lang.Object</pre>
- <div class="block">An instance of <code>CtClass</code> represents a class.
- It is obtained from <code>ClassPool</code>.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/ClassPool.html#get-java.lang.String-"><code>ClassPool.get(String)</code></a></dd>
- </dl>
- </li>
- </ul>
- </div>
- <div class="summary">
- <ul class="blockList">
- <li class="blockList">
- <!-- =========== FIELD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.summary">
- <!-- -->
- </a>
- <h3>Field Summary</h3>
- <table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
- <caption><span>Fields</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colFirst" scope="col">Modifier and Type</th>
- <th class="colSecond" scope="col">Field</th>
- <th class="colLast" scope="col">Description</th>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#booleanType">booleanType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>boolean</code> type.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#byteType">byteType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>byte</code> type.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#charType">charType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>char</code> type.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#debugDump">debugDump</a></span></code></th>
- <td class="colLast">
- <div class="block">If the value of this field is not null, then all class
- files modified by Javassist are saved under the directory
- specified by this variable.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#doubleType">doubleType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>double</code> type.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#floatType">floatType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>float</code> type.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#intType">intType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>int</code> type.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#longType">longType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>long</code> type.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#shortType">shortType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>short</code> type.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#version">version</a></span></code></th>
- <td class="colLast">
- <div class="block">The version number of this release.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#voidType">voidType</a></span></code></th>
- <td class="colLast">
- <div class="block">The <code>CtClass</code> object representing
- the <code>void</code> type.</div>
- </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ========== METHOD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.summary">
- <!-- -->
- </a>
- <h3>Method Summary</h3>
- <table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
- <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption>
- <tr>
- <th class="colFirst" scope="col">Modifier and Type</th>
- <th class="colSecond" scope="col">Method</th>
- <th class="colLast" scope="col">Description</th>
- </tr>
- <tr id="i0" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#addConstructor-javassist.CtConstructor-">addConstructor</a></span>​(<a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> c)</code></th>
- <td class="colLast">
- <div class="block">Adds a constructor.</div>
- </td>
- </tr>
- <tr id="i1" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#addField-javassist.CtField-">addField</a></span>​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f)</code></th>
- <td class="colLast">
- <div class="block">Adds a field.</div>
- </td>
- </tr>
- <tr id="i2" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#addField-javassist.CtField-java.lang.String-">addField</a></span>​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f,
- java.lang.String init)</code></th>
- <td class="colLast">
- <div class="block">Adds a field with an initial value.</div>
- </td>
- </tr>
- <tr id="i3" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#addField-javassist.CtField-javassist.CtField.Initializer-">addField</a></span>​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f,
- <a href="../javassist/CtField.Initializer.html" title="class in javassist">CtField.Initializer</a> init)</code></th>
- <td class="colLast">
- <div class="block">Adds a field with an initial value.</div>
- </td>
- </tr>
- <tr id="i4" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#addInterface-javassist.CtClass-">addInterface</a></span>​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> anInterface)</code></th>
- <td class="colLast">
- <div class="block">Adds an interface.</div>
- </td>
- </tr>
- <tr id="i5" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#addMethod-javassist.CtMethod-">addMethod</a></span>​(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> m)</code></th>
- <td class="colLast">
- <div class="block">Adds a method.</div>
- </td>
- </tr>
- <tr id="i6" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#debugWriteFile--">debugWriteFile</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Writes a class file as <code>writeFile()</code> does although this
- method does not prune or freeze the class after writing the class
- file.</div>
- </td>
- </tr>
- <tr id="i7" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#debugWriteFile-java.lang.String-">debugWriteFile</a></span>​(java.lang.String directoryName)</code></th>
- <td class="colLast">
- <div class="block">Writes a class file as <code>writeFile()</code> does although this
- method does not prune or freeze the class after writing the class
- file.</div>
- </td>
- </tr>
- <tr id="i8" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#defrost--">defrost</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Defrosts the class so that the class can be modified again.</div>
- </td>
- </tr>
- <tr id="i9" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#detach--">detach</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Removes this <code>CtClass</code> object from the
- <code>ClassPool</code>.</div>
- </td>
- </tr>
- <tr id="i10" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#freeze--">freeze</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Makes the class frozen.</div>
- </td>
- </tr>
- <tr id="i11" class="rowColor">
- <td class="colFirst"><code>javassist.compiler.AccessorMaker</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getAccessorMaker--">getAccessorMaker</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Undocumented method.</div>
- </td>
- </tr>
- <tr id="i12" class="altColor">
- <td class="colFirst"><code>java.lang.Object</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getAnnotation-java.lang.Class-">getAnnotation</a></span>​(java.lang.Class<?> clz)</code></th>
- <td class="colLast">
- <div class="block">Returns the annotation if the class has the specified annotation type.</div>
- </td>
- </tr>
- <tr id="i13" class="rowColor">
- <td class="colFirst"><code>java.lang.Object[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getAnnotations--">getAnnotations</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns the annotations associated with this class.</div>
- </td>
- </tr>
- <tr id="i14" class="altColor">
- <td class="colFirst"><code>byte[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getAttribute-java.lang.String-">getAttribute</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Obtains an attribute with the given name.</div>
- </td>
- </tr>
- <tr id="i15" class="rowColor">
- <td class="colFirst"><code>java.lang.Object[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getAvailableAnnotations--">getAvailableAnnotations</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns the annotations associated with this class.</div>
- </td>
- </tr>
- <tr id="i16" class="altColor">
- <td class="colFirst"><code><a href="../javassist/bytecode/ClassFile.html" title="class in javassist.bytecode">ClassFile</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getClassFile--">getClassFile</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a class file for this class.</div>
- </td>
- </tr>
- <tr id="i17" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/bytecode/ClassFile.html" title="class in javassist.bytecode">ClassFile</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getClassFile2--">getClassFile2</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a class file for this class (read only).</div>
- </td>
- </tr>
- <tr id="i18" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getClassInitializer--">getClassInitializer</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Gets the class initializer (static constructor)
- declared in the class.</div>
- </td>
- </tr>
- <tr id="i19" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/ClassPool.html" title="class in javassist">ClassPool</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getClassPool--">getClassPool</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a <code>ClassPool</code> for this class.</div>
- </td>
- </tr>
- <tr id="i20" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getComponentType--">getComponentType</a></span>()</code></th>
- <td class="colLast">
- <div class="block">If this object represents an array, this method returns the component
- type of the array.</div>
- </td>
- </tr>
- <tr id="i21" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getConstructor-java.lang.String-">getConstructor</a></span>​(java.lang.String desc)</code></th>
- <td class="colLast">
- <div class="block">Returns the constructor with the given signature,
- which is represented by a character string
- called method descriptor.</div>
- </td>
- </tr>
- <tr id="i22" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getConstructors--">getConstructors</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns an array containing <code>CtConstructor</code> objects
- representing all the non-private constructors of the class.</div>
- </td>
- </tr>
- <tr id="i23" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtBehavior.html" title="class in javassist">CtBehavior</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredBehaviors--">getDeclaredBehaviors</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Gets all the constructors and methods declared in the class.</div>
- </td>
- </tr>
- <tr id="i24" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredClasses--">getDeclaredClasses</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns an array of nested classes declared in the class.</div>
- </td>
- </tr>
- <tr id="i25" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredConstructor-javassist.CtClass:A-">getDeclaredConstructor</a></span>​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] params)</code></th>
- <td class="colLast">
- <div class="block">Returns a constructor receiving the specified parameters.</div>
- </td>
- </tr>
- <tr id="i26" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredConstructors--">getDeclaredConstructors</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Gets all the constructors declared in the class.</div>
- </td>
- </tr>
- <tr id="i27" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtField.html" title="class in javassist">CtField</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredField-java.lang.String-">getDeclaredField</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Retrieves the field with the specified name among the fields
- declared in the class.</div>
- </td>
- </tr>
- <tr id="i28" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtField.html" title="class in javassist">CtField</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredField-java.lang.String-java.lang.String-">getDeclaredField</a></span>​(java.lang.String name,
- java.lang.String desc)</code></th>
- <td class="colLast">
- <div class="block">Retrieves the field with the specified name and type among the fields
- declared in the class.</div>
- </td>
- </tr>
- <tr id="i29" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtField.html" title="class in javassist">CtField</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredFields--">getDeclaredFields</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Gets all the fields declared in the class.</div>
- </td>
- </tr>
- <tr id="i30" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredMethod-java.lang.String-">getDeclaredMethod</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Retrieves the method with the specified name among the methods
- declared in the class.</div>
- </td>
- </tr>
- <tr id="i31" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredMethod-java.lang.String-javassist.CtClass:A-">getDeclaredMethod</a></span>​(java.lang.String name,
- <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] params)</code></th>
- <td class="colLast">
- <div class="block">Retrieves the method with the specified name and parameter types
- among the methods declared in the class.</div>
- </td>
- </tr>
- <tr id="i32" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredMethods--">getDeclaredMethods</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Gets all methods declared in the class.</div>
- </td>
- </tr>
- <tr id="i33" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaredMethods-java.lang.String-">getDeclaredMethods</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Retrieves methods with the specified name among the methods
- declared in the class.</div>
- </td>
- </tr>
- <tr id="i34" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getDeclaringClass--">getDeclaringClass</a></span>()</code></th>
- <td class="colLast">
- <div class="block">If this class is a member class or interface of another class,
- then the class enclosing this class is returned.</div>
- </td>
- </tr>
- <tr id="i35" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtBehavior.html" title="class in javassist">CtBehavior</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getEnclosingBehavior--">getEnclosingBehavior</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns the immediately enclosing method of this class.</div>
- </td>
- </tr>
- <tr id="i36" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getEnclosingMethod--">getEnclosingMethod</a></span>()</code></th>
- <td class="colLast">
- <div class="block"><span class="deprecatedLabel">Deprecated.</span>
- <div class="deprecationComment">The enclosing method might be a constructor.</div>
- </div>
- </td>
- </tr>
- <tr id="i37" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtField.html" title="class in javassist">CtField</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getField-java.lang.String-">getField</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Returns the field with the specified name.</div>
- </td>
- </tr>
- <tr id="i38" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtField.html" title="class in javassist">CtField</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getField-java.lang.String-java.lang.String-">getField</a></span>​(java.lang.String name,
- java.lang.String desc)</code></th>
- <td class="colLast">
- <div class="block">Returns the field with the specified name and type.</div>
- </td>
- </tr>
- <tr id="i39" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtField.html" title="class in javassist">CtField</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getFields--">getFields</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns an array containing <code>CtField</code> objects
- representing all the non-private fields of the class.</div>
- </td>
- </tr>
- <tr id="i40" class="altColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getGenericSignature--">getGenericSignature</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns the generic signature of the class.</div>
- </td>
- </tr>
- <tr id="i41" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getInterfaces--">getInterfaces</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Obtains the class objects representing the interfaces implemented
- by the class or, if this object represents an interface, the interfaces
- extended by that interface.</div>
- </td>
- </tr>
- <tr id="i42" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getMethod-java.lang.String-java.lang.String-">getMethod</a></span>​(java.lang.String name,
- java.lang.String desc)</code></th>
- <td class="colLast">
- <div class="block">Returns the method with the given name and signature.</div>
- </td>
- </tr>
- <tr id="i43" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getMethods--">getMethods</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns an array containing <code>CtMethod</code> objects
- representing all the non-private methods of the class.</div>
- </td>
- </tr>
- <tr id="i44" class="altColor">
- <td class="colFirst"><code>int</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getModifiers--">getModifiers</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns the modifiers for this class, encoded in an integer.</div>
- </td>
- </tr>
- <tr id="i45" class="rowColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getName--">getName</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Obtains the fully-qualified name of the class.</div>
- </td>
- </tr>
- <tr id="i46" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getNestedClasses--">getNestedClasses</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns an array of nested classes declared in the class.</div>
- </td>
- </tr>
- <tr id="i47" class="rowColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getPackageName--">getPackageName</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Obtains the package name.</div>
- </td>
- </tr>
- <tr id="i48" class="altColor">
- <td class="colFirst"><code>java.util.Collection<java.lang.String></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getRefClasses--">getRefClasses</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a collection of the names of all the classes
- referenced in this class.</div>
- </td>
- </tr>
- <tr id="i49" class="rowColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getSimpleName--">getSimpleName</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Obtains the not-qualified class name.</div>
- </td>
- </tr>
- <tr id="i50" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getSuperclass--">getSuperclass</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Obtains the class object representing the superclass of the
- class.</div>
- </td>
- </tr>
- <tr id="i51" class="rowColor">
- <td class="colFirst"><code>java.net.URL</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#getURL--">getURL</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns the uniform resource locator (URL) of the class file.</div>
- </td>
- </tr>
- <tr id="i52" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#hasAnnotation-java.lang.Class-">hasAnnotation</a></span>​(java.lang.Class<?> annotationType)</code></th>
- <td class="colLast">
- <div class="block">Returns true if the class has the specified annotation type.</div>
- </td>
- </tr>
- <tr id="i53" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#hasAnnotation-java.lang.String-">hasAnnotation</a></span>​(java.lang.String annotationTypeName)</code></th>
- <td class="colLast">
- <div class="block">Returns true if the class has the specified annotation type.</div>
- </td>
- </tr>
- <tr id="i54" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#instrument-javassist.CodeConverter-">instrument</a></span>​(<a href="../javassist/CodeConverter.html" title="class in javassist">CodeConverter</a> converter)</code></th>
- <td class="colLast">
- <div class="block">Applies the given converter to all methods and constructors
- declared in the class.</div>
- </td>
- </tr>
- <tr id="i55" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#instrument-javassist.expr.ExprEditor-">instrument</a></span>​(<a href="../javassist/expr/ExprEditor.html" title="class in javassist.expr">ExprEditor</a> editor)</code></th>
- <td class="colLast">
- <div class="block">Modifies the bodies of all methods and constructors
- declared in the class.</div>
- </td>
- </tr>
- <tr id="i56" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#isAnnotation--">isAnnotation</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Determines whether this object represents an annotation type.</div>
- </td>
- </tr>
- <tr id="i57" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#isArray--">isArray</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns <code>true</code> if this object represents an array type.</div>
- </td>
- </tr>
- <tr id="i58" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#isEnum--">isEnum</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Determines whether this object represents an enum.</div>
- </td>
- </tr>
- <tr id="i59" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#isFrozen--">isFrozen</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns true if the class has been loaded or written out
- and thus it cannot be modified any more.</div>
- </td>
- </tr>
- <tr id="i60" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#isInterface--">isInterface</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Determines whether this object represents a class or an interface.</div>
- </td>
- </tr>
- <tr id="i61" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#isModified--">isModified</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns true if the definition of the class has been modified.</div>
- </td>
- </tr>
- <tr id="i62" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#isPrimitive--">isPrimitive</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns <code>true</code> if this object represents a primitive
- Java type: boolean, byte, char, short, int, long, float, double,
- or void.</div>
- </td>
- </tr>
- <tr id="i63" class="rowColor">
- <td class="colFirst"><code>static void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#main-java.lang.String:A-">main</a></span>​(java.lang.String[] args)</code></th>
- <td class="colLast">
- <div class="block">Prints the version number and the copyright notice.</div>
- </td>
- </tr>
- <tr id="i64" class="altColor">
- <td class="colFirst"><code><a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#makeClassInitializer--">makeClassInitializer</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Makes an empty class initializer (static constructor).</div>
- </td>
- </tr>
- <tr id="i65" class="rowColor">
- <td class="colFirst"><code><a href="../javassist/CtClass.html" title="class in javassist">CtClass</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#makeNestedClass-java.lang.String-boolean-">makeNestedClass</a></span>​(java.lang.String name,
- boolean isStatic)</code></th>
- <td class="colLast">
- <div class="block">Makes a new public nested class.</div>
- </td>
- </tr>
- <tr id="i66" class="altColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#makeUniqueName-java.lang.String-">makeUniqueName</a></span>​(java.lang.String prefix)</code></th>
- <td class="colLast">
- <div class="block">Makes a unique member name.</div>
- </td>
- </tr>
- <tr id="i67" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#prune--">prune</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Discards unnecessary attributes, in particular,
- <code>CodeAttribute</code>s (method bodies) of the class,
- to minimize the memory footprint.</div>
- </td>
- </tr>
- <tr id="i68" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#rebuildClassFile--">rebuildClassFile</a></span>()</code></th>
- <td class="colLast">
- <div class="block">If this method is called, the class file will be
- rebuilt when it is finally generated by
- <code>toBytecode()</code> and <code>writeFile()</code>.</div>
- </td>
- </tr>
- <tr id="i69" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#removeConstructor-javassist.CtConstructor-">removeConstructor</a></span>​(<a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> c)</code></th>
- <td class="colLast">
- <div class="block">Removes a constructor declared in this class.</div>
- </td>
- </tr>
- <tr id="i70" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#removeField-javassist.CtField-">removeField</a></span>​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f)</code></th>
- <td class="colLast">
- <div class="block">Removes a field declared in this class.</div>
- </td>
- </tr>
- <tr id="i71" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#removeMethod-javassist.CtMethod-">removeMethod</a></span>​(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> m)</code></th>
- <td class="colLast">
- <div class="block">Removes a method declared in this class.</div>
- </td>
- </tr>
- <tr id="i72" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#replaceClassName-java.lang.String-java.lang.String-">replaceClassName</a></span>​(java.lang.String oldName,
- java.lang.String newName)</code></th>
- <td class="colLast">
- <div class="block">Substitutes <code>newName</code> for all occurrences of a class
- name <code>oldName</code> in the class file.</div>
- </td>
- </tr>
- <tr id="i73" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#replaceClassName-javassist.ClassMap-">replaceClassName</a></span>​(<a href="../javassist/ClassMap.html" title="class in javassist">ClassMap</a> map)</code></th>
- <td class="colLast">
- <div class="block">Changes class names appearing in the class file according to the
- given <code>map</code>.</div>
- </td>
- </tr>
- <tr id="i74" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#setAttribute-java.lang.String-byte:A-">setAttribute</a></span>​(java.lang.String name,
- byte[] data)</code></th>
- <td class="colLast">
- <div class="block">Adds a named attribute.</div>
- </td>
- </tr>
- <tr id="i75" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#setGenericSignature-java.lang.String-">setGenericSignature</a></span>​(java.lang.String sig)</code></th>
- <td class="colLast">
- <div class="block">Sets the generic signature of the class.</div>
- </td>
- </tr>
- <tr id="i76" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#setInterfaces-javassist.CtClass:A-">setInterfaces</a></span>​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] list)</code></th>
- <td class="colLast">
- <div class="block">Sets implemented interfaces.</div>
- </td>
- </tr>
- <tr id="i77" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#setModifiers-int-">setModifiers</a></span>​(int mod)</code></th>
- <td class="colLast">
- <div class="block">Sets the modifiers.</div>
- </td>
- </tr>
- <tr id="i78" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#setName-java.lang.String-">setName</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Sets the class name</div>
- </td>
- </tr>
- <tr id="i79" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#setSuperclass-javassist.CtClass-">setSuperclass</a></span>​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> clazz)</code></th>
- <td class="colLast">
- <div class="block">Changes a super class unless this object represents an interface.</div>
- </td>
- </tr>
- <tr id="i80" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#stopPruning-boolean-">stopPruning</a></span>​(boolean stop)</code></th>
- <td class="colLast">
- <div class="block">Disallows (or allows) automatically pruning this <code>CtClass</code>
- object.</div>
- </td>
- </tr>
- <tr id="i81" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#subclassOf-javassist.CtClass-">subclassOf</a></span>​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> superclass)</code></th>
- <td class="colLast">
- <div class="block">Determines whether the class directly or indirectly extends
- the given class.</div>
- </td>
- </tr>
- <tr id="i82" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#subtypeOf-javassist.CtClass-">subtypeOf</a></span>​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> clazz)</code></th>
- <td class="colLast">
- <div class="block">Returns <code>true</code> if this class extends or implements
- <code>clazz</code>.</div>
- </td>
- </tr>
- <tr id="i83" class="rowColor">
- <td class="colFirst"><code>byte[]</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#toBytecode--">toBytecode</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Converts this class to a class file.</div>
- </td>
- </tr>
- <tr id="i84" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#toBytecode-java.io.DataOutputStream-">toBytecode</a></span>​(java.io.DataOutputStream out)</code></th>
- <td class="colLast">
- <div class="block">Converts this class to a class file.</div>
- </td>
- </tr>
- <tr id="i85" class="rowColor">
- <td class="colFirst"><code>java.lang.Class<?></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#toClass--">toClass</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Converts this class to a <code>java.lang.Class</code> object.</div>
- </td>
- </tr>
- <tr id="i86" class="altColor">
- <td class="colFirst"><code>java.lang.Class<?></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#toClass-java.lang.ClassLoader-">toClass</a></span>​(java.lang.ClassLoader loader)</code></th>
- <td class="colLast">
- <div class="block"><span class="deprecatedLabel">Deprecated.</span>
- <div class="deprecationComment">Replaced by <a href="../javassist/CtClass.html#toClass-java.lang.ClassLoader-java.security.ProtectionDomain-"><code>toClass(ClassLoader,ProtectionDomain)</code></a></div>
- </div>
- </td>
- </tr>
- <tr id="i87" class="rowColor">
- <td class="colFirst"><code>java.lang.Class<?></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#toClass-java.lang.ClassLoader-java.security.ProtectionDomain-">toClass</a></span>​(java.lang.ClassLoader loader,
- java.security.ProtectionDomain domain)</code></th>
- <td class="colLast">
- <div class="block">Converts this class to a <code>java.lang.Class</code> object.</div>
- </td>
- </tr>
- <tr id="i88" class="altColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#toString--">toString</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Converts the object to a string.</div>
- </td>
- </tr>
- <tr id="i89" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#writeFile--">writeFile</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Writes a class file represented by this <code>CtClass</code>
- object in the current directory.</div>
- </td>
- </tr>
- <tr id="i90" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../javassist/CtClass.html#writeFile-java.lang.String-">writeFile</a></span>​(java.lang.String directoryName)</code></th>
- <td class="colLast">
- <div class="block">Writes a class file represented by this <code>CtClass</code>
- object on a local disk.</div>
- </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
- <!-- -->
- </a>
- <h3>Methods inherited from class java.lang.Object</h3>
- <code>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <div class="details">
- <ul class="blockList">
- <li class="blockList">
- <!-- ============ FIELD DETAIL =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.detail">
- <!-- -->
- </a>
- <h3>Field Detail</h3>
- <a name="debugDump">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>debugDump</h4>
- <pre>public static java.lang.String debugDump</pre>
- <div class="block">If the value of this field is not null, then all class
- files modified by Javassist are saved under the directory
- specified by this variable. For example, if the value is
- <code>"./debug"</code>, then all class files are saved
- there. The directory name must not end with a directory
- separator such as <code>/</code>.
-
- <p>The default value is null.</div>
- <dl>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.16</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#debugWriteFile-java.lang.String-"><code>debugWriteFile(String)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="version">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>version</h4>
- <pre>public static final java.lang.String version</pre>
- <div class="block">The version number of this release.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../constant-values.html#javassist.CtClass.version">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="booleanType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>booleanType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> booleanType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>boolean</code> type.</div>
- </li>
- </ul>
- <a name="charType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>charType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> charType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>char</code> type.</div>
- </li>
- </ul>
- <a name="byteType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>byteType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> byteType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>byte</code> type.</div>
- </li>
- </ul>
- <a name="shortType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>shortType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> shortType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>short</code> type.</div>
- </li>
- </ul>
- <a name="intType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>intType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> intType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>int</code> type.</div>
- </li>
- </ul>
- <a name="longType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>longType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> longType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>long</code> type.</div>
- </li>
- </ul>
- <a name="floatType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>floatType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> floatType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>float</code> type.</div>
- </li>
- </ul>
- <a name="doubleType">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>doubleType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> doubleType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>double</code> type.</div>
- </li>
- </ul>
- <a name="voidType">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>voidType</h4>
- <pre>public static <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> voidType</pre>
- <div class="block">The <code>CtClass</code> object representing
- the <code>void</code> type.</div>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.detail">
- <!-- -->
- </a>
- <h3>Method Detail</h3>
- <a name="main-java.lang.String:A-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>main</h4>
- <pre>public static void main​(java.lang.String[] args)</pre>
- <div class="block">Prints the version number and the copyright notice.
-
- <p>The following command invokes this method:
-
- <pre>java -jar javassist.jar</pre></div>
- </li>
- </ul>
- <a name="toString--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>toString</h4>
- <pre>public java.lang.String toString()</pre>
- <div class="block">Converts the object to a string.</div>
- <dl>
- <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
- <dd><code>toString</code> in class <code>java.lang.Object</code></dd>
- </dl>
- </li>
- </ul>
- <a name="getClassPool--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getClassPool</h4>
- <pre>public <a href="../javassist/ClassPool.html" title="class in javassist">ClassPool</a> getClassPool()</pre>
- <div class="block">Returns a <code>ClassPool</code> for this class.</div>
- </li>
- </ul>
- <a name="getClassFile--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getClassFile</h4>
- <pre>public <a href="../javassist/bytecode/ClassFile.html" title="class in javassist.bytecode">ClassFile</a> getClassFile()</pre>
- <div class="block">Returns a class file for this class.
-
- <p>This method is not available if <code>isFrozen()</code>
- is true.</div>
- </li>
- </ul>
- <a name="getClassFile2--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getClassFile2</h4>
- <pre>public <a href="../javassist/bytecode/ClassFile.html" title="class in javassist.bytecode">ClassFile</a> getClassFile2()</pre>
- <div class="block">Returns a class file for this class (read only).
- Normal applications do not need calling this method. Use
- <code>getClassFile()</code>.
-
- <p>The <code>ClassFile</code> object obtained by this method
- is read only. Changes to this object might not be reflected
- on a class file generated by <code>toBytecode()</code>,
- <code>toClass()</code>, etc.
-
- <p>This method is available even if <code>isFrozen()</code>
- is true. However, if the class is frozen, it might be also
- pruned.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#getClassFile--"><code>getClassFile()</code></a>,
- <a href="../javassist/CtClass.html#isFrozen--"><code>isFrozen()</code></a>,
- <a href="../javassist/CtClass.html#prune--"><code>prune()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getAccessorMaker--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAccessorMaker</h4>
- <pre>public javassist.compiler.AccessorMaker getAccessorMaker()</pre>
- <div class="block">Undocumented method. Do not use; internal-use only.</div>
- </li>
- </ul>
- <a name="getURL--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getURL</h4>
- <pre>public java.net.URL getURL()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns the uniform resource locator (URL) of the class file.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="isModified--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isModified</h4>
- <pre>public boolean isModified()</pre>
- <div class="block">Returns true if the definition of the class has been modified.</div>
- </li>
- </ul>
- <a name="isFrozen--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isFrozen</h4>
- <pre>public boolean isFrozen()</pre>
- <div class="block">Returns true if the class has been loaded or written out
- and thus it cannot be modified any more.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#defrost--"><code>defrost()</code></a>,
- <a href="../javassist/CtClass.html#detach--"><code>detach()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="freeze--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>freeze</h4>
- <pre>public void freeze()</pre>
- <div class="block">Makes the class frozen.</div>
- <dl>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.6</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#isFrozen--"><code>isFrozen()</code></a>,
- <a href="../javassist/CtClass.html#defrost--"><code>defrost()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="defrost--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>defrost</h4>
- <pre>public void defrost()</pre>
- <div class="block">Defrosts the class so that the class can be modified again.
-
- <p>To avoid changes that will be never reflected,
- the class is frozen to be unmodifiable if it is loaded or
- written out. This method should be called only in a case
- that the class will be reloaded or written out later again.
-
- <p>If <code>defrost()</code> will be called later, pruning
- must be disallowed in advance.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#isFrozen--"><code>isFrozen()</code></a>,
- <a href="../javassist/CtClass.html#stopPruning-boolean-"><code>stopPruning(boolean)</code></a>,
- <a href="../javassist/CtClass.html#detach--"><code>detach()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="isPrimitive--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isPrimitive</h4>
- <pre>public boolean isPrimitive()</pre>
- <div class="block">Returns <code>true</code> if this object represents a primitive
- Java type: boolean, byte, char, short, int, long, float, double,
- or void.</div>
- </li>
- </ul>
- <a name="isArray--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isArray</h4>
- <pre>public boolean isArray()</pre>
- <div class="block">Returns <code>true</code> if this object represents an array type.</div>
- </li>
- </ul>
- <a name="getComponentType--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getComponentType</h4>
- <pre>public <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> getComponentType()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">If this object represents an array, this method returns the component
- type of the array. Otherwise, it returns <code>null</code>.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="subtypeOf-javassist.CtClass-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>subtypeOf</h4>
- <pre>public boolean subtypeOf​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> clazz)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns <code>true</code> if this class extends or implements
- <code>clazz</code>. It also returns <code>true</code> if
- this class is the same as <code>clazz</code>.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="getName--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getName</h4>
- <pre>public java.lang.String getName()</pre>
- <div class="block">Obtains the fully-qualified name of the class.</div>
- </li>
- </ul>
- <a name="getSimpleName--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getSimpleName</h4>
- <pre>public final java.lang.String getSimpleName()</pre>
- <div class="block">Obtains the not-qualified class name.</div>
- </li>
- </ul>
- <a name="getPackageName--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getPackageName</h4>
- <pre>public final java.lang.String getPackageName()</pre>
- <div class="block">Obtains the package name. It may be <code>null</code>.</div>
- </li>
- </ul>
- <a name="setName-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setName</h4>
- <pre>public void setName​(java.lang.String name)</pre>
- <div class="block">Sets the class name</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - fully-qualified name</dd>
- </dl>
- </li>
- </ul>
- <a name="getGenericSignature--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getGenericSignature</h4>
- <pre>public java.lang.String getGenericSignature()</pre>
- <div class="block">Returns the generic signature of the class.
-
- <p>The generics of Java is implemented by the erasure technique.
- After compilation, all type parameters are dropped off from the
- main part of a class file. However, for reflection, the type
- parameters are encoded into generic signatures and attached
- to a class file.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>null if the generic signature is not included.</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.17</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/bytecode/SignatureAttribute.html#toClassSignature-java.lang.String-"><code>SignatureAttribute.toClassSignature(String)</code></a>,
- <a href="../javassist/CtMember.html#getGenericSignature--"><code>CtMember.getGenericSignature()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="setGenericSignature-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setGenericSignature</h4>
- <pre>public void setGenericSignature​(java.lang.String sig)</pre>
- <div class="block">Sets the generic signature of the class.
-
- <p>The generics of Java is implemented by the erasure technique.
- After compilation, all type parameters are dropped off from the
- main part of a class file. However, for reflection, the type
- parameters must be encoded into generic signatures and attached
- to a class file.
-
- <p>For example,
-
- <pre>class List<T> {
- T value;
- T get() { return value; }
- void set(T v) { value = v; }
- }
- </pre>
-
- <p>this class is generated by the following code:
-
- <pre>
- ClassPool pool = ClassPool.getDefault();
- CtClass cc = pool.makeClass("List");
- CtClass objectClass = pool.get(CtClass.javaLangObject);
- ClassSignature cs = new ClassSignature(
- new TypeParameter[] { new TypeParameter("T") });
- cc.setGenericSignature(cs.encode()); // <T:Ljava/lang/Object;>Ljava/lang/Object;
-
- CtField f = new CtField(objClass, "value", cc);
- TypeVariable tvar = new TypeVariable("T");
- f.setGenericSignature(tvar.encode()); // TT;
- cc.addField(f);
-
- CtMethod m = CtNewMethod.make("public Object get(){return value;}", cc);
- MethodSignature ms = new MethodSignature(null, null, tvar, null);
- m.setGenericSignature(ms.encode()); // ()TT;
- cc.addMethod(m);
-
- CtMethod m2 = CtNewMethod.make("public void set(Object v){value = v;}", cc);
- MethodSignature ms2 = new MethodSignature(null, new Type[] { tvar },
- new BaseType("void"), null);
- m2.setGenericSignature(ms2.encode()); // (TT;)V;
- cc.addMethod(m2);
-
- cc.writeFile();
- </pre>
-
- <p>The generated class file is equivalent to the following:
-
- <pre>class List {
- Object value;
- Object get() { return value; }
- void set(Object v) { value = v; }
- }</pre>
-
- <p>but it includes generic signatures for the class, the field,
- and the methods so that the type variable <code>T</code> can be
- accessible through reflection.
-
- <p><code>MethodSignature</code> is a utility class. You can directly
- pass the signature string to the <code>setGenericSignature</code> method.
- For the specification of the signatures, see Section 4.7.9.1 <i>Signatures</i>
- of The Java Virtual Machine Specification (Java SE 8).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>sig</code> - a generic signature.</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.17</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/bytecode/SignatureAttribute.ClassSignature.html#encode--"><code>SignatureAttribute.ClassSignature.encode()</code></a>,
- <a href="../javassist/bytecode/SignatureAttribute.MethodSignature.html#encode--"><code>SignatureAttribute.MethodSignature.encode()</code></a>,
- <a href="../javassist/CtMember.html#setGenericSignature-java.lang.String-"><code>CtMember.setGenericSignature(String)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="replaceClassName-java.lang.String-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>replaceClassName</h4>
- <pre>public void replaceClassName​(java.lang.String oldName,
- java.lang.String newName)</pre>
- <div class="block">Substitutes <code>newName</code> for all occurrences of a class
- name <code>oldName</code> in the class file.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>oldName</code> - replaced class name</dd>
- <dd><code>newName</code> - substituted class name</dd>
- </dl>
- </li>
- </ul>
- <a name="replaceClassName-javassist.ClassMap-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>replaceClassName</h4>
- <pre>public void replaceClassName​(<a href="../javassist/ClassMap.html" title="class in javassist">ClassMap</a> map)</pre>
- <div class="block">Changes class names appearing in the class file according to the
- given <code>map</code>.
-
- <p>All the class names appearing in the class file are tested
- with <code>map</code> to determine whether each class name is
- replaced or not. Thus this method can be used for collecting
- all the class names in the class file. To do that, first define
- a subclass of <code>ClassMap</code> so that <code>get()</code>
- records all the given parameters. Then, make an instance of
- that subclass as an empty hash-table. Finally, pass that instance
- to this method. After this method finishes, that instance would
- contain all the class names appearing in the class file.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>map</code> - the hashtable associating replaced class names
- with substituted names.</dd>
- </dl>
- </li>
- </ul>
- <a name="getRefClasses--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getRefClasses</h4>
- <pre>public java.util.Collection<java.lang.String> getRefClasses()</pre>
- <div class="block">Returns a collection of the names of all the classes
- referenced in this class.
- That collection includes the name of this class.
-
- <p>This method may return <code>null</code>.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>a <code>Collection<String></code> object.</dd>
- </dl>
- </li>
- </ul>
- <a name="isInterface--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isInterface</h4>
- <pre>public boolean isInterface()</pre>
- <div class="block">Determines whether this object represents a class or an interface.
- It returns <code>true</code> if this object represents an interface.</div>
- </li>
- </ul>
- <a name="isAnnotation--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isAnnotation</h4>
- <pre>public boolean isAnnotation()</pre>
- <div class="block">Determines whether this object represents an annotation type.
- It returns <code>true</code> if this object represents an annotation type.</div>
- <dl>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.2</dd>
- </dl>
- </li>
- </ul>
- <a name="isEnum--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isEnum</h4>
- <pre>public boolean isEnum()</pre>
- <div class="block">Determines whether this object represents an enum.
- It returns <code>true</code> if this object represents an enum.</div>
- <dl>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.2</dd>
- </dl>
- </li>
- </ul>
- <a name="getModifiers--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getModifiers</h4>
- <pre>public int getModifiers()</pre>
- <div class="block">Returns the modifiers for this class, encoded in an integer.
- For decoding, use <code>javassist.Modifier</code>.
-
- <p>If the class is a static nested class (a.k.a. static inner class),
- the returned modifiers include <code>Modifier.STATIC</code>.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/Modifier.html" title="class in javassist"><code>Modifier</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="hasAnnotation-java.lang.Class-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>hasAnnotation</h4>
- <pre>public boolean hasAnnotation​(java.lang.Class<?> annotationType)</pre>
- <div class="block">Returns true if the class has the specified annotation type.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>annotationType</code> - the annotation type.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd><code>true</code> if the annotation is found, otherwise <code>false</code>.</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.11</dd>
- </dl>
- </li>
- </ul>
- <a name="hasAnnotation-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>hasAnnotation</h4>
- <pre>public boolean hasAnnotation​(java.lang.String annotationTypeName)</pre>
- <div class="block">Returns true if the class has the specified annotation type.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>annotationTypeName</code> - the name of annotation type.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd><code>true</code> if the annotation is found, otherwise <code>false</code>.</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.21</dd>
- </dl>
- </li>
- </ul>
- <a name="getAnnotation-java.lang.Class-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAnnotation</h4>
- <pre>public java.lang.Object getAnnotation​(java.lang.Class<?> clz)
- throws java.lang.ClassNotFoundException</pre>
- <div class="block">Returns the annotation if the class has the specified annotation type.
- For example, if an annotation <code>@Author</code> is associated
- with this class, an <code>Author</code> object is returned.
- The member values can be obtained by calling methods on
- the <code>Author</code> object.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>clz</code> - the annotation type.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>the annotation if found, otherwise <code>null</code>.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code>java.lang.ClassNotFoundException</code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.11</dd>
- </dl>
- </li>
- </ul>
- <a name="getAnnotations--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAnnotations</h4>
- <pre>public java.lang.Object[] getAnnotations()
- throws java.lang.ClassNotFoundException</pre>
- <div class="block">Returns the annotations associated with this class.
- For example, if an annotation <code>@Author</code> is associated
- with this class, the returned array contains an <code>Author</code>
- object. The member values can be obtained by calling methods on
- the <code>Author</code> object.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>an array of annotation-type objects.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code>java.lang.ClassNotFoundException</code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.1</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtMember.html#getAnnotations--"><code>CtMember.getAnnotations()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getAvailableAnnotations--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAvailableAnnotations</h4>
- <pre>public java.lang.Object[] getAvailableAnnotations()</pre>
- <div class="block">Returns the annotations associated with this class.
- This method is equivalent to <code>getAnnotations()</code>
- except that, if any annotations are not on the classpath,
- they are not included in the returned array.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>an array of annotation-type objects.</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.3</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#getAnnotations--"><code>getAnnotations()</code></a>,
- <a href="../javassist/CtMember.html#getAvailableAnnotations--"><code>CtMember.getAvailableAnnotations()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredClasses--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredClasses</h4>
- <pre>public <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] getDeclaredClasses()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns an array of nested classes declared in the class.
- Nested classes are inner classes, anonymous classes, local classes,
- and static nested classes. This simply calls <code>getNestedClasses()</code>.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.15</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#getNestedClasses--"><code>getNestedClasses()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getNestedClasses--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getNestedClasses</h4>
- <pre>public <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] getNestedClasses()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns an array of nested classes declared in the class.
- Nested classes are inner classes, anonymous classes, local classes,
- and static nested classes.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.2</dd>
- </dl>
- </li>
- </ul>
- <a name="setModifiers-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setModifiers</h4>
- <pre>public void setModifiers​(int mod)</pre>
- <div class="block">Sets the modifiers.
-
- <p>If the class is a nested class, this method also modifies
- the class declaring that nested class (i.e. the enclosing
- class is modified).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>mod</code> - modifiers encoded by
- <code>javassist.Modifier</code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/Modifier.html" title="class in javassist"><code>Modifier</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="subclassOf-javassist.CtClass-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>subclassOf</h4>
- <pre>public boolean subclassOf​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> superclass)</pre>
- <div class="block">Determines whether the class directly or indirectly extends
- the given class. If this class extends a class A and
- the class A extends a class B, then subclassof(B) returns true.
-
- <p>This method returns true if the given class is identical to
- the class represented by this object.</div>
- </li>
- </ul>
- <a name="getSuperclass--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getSuperclass</h4>
- <pre>public <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> getSuperclass()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Obtains the class object representing the superclass of the
- class.
- It returns null if this object represents the
- <code>java.lang.Object</code> class and thus it does not have
- the super class.
-
- <p>If this object represents an interface, this method
- always returns the <code>java.lang.Object</code> class.
- To obtain the super interfaces
- extended by that interface, call <code>getInterfaces()</code>.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="setSuperclass-javassist.CtClass-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setSuperclass</h4>
- <pre>public void setSuperclass​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> clazz)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Changes a super class unless this object represents an interface.
- The new super class must be compatible with the old one; for example,
- it should inherit from the old super class.
-
- <p>If this object represents an interface, this method is equivalent
- to <code>addInterface()</code>; it appends <code>clazz</code> to
- the list of the super interfaces extended by that interface.
- Note that an interface can extend multiple super interfaces.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#replaceClassName-java.lang.String-java.lang.String-"><code>replaceClassName(String, String)</code></a>,
- <a href="../javassist/CtClass.html#replaceClassName-javassist.ClassMap-"><code>replaceClassName(ClassMap)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getInterfaces--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getInterfaces</h4>
- <pre>public <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] getInterfaces()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Obtains the class objects representing the interfaces implemented
- by the class or, if this object represents an interface, the interfaces
- extended by that interface.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="setInterfaces-javassist.CtClass:A-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setInterfaces</h4>
- <pre>public void setInterfaces​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] list)</pre>
- <div class="block">Sets implemented interfaces. If this object represents an interface,
- this method sets the interfaces extended by that interface.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>list</code> - a list of the <code>CtClass</code> objects
- representing interfaces, or
- <code>null</code> if the class implements
- no interfaces.</dd>
- </dl>
- </li>
- </ul>
- <a name="addInterface-javassist.CtClass-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>addInterface</h4>
- <pre>public void addInterface​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> anInterface)</pre>
- <div class="block">Adds an interface.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>anInterface</code> - the added interface.</dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaringClass--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaringClass</h4>
- <pre>public <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> getDeclaringClass()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">If this class is a member class or interface of another class,
- then the class enclosing this class is returned.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>null if this class is a top-level class or an anonymous class.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="getEnclosingMethod--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEnclosingMethod</h4>
- <pre>@Deprecated
- public final <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> getEnclosingMethod()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
- <div class="deprecationComment">The enclosing method might be a constructor.
- Use <a href="../javassist/CtClass.html#getEnclosingBehavior--"><code>getEnclosingBehavior()</code></a>.</div>
- </div>
- <div class="block">Returns the immediately enclosing method of this class.
- This method works only with JDK 1.5 or later.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>null if this class is not a local class or an anonymous
- class.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#getEnclosingBehavior--"><code>getEnclosingBehavior()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getEnclosingBehavior--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEnclosingBehavior</h4>
- <pre>public <a href="../javassist/CtBehavior.html" title="class in javassist">CtBehavior</a> getEnclosingBehavior()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns the immediately enclosing method of this class.
- It might be not a method but a constructor.
- This method works only with JDK 1.5 or later.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>null if this class is not a local class or an anonymous
- class.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="makeNestedClass-java.lang.String-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>makeNestedClass</h4>
- <pre>public <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a> makeNestedClass​(java.lang.String name,
- boolean isStatic)</pre>
- <div class="block">Makes a new public nested class. If this method is called,
- the <code>CtClass</code>, which encloses the nested class, is modified
- since a class file includes a list of nested classes.
-
- <p>The current implementation only supports a static nested class.
- <code>isStatic</code> must be true.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - the simple name of the nested class.</dd>
- <dd><code>isStatic</code> - true if the nested class is static.</dd>
- </dl>
- </li>
- </ul>
- <a name="getFields--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getFields</h4>
- <pre>public <a href="../javassist/CtField.html" title="class in javassist">CtField</a>[] getFields()</pre>
- <div class="block">Returns an array containing <code>CtField</code> objects
- representing all the non-private fields of the class.
- That array includes non-private fields inherited from the
- superclasses.</div>
- </li>
- </ul>
- <a name="getField-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getField</h4>
- <pre>public <a href="../javassist/CtField.html" title="class in javassist">CtField</a> getField​(java.lang.String name)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns the field with the specified name. The returned field
- may be a private field declared in a super class or interface.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="getField-java.lang.String-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getField</h4>
- <pre>public <a href="../javassist/CtField.html" title="class in javassist">CtField</a> getField​(java.lang.String name,
- java.lang.String desc)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns the field with the specified name and type. The returned field
- may be a private field declared in a super class or interface.
- Unlike Java, the JVM allows a class to have
- multiple fields with the same name but different types.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - the field name.</dd>
- <dd><code>desc</code> - the type descriptor of the field. It is available by
- <a href="../javassist/CtField.html#getSignature--"><code>CtField.getSignature()</code></a>.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtField.html#getSignature--"><code>CtField.getSignature()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredFields--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredFields</h4>
- <pre>public <a href="../javassist/CtField.html" title="class in javassist">CtField</a>[] getDeclaredFields()</pre>
- <div class="block">Gets all the fields declared in the class. The inherited fields
- are not included.
-
- <p>Note: the result does not include inherited fields.</div>
- </li>
- </ul>
- <a name="getDeclaredField-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredField</h4>
- <pre>public <a href="../javassist/CtField.html" title="class in javassist">CtField</a> getDeclaredField​(java.lang.String name)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Retrieves the field with the specified name among the fields
- declared in the class.
-
- <p>Note: this method does not search the super classes.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredField-java.lang.String-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredField</h4>
- <pre>public <a href="../javassist/CtField.html" title="class in javassist">CtField</a> getDeclaredField​(java.lang.String name,
- java.lang.String desc)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Retrieves the field with the specified name and type among the fields
- declared in the class. Unlike Java, the JVM allows a class to have
- multiple fields with the same name but different types.
-
- <p>Note: this method does not search the super classes.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - the field name.</dd>
- <dd><code>desc</code> - the type descriptor of the field. It is available by
- <a href="../javassist/CtField.html#getSignature--"><code>CtField.getSignature()</code></a>.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtField.html#getSignature--"><code>CtField.getSignature()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredBehaviors--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredBehaviors</h4>
- <pre>public <a href="../javassist/CtBehavior.html" title="class in javassist">CtBehavior</a>[] getDeclaredBehaviors()</pre>
- <div class="block">Gets all the constructors and methods declared in the class.</div>
- </li>
- </ul>
- <a name="getConstructors--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getConstructors</h4>
- <pre>public <a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a>[] getConstructors()</pre>
- <div class="block">Returns an array containing <code>CtConstructor</code> objects
- representing all the non-private constructors of the class.</div>
- </li>
- </ul>
- <a name="getConstructor-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getConstructor</h4>
- <pre>public <a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> getConstructor​(java.lang.String desc)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns the constructor with the given signature,
- which is represented by a character string
- called method descriptor.
- For details of the method descriptor, see the JVM specification
- or <code>javassist.bytecode.Descriptor</code>.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>desc</code> - method descriptor</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/bytecode/Descriptor.html" title="class in javassist.bytecode"><code>Descriptor</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredConstructors--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredConstructors</h4>
- <pre>public <a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a>[] getDeclaredConstructors()</pre>
- <div class="block">Gets all the constructors declared in the class.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtConstructor.html" title="class in javassist"><code>CtConstructor</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredConstructor-javassist.CtClass:A-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredConstructor</h4>
- <pre>public <a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> getDeclaredConstructor​(<a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] params)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns a constructor receiving the specified parameters.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>params</code> - parameter types.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="getClassInitializer--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getClassInitializer</h4>
- <pre>public <a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> getClassInitializer()</pre>
- <div class="block">Gets the class initializer (static constructor)
- declared in the class.
- This method returns <code>null</code> if
- no class initializer is not declared.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#makeClassInitializer--"><code>makeClassInitializer()</code></a>,
- <a href="../javassist/CtConstructor.html" title="class in javassist"><code>CtConstructor</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getMethods--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMethods</h4>
- <pre>public <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>[] getMethods()</pre>
- <div class="block">Returns an array containing <code>CtMethod</code> objects
- representing all the non-private methods of the class.
- That array includes non-private methods inherited from the
- superclasses.</div>
- </li>
- </ul>
- <a name="getMethod-java.lang.String-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMethod</h4>
- <pre>public <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> getMethod​(java.lang.String name,
- java.lang.String desc)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Returns the method with the given name and signature.
- The returned method may be declared in a super class.
- The method signature is represented by a character string
- called method descriptor,
- which is defined in the JVM specification.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - method name</dd>
- <dd><code>desc</code> - method descriptor</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtBehavior.html#getSignature--"><code>CtBehavior.getSignature()</code></a>,
- <a href="../javassist/bytecode/Descriptor.html" title="class in javassist.bytecode"><code>Descriptor</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredMethods--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredMethods</h4>
- <pre>public <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>[] getDeclaredMethods()</pre>
- <div class="block">Gets all methods declared in the class. The inherited methods
- are not included.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtMethod.html" title="class in javassist"><code>CtMethod</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredMethod-java.lang.String-javassist.CtClass:A-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredMethod</h4>
- <pre>public <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> getDeclaredMethod​(java.lang.String name,
- <a href="../javassist/CtClass.html" title="class in javassist">CtClass</a>[] params)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Retrieves the method with the specified name and parameter types
- among the methods declared in the class.
-
- <p>Note: this method does not search the superclasses.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - method name</dd>
- <dd><code>params</code> - parameter types</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtMethod.html" title="class in javassist"><code>CtMethod</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredMethods-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredMethods</h4>
- <pre>public <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a>[] getDeclaredMethods​(java.lang.String name)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Retrieves methods with the specified name among the methods
- declared in the class. Multiple methods with different parameters
- may be returned.
-
- <p>Note: this method does not search the superclasses.</p></div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - method name.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.19</dd>
- </dl>
- </li>
- </ul>
- <a name="getDeclaredMethod-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDeclaredMethod</h4>
- <pre>public <a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> getDeclaredMethod​(java.lang.String name)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Retrieves the method with the specified name among the methods
- declared in the class. If there are multiple methods with
- the specified name, then this method returns one of them.
-
- <p>Note: this method does not search the superclasses.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtMethod.html" title="class in javassist"><code>CtMethod</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="makeClassInitializer--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>makeClassInitializer</h4>
- <pre>public <a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> makeClassInitializer()
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Makes an empty class initializer (static constructor).
- If the class already includes a class initializer,
- this method returns it.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#getClassInitializer--"><code>getClassInitializer()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="addConstructor-javassist.CtConstructor-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>addConstructor</h4>
- <pre>public void addConstructor​(<a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> c)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Adds a constructor. To add a class initializer (static constructor),
- call <code>makeClassInitializer()</code>.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#makeClassInitializer--"><code>makeClassInitializer()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="removeConstructor-javassist.CtConstructor-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>removeConstructor</h4>
- <pre>public void removeConstructor​(<a href="../javassist/CtConstructor.html" title="class in javassist">CtConstructor</a> c)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Removes a constructor declared in this class.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>c</code> - removed constructor.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code> - if the constructor is not found.</dd>
- </dl>
- </li>
- </ul>
- <a name="addMethod-javassist.CtMethod-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>addMethod</h4>
- <pre>public void addMethod​(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> m)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Adds a method.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="removeMethod-javassist.CtMethod-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>removeMethod</h4>
- <pre>public void removeMethod​(<a href="../javassist/CtMethod.html" title="class in javassist">CtMethod</a> m)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Removes a method declared in this class.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>m</code> - removed method.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code> - if the method is not found.</dd>
- </dl>
- </li>
- </ul>
- <a name="addField-javassist.CtField-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>addField</h4>
- <pre>public void addField​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Adds a field.
-
- <p>The <code>CtField</code> belonging to another
- <code>CtClass</code> cannot be directly added to this class.
- Only a field created for this class can be added.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtField.html#CtField-javassist.CtField-javassist.CtClass-"><code>CtField(CtField,CtClass)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="addField-javassist.CtField-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>addField</h4>
- <pre>public void addField​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f,
- java.lang.String init)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Adds a field with an initial value.
-
- <p>The <code>CtField</code> belonging to another
- <code>CtClass</code> cannot be directly added to this class.
- Only a field created for this class can be added.
-
- <p>The initial value is given as an expression written in Java.
- Any regular Java expression can be used for specifying the initial
- value. The followings are examples.
-
- <pre>
- cc.addField(f, "0") // the initial value is 0.
- cc.addField(f, "i + 1") // i + 1.
- cc.addField(f, "new Point()"); // a Point object.
- </pre>
-
- <p>Here, the type of variable <code>cc</code> is <code>CtClass</code>.
- The type of <code>f</code> is <code>CtField</code>.
-
- <p>Note: do not change the modifier of the field
- (in particular, do not add or remove <code>static</code>
- to/from the modifier)
- after it is added to the class by <code>addField()</code>.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>init</code> - an expression for the initial value.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtField.Initializer.html#byExpr-java.lang.String-"><code>CtField.Initializer.byExpr(String)</code></a>,
- <a href="../javassist/CtField.html#CtField-javassist.CtField-javassist.CtClass-"><code>CtField(CtField,CtClass)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="addField-javassist.CtField-javassist.CtField.Initializer-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>addField</h4>
- <pre>public void addField​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f,
- <a href="../javassist/CtField.Initializer.html" title="class in javassist">CtField.Initializer</a> init)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Adds a field with an initial value.
-
- <p>The <code>CtField</code> belonging to another
- <code>CtClass</code> cannot be directly added to this class.
- Only a field created for this class can be added.
-
- <p>For example,
-
- <pre>
- CtClass cc = ...;
- addField(new CtField(CtClass.intType, "i", cc),
- CtField.Initializer.constant(1));
- </pre>
-
- <p>This code adds an <code>int</code> field named "i". The
- initial value of this field is 1.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>init</code> - specifies the initial value of the field.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtField.html#CtField-javassist.CtField-javassist.CtClass-"><code>CtField(CtField,CtClass)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="removeField-javassist.CtField-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>removeField</h4>
- <pre>public void removeField​(<a href="../javassist/CtField.html" title="class in javassist">CtField</a> f)
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></pre>
- <div class="block">Removes a field declared in this class.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>f</code> - removed field.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code> - if the field is not found.</dd>
- </dl>
- </li>
- </ul>
- <a name="getAttribute-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAttribute</h4>
- <pre>public byte[] getAttribute​(java.lang.String name)</pre>
- <div class="block">Obtains an attribute with the given name.
- If that attribute is not found in the class file, this
- method returns null.
-
- <p>This is a convenient method mainly for obtaining
- a user-defined attribute. For dealing with attributes, see the
- <code>javassist.bytecode</code> package. For example, the following
- expression returns all the attributes of a class file.
-
- <pre>
- getClassFile().getAttributes()
- </pre></div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - attribute name</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode"><code>AttributeInfo</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="setAttribute-java.lang.String-byte:A-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setAttribute</h4>
- <pre>public void setAttribute​(java.lang.String name,
- byte[] data)</pre>
- <div class="block">Adds a named attribute.
- An arbitrary data (smaller than 64Kb) can be saved in the class
- file. Some attribute name are reserved by the JVM.
- The attributes with the non-reserved names are ignored when a
- class file is loaded into the JVM.
- If there is already an attribute with
- the same name, this method substitutes the new one for it.
-
- <p>This is a convenient method mainly for adding
- a user-defined attribute. For dealing with attributes, see the
- <code>javassist.bytecode</code> package. For example, the following
- expression adds an attribute <code>info</code> to a class file.
-
- <pre>
- getClassFile().addAttribute(info)
- </pre></div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - attribute name</dd>
- <dd><code>data</code> - attribute value</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode"><code>AttributeInfo</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="instrument-javassist.CodeConverter-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>instrument</h4>
- <pre>public void instrument​(<a href="../javassist/CodeConverter.html" title="class in javassist">CodeConverter</a> converter)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Applies the given converter to all methods and constructors
- declared in the class. This method calls <code>instrument()</code>
- on every <code>CtMethod</code> and <code>CtConstructor</code> object
- in the class.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>converter</code> - specifies how to modify.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="instrument-javassist.expr.ExprEditor-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>instrument</h4>
- <pre>public void instrument​(<a href="../javassist/expr/ExprEditor.html" title="class in javassist.expr">ExprEditor</a> editor)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Modifies the bodies of all methods and constructors
- declared in the class. This method calls <code>instrument()</code>
- on every <code>CtMethod</code> and <code>CtConstructor</code> object
- in the class.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>editor</code> - specifies how to modify.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="toClass--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>toClass</h4>
- <pre>public java.lang.Class<?> toClass()
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Converts this class to a <code>java.lang.Class</code> object.
- Once this method is called, further modifications are not
- allowed any more.
- To load the class, this method uses the context class loader
- of the current thread. If the program is running on some application
- server, the context class loader might be inappropriate to load the
- class.
-
- <p>This method is provided for convenience. If you need more
- complex functionality, you should write your own class loader.
-
- <p>Note: this method calls <code>toClass()</code>
- in <code>ClassPool</code>.
-
- <p><b>Warining:</b> A Class object returned by this method may not
- work with a security manager or a signed jar file because a
- protection domain is not specified.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#toClass-java.lang.ClassLoader-java.security.ProtectionDomain-"><code>toClass(java.lang.ClassLoader,ProtectionDomain)</code></a>,
- <a href="../javassist/ClassPool.html#toClass-javassist.CtClass-"><code>ClassPool.toClass(CtClass)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="toClass-java.lang.ClassLoader-java.security.ProtectionDomain-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>toClass</h4>
- <pre>public java.lang.Class<?> toClass​(java.lang.ClassLoader loader,
- java.security.ProtectionDomain domain)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Converts this class to a <code>java.lang.Class</code> object.
- Once this method is called, further modifications are not allowed
- any more.
-
- <p>The class file represented by this <code>CtClass</code> is
- loaded by the given class loader to construct a
- <code>java.lang.Class</code> object. Since a private method
- on the class loader is invoked through the reflection API,
- the caller must have permissions to do that.
-
- <p>An easy way to obtain <code>ProtectionDomain</code> object is
- to call <code>getProtectionDomain()</code>
- in <code>java.lang.Class</code>. It returns the domain that
- the class belongs to.
-
- <p>This method is provided for convenience. If you need more
- complex functionality, you should write your own class loader.
-
- <p>Note: this method calls <code>toClass()</code>
- in <code>ClassPool</code>.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>loader</code> - the class loader used to load this class.
- If it is null, the class loader returned by
- <a href="../javassist/ClassPool.html#getClassLoader--"><code>ClassPool.getClassLoader()</code></a> is used.</dd>
- <dd><code>domain</code> - the protection domain that the class belongs to.
- If it is null, the default domain created
- by <code>java.lang.ClassLoader</code> is used.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.3</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/ClassPool.html#toClass-javassist.CtClass-java.lang.ClassLoader-"><code>ClassPool.toClass(CtClass,java.lang.ClassLoader)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="toClass-java.lang.ClassLoader-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>toClass</h4>
- <pre>@Deprecated
- public final java.lang.Class<?> toClass​(java.lang.ClassLoader loader)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
- <div class="deprecationComment">Replaced by <a href="../javassist/CtClass.html#toClass-java.lang.ClassLoader-java.security.ProtectionDomain-"><code>toClass(ClassLoader,ProtectionDomain)</code></a></div>
- </div>
- <div class="block">Converts this class to a <code>java.lang.Class</code> object.
-
- <p><b>Warining:</b> A Class object returned by this method may not
- work with a security manager or a signed jar file because a
- protection domain is not specified.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="detach--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>detach</h4>
- <pre>public void detach()</pre>
- <div class="block">Removes this <code>CtClass</code> object from the
- <code>ClassPool</code>.
- After this method is called, any method cannot be called on the
- removed <code>CtClass</code> object.
-
- <p>If <code>get()</code> in <code>ClassPool</code> is called
- with the name of the removed method,
- the <code>ClassPool</code> will read the class file again
- and constructs another <code>CtClass</code> object representing
- the same class.</div>
- </li>
- </ul>
- <a name="stopPruning-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>stopPruning</h4>
- <pre>public boolean stopPruning​(boolean stop)</pre>
- <div class="block">Disallows (or allows) automatically pruning this <code>CtClass</code>
- object.
-
- <p>
- Javassist can automatically prune a <code>CtClass</code> object
- when <code>toBytecode()</code> (or <code>toClass()</code>,
- <code>writeFile()</code>) is called.
- Since a <code>ClassPool</code> holds all instances of <code>CtClass</code>
- even after <code>toBytecode()</code> (or <code>toClass()</code>,
- <code>writeFile()</code>) is called, pruning may significantly
- save memory consumption.
-
- <p>If <code>ClassPool.doPruning</code> is true, the automatic pruning
- is on by default. Otherwise, it is off. The default value of
- <code>ClassPool.doPruning</code> is false.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>stop</code> - disallow pruning if true. Otherwise, allow.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>the previous status of pruning. true if pruning is already stopped.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#detach--"><code>detach()</code></a>,
- <a href="../javassist/CtClass.html#prune--"><code>prune()</code></a>,
- <a href="../javassist/ClassPool.html#doPruning"><code>ClassPool.doPruning</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="prune--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>prune</h4>
- <pre>public void prune()</pre>
- <div class="block">Discards unnecessary attributes, in particular,
- <code>CodeAttribute</code>s (method bodies) of the class,
- to minimize the memory footprint.
- After calling this method, the class is read only.
- It cannot be modified any more.
- Furthermore, <code>toBytecode()</code>,
- <code>writeFile()</code>, <code>toClass()</code>,
- or <code>instrument()</code> cannot be called.
- However, the method names and signatures in the class etc.
- are still accessible.
-
- <p><code>toBytecode()</code>, <code>writeFile()</code>, and
- <code>toClass()</code> internally call this method if
- automatic pruning is on.
-
- <p>According to some experiments, pruning does not really reduce
- memory consumption. Only about 20%. Since pruning takes time,
- it might not pay off. So the automatic pruning is off by default.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#stopPruning-boolean-"><code>stopPruning(boolean)</code></a>,
- <a href="../javassist/CtClass.html#detach--"><code>detach()</code></a>,
- <a href="../javassist/ClassPool.html#doPruning"><code>ClassPool.doPruning</code></a>,
- <a href="../javassist/CtClass.html#toBytecode--"><code>toBytecode()</code></a>,
- <a href="../javassist/CtClass.html#toClass--"><code>toClass()</code></a>,
- <a href="../javassist/CtClass.html#writeFile--"><code>writeFile()</code></a>,
- <a href="../javassist/CtClass.html#instrument-javassist.CodeConverter-"><code>instrument(CodeConverter)</code></a>,
- <a href="../javassist/CtClass.html#instrument-javassist.expr.ExprEditor-"><code>instrument(ExprEditor)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="rebuildClassFile--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>rebuildClassFile</h4>
- <pre>public void rebuildClassFile()</pre>
- <div class="block">If this method is called, the class file will be
- rebuilt when it is finally generated by
- <code>toBytecode()</code> and <code>writeFile()</code>.
- For a performance reason, the symbol table of the
- class file may contain unused entries, for example,
- after a method or a filed is deleted.
- This method
- removes those unused entries. This removal will
- minimize the size of the class file.</div>
- <dl>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.8.1</dd>
- </dl>
- </li>
- </ul>
- <a name="toBytecode--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>toBytecode</h4>
- <pre>public byte[] toBytecode()
- throws java.io.IOException,
- <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Converts this class to a class file.
- Once this method is called, further modifications are not
- possible any more.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>the contents of the class file.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code>java.io.IOException</code></dd>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- </dl>
- </li>
- </ul>
- <a name="writeFile--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>writeFile</h4>
- <pre>public void writeFile()
- throws <a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a>,
- java.io.IOException,
- <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></pre>
- <div class="block">Writes a class file represented by this <code>CtClass</code>
- object in the current directory.
- Once this method is called, further modifications are not
- possible any more.</div>
- <dl>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/NotFoundException.html" title="class in javassist">NotFoundException</a></code></dd>
- <dd><code>java.io.IOException</code></dd>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#debugWriteFile--"><code>debugWriteFile()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="writeFile-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>writeFile</h4>
- <pre>public void writeFile​(java.lang.String directoryName)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a>,
- java.io.IOException</pre>
- <div class="block">Writes a class file represented by this <code>CtClass</code>
- object on a local disk.
- Once this method is called, further modifications are not
- possible any more.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>directoryName</code> - it must end without a directory separator.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dd><code>java.io.IOException</code></dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../javassist/CtClass.html#debugWriteFile-java.lang.String-"><code>debugWriteFile(String)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="debugWriteFile--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>debugWriteFile</h4>
- <pre>public void debugWriteFile()</pre>
- <div class="block">Writes a class file as <code>writeFile()</code> does although this
- method does not prune or freeze the class after writing the class
- file. Note that, once <code>writeFile()</code> or <code>toBytecode()</code>
- is called, it cannot be called again since the class is pruned and frozen.
- This method would be useful for debugging.</div>
- </li>
- </ul>
- <a name="debugWriteFile-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>debugWriteFile</h4>
- <pre>public void debugWriteFile​(java.lang.String directoryName)</pre>
- <div class="block">Writes a class file as <code>writeFile()</code> does although this
- method does not prune or freeze the class after writing the class
- file. Note that, once <code>writeFile()</code> or <code>toBytecode()</code>
- is called, it cannot be called again since the class is pruned and frozen.
- This method would be useful for debugging.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>directoryName</code> - it must end without a directory separator.</dd>
- </dl>
- </li>
- </ul>
- <a name="toBytecode-java.io.DataOutputStream-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>toBytecode</h4>
- <pre>public void toBytecode​(java.io.DataOutputStream out)
- throws <a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a>,
- java.io.IOException</pre>
- <div class="block">Converts this class to a class file.
- Once this method is called, further modifications are not
- possible any more.
-
- <p>This method dose not close the output stream in the end.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>out</code> - the output stream that a class file is written to.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../javassist/CannotCompileException.html" title="class in javassist">CannotCompileException</a></code></dd>
- <dd><code>java.io.IOException</code></dd>
- </dl>
- </li>
- </ul>
- <a name="makeUniqueName-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>makeUniqueName</h4>
- <pre>public java.lang.String makeUniqueName​(java.lang.String prefix)</pre>
- <div class="block">Makes a unique member name. This method guarantees that
- the returned name is not used as a prefix of any methods
- or fields visible in this class.
- If the returned name is XYZ, then any method or field names
- in this class do not start with XYZ.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>prefix</code> - the prefix of the member name.</dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- <!-- ========= END OF CLASS DATA ========= -->
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <div class="bottomNav"><a name="navbar.bottom">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
- <a name="navbar.bottom.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="class-use/CtClass.html">Use</a></li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../deprecated-list.html">Deprecated</a></li>
- <li><a href="../index-all.html">Index</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../javassist/CtBehavior.html" title="class in javassist"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../javassist/CtConstructor.html" title="class in javassist"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../index.html?javassist/CtClass.html" target="_top">Frames</a></li>
- <li><a href="CtClass.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_bottom">
- <li><a href="../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- <noscript>
- <div>JavaScript is disabled on your browser.</div>
- </noscript>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li><a href="#field.summary">Field</a> | </li>
- <li>Constr | </li>
- <li><a href="#method.summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li><a href="#field.detail">Field</a> | </li>
- <li>Constr | </li>
- <li><a href="#method.detail">Method</a></li>
- </ul>
- </div>
- <a name="skip.navbar.bottom">
- <!-- -->
- </a></div>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <p class="legalCopy"><small><i>Javassist, a Java-bytecode translator toolkit.<br>
- Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i></small></p>
- </body>
- </html>
|