123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053 |
- <!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>MethodInfo (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="MethodInfo (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};
- var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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/MethodInfo.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/bytecode/LocalVariableTypeAttribute.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../javassist/bytecode/MethodParametersAttribute.html" title="class in javassist.bytecode"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../index.html?javassist/bytecode/MethodInfo.html" target="_top">Frames</a></li>
- <li><a href="MethodInfo.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><a href="#constructor.summary">Constr</a> | </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><a href="#constructor.detail">Constr</a> | </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/bytecode/package-summary.html">javassist.bytecode</a></div>
- <h2 title="Class MethodInfo" class="title">Class MethodInfo</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li>java.lang.Object</li>
- <li>
- <ul class="inheritance">
- <li>javassist.bytecode.MethodInfo</li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <hr>
- <pre>public class <span class="typeNameLabel">MethodInfo</span>
- extends java.lang.Object</pre>
- <div class="block"><code>method_info</code> structure.
-
- <p>The bytecode sequence of the method is represented
- by a <code>CodeAttribute</code> object.
-
- <p>The following code adds the default constructor to a class:
- of <code>int</code> type:
- <blockquote><pre>
- ClassFile cf = ...
- Bytecode code = new Bytecode(cf.getConstPool());
- code.addAload(0);
- code.addInvokespecial("java/lang/Object", MethodInfo.nameInit, "()V");
- code.addReturn(null);
- code.setMaxLocals(1);
-
- MethodInfo minfo = new MethodInfo(cf.getConstPool(), MethodInfo.nameInit, "()V");
- minfo.setCodeAttribute(code.toCodeAttribute());
- cf.addMethod(minfo);
- </pre></blockquote></div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/MethodInfo.html#getCodeAttribute--"><code>getCodeAttribute()</code></a>,
- <a href="../../javassist/bytecode/CodeAttribute.html" title="class in javassist.bytecode"><code>CodeAttribute</code></a>,
- <a href="../../javassist/bytecode/Bytecode.html" title="class in javassist.bytecode"><code>Bytecode</code></a>,
- <a href="../../javassist/CtBehavior.html#getMethodInfo--"><code>CtBehavior.getMethodInfo()</code></a>,
- <a href="../../javassist/CtBehavior.html#getMethodInfo--"><code>CtBehavior.getMethodInfo()</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 boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#doPreverify">doPreverify</a></span></code></th>
- <td class="colLast">
- <div class="block">If this value is true, Javassist maintains a <code>StackMap</code> attribute
- generated by the <code>preverify</code> tool of J2ME (CLDC).</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/bytecode/MethodInfo.html#nameClinit">nameClinit</a></span></code></th>
- <td class="colLast">
- <div class="block">The name of class initializer (static initializer):
- <code><clinit></code>.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#nameInit">nameInit</a></span></code></th>
- <td class="colLast">
- <div class="block">The name of constructors: <code><init></code>.</div>
- </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.summary">
- <!-- -->
- </a>
- <h3>Constructor Summary</h3>
- <table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
- <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colFirst" scope="col">Constructor</th>
- <th class="colLast" scope="col">Description</th>
- </tr>
- <tr class="altColor">
- <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#MethodInfo-javassist.bytecode.ConstPool-java.lang.String-java.lang.String-">MethodInfo</a></span>​(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a> cp,
- java.lang.String methodname,
- java.lang.String desc)</code></th>
- <td class="colLast">
- <div class="block">Constructs a <code>method_info</code> structure.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#MethodInfo-javassist.bytecode.ConstPool-java.lang.String-javassist.bytecode.MethodInfo-java.util.Map-">MethodInfo</a></span>​(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a> cp,
- java.lang.String methodname,
- <a href="../../javassist/bytecode/MethodInfo.html" title="class in javassist.bytecode">MethodInfo</a> src,
- java.util.Map<java.lang.String,java.lang.String> classnameMap)</code></th>
- <td class="colLast">
- <div class="block">Constructs a copy of <code>method_info</code> structure.</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="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></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/bytecode/MethodInfo.html#addAttribute-javassist.bytecode.AttributeInfo-">addAttribute</a></span>​(<a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a> info)</code></th>
- <td class="colLast">
- <div class="block">Appends an attribute.</div>
- </td>
- </tr>
- <tr id="i1" class="rowColor">
- <td class="colFirst"><code>int</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getAccessFlags--">getAccessFlags</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns access flags.</div>
- </td>
- </tr>
- <tr id="i2" class="altColor">
- <td class="colFirst"><code><a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getAttribute-java.lang.String-">getAttribute</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Returns the attribute with the specified name.</div>
- </td>
- </tr>
- <tr id="i3" class="rowColor">
- <td class="colFirst"><code>java.util.List<<a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a>></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getAttributes--">getAttributes</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns all the attributes.</div>
- </td>
- </tr>
- <tr id="i4" class="altColor">
- <td class="colFirst"><code><a href="../../javassist/bytecode/CodeAttribute.html" title="class in javassist.bytecode">CodeAttribute</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getCodeAttribute--">getCodeAttribute</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a Code attribute.</div>
- </td>
- </tr>
- <tr id="i5" class="rowColor">
- <td class="colFirst"><code><a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getConstPool--">getConstPool</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a constant pool table used by this method.</div>
- </td>
- </tr>
- <tr id="i6" class="altColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getDescriptor--">getDescriptor</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a method descriptor.</div>
- </td>
- </tr>
- <tr id="i7" class="rowColor">
- <td class="colFirst"><code><a href="../../javassist/bytecode/ExceptionsAttribute.html" title="class in javassist.bytecode">ExceptionsAttribute</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getExceptionsAttribute--">getExceptionsAttribute</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns an Exceptions attribute.</div>
- </td>
- </tr>
- <tr id="i8" class="altColor">
- <td class="colFirst"><code>int</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getLineNumber-int-">getLineNumber</a></span>​(int pos)</code></th>
- <td class="colLast">
- <div class="block">Returns the line number of the source line corresponding to the specified
- bytecode contained in this method.</div>
- </td>
- </tr>
- <tr id="i9" class="rowColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#getName--">getName</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a method name.</div>
- </td>
- </tr>
- <tr id="i10" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#isConstructor--">isConstructor</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns true if this is a constructor.</div>
- </td>
- </tr>
- <tr id="i11" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#isMethod--">isMethod</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns true if this is not a constructor or a class initializer (static
- initializer).</div>
- </td>
- </tr>
- <tr id="i12" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#isStaticInitializer--">isStaticInitializer</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns true if this is a class initializer (static initializer).</div>
- </td>
- </tr>
- <tr id="i13" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#rebuildStackMap-javassist.ClassPool-">rebuildStackMap</a></span>​(<a href="../../javassist/ClassPool.html" title="class in javassist">ClassPool</a> pool)</code></th>
- <td class="colLast">
- <div class="block">Rebuilds a stack map table.</div>
- </td>
- </tr>
- <tr id="i14" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#rebuildStackMapForME-javassist.ClassPool-">rebuildStackMapForME</a></span>​(<a href="../../javassist/ClassPool.html" title="class in javassist">ClassPool</a> pool)</code></th>
- <td class="colLast">
- <div class="block">Rebuilds a stack map table for J2ME (CLDC).</div>
- </td>
- </tr>
- <tr id="i15" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#rebuildStackMapIf6-javassist.ClassPool-javassist.bytecode.ClassFile-">rebuildStackMapIf6</a></span>​(<a href="../../javassist/ClassPool.html" title="class in javassist">ClassPool</a> pool,
- <a href="../../javassist/bytecode/ClassFile.html" title="class in javassist.bytecode">ClassFile</a> cf)</code></th>
- <td class="colLast">
- <div class="block">Rebuilds a stack map table if the class file is for Java 6
- or later.</div>
- </td>
- </tr>
- <tr id="i16" class="altColor">
- <td class="colFirst"><code><a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a></code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#removeAttribute-java.lang.String-">removeAttribute</a></span>​(java.lang.String name)</code></th>
- <td class="colLast">
- <div class="block">Removes an attribute with the specified name.</div>
- </td>
- </tr>
- <tr id="i17" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#removeCodeAttribute--">removeCodeAttribute</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Removes a Code attribute.</div>
- </td>
- </tr>
- <tr id="i18" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#removeExceptionsAttribute--">removeExceptionsAttribute</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Removes an Exception attribute.</div>
- </td>
- </tr>
- <tr id="i19" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#setAccessFlags-int-">setAccessFlags</a></span>​(int acc)</code></th>
- <td class="colLast">
- <div class="block">Sets access flags.</div>
- </td>
- </tr>
- <tr id="i20" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#setCodeAttribute-javassist.bytecode.CodeAttribute-">setCodeAttribute</a></span>​(<a href="../../javassist/bytecode/CodeAttribute.html" title="class in javassist.bytecode">CodeAttribute</a> cattr)</code></th>
- <td class="colLast">
- <div class="block">Adds a Code attribute.</div>
- </td>
- </tr>
- <tr id="i21" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#setDescriptor-java.lang.String-">setDescriptor</a></span>​(java.lang.String desc)</code></th>
- <td class="colLast">
- <div class="block">Sets a method descriptor.</div>
- </td>
- </tr>
- <tr id="i22" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#setExceptionsAttribute-javassist.bytecode.ExceptionsAttribute-">setExceptionsAttribute</a></span>​(<a href="../../javassist/bytecode/ExceptionsAttribute.html" title="class in javassist.bytecode">ExceptionsAttribute</a> cattr)</code></th>
- <td class="colLast">
- <div class="block">Adds an Exception attribute.</div>
- </td>
- </tr>
- <tr id="i23" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#setName-java.lang.String-">setName</a></span>​(java.lang.String newName)</code></th>
- <td class="colLast">
- <div class="block">Sets a method name.</div>
- </td>
- </tr>
- <tr id="i24" class="altColor">
- <td class="colFirst"><code>void</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#setSuperclass-java.lang.String-">setSuperclass</a></span>​(java.lang.String superclass)</code></th>
- <td class="colLast">
- <div class="block">Changes a super constructor called by this constructor.</div>
- </td>
- </tr>
- <tr id="i25" class="rowColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../javassist/bytecode/MethodInfo.html#toString--">toString</a></span>()</code></th>
- <td class="colLast">
- <div class="block">Returns a string representation of the object.</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="doPreverify">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>doPreverify</h4>
- <pre>public static boolean doPreverify</pre>
- <div class="block">If this value is true, Javassist maintains a <code>StackMap</code> attribute
- generated by the <code>preverify</code> tool of J2ME (CLDC). The initial
- value of this field is <code>false</code>.</div>
- </li>
- </ul>
- <a name="nameInit">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>nameInit</h4>
- <pre>public static final java.lang.String nameInit</pre>
- <div class="block">The name of constructors: <code><init></code>.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../constant-values.html#javassist.bytecode.MethodInfo.nameInit">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- <a name="nameClinit">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>nameClinit</h4>
- <pre>public static final java.lang.String nameClinit</pre>
- <div class="block">The name of class initializer (static initializer):
- <code><clinit></code>.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../constant-values.html#javassist.bytecode.MethodInfo.nameClinit">Constant Field Values</a></dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.detail">
- <!-- -->
- </a>
- <h3>Constructor Detail</h3>
- <a name="MethodInfo-javassist.bytecode.ConstPool-java.lang.String-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>MethodInfo</h4>
- <pre>public MethodInfo​(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a> cp,
- java.lang.String methodname,
- java.lang.String desc)</pre>
- <div class="block">Constructs a <code>method_info</code> structure. The initial value of
- <code>access_flags</code> is zero.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>cp</code> - a constant pool table</dd>
- <dd><code>methodname</code> - method name</dd>
- <dd><code>desc</code> - method descriptor</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="MethodInfo-javassist.bytecode.ConstPool-java.lang.String-javassist.bytecode.MethodInfo-java.util.Map-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>MethodInfo</h4>
- <pre>public MethodInfo​(<a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a> cp,
- java.lang.String methodname,
- <a href="../../javassist/bytecode/MethodInfo.html" title="class in javassist.bytecode">MethodInfo</a> src,
- java.util.Map<java.lang.String,java.lang.String> classnameMap)
- throws <a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></pre>
- <div class="block">Constructs a copy of <code>method_info</code> structure. Class names
- appearing in the source <code>method_info</code> are renamed according
- to <code>classnameMap</code>.
-
- <p>
- Note: only <code>Code</code> and <code>Exceptions</code> attributes
- are copied from the source. The other attributes are ignored.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>cp</code> - a constant pool table</dd>
- <dd><code>methodname</code> - a method name</dd>
- <dd><code>src</code> - a source <code>method_info</code></dd>
- <dd><code>classnameMap</code> - specifies pairs of replaced and substituted name.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</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>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.detail">
- <!-- -->
- </a>
- <h3>Method Detail</h3>
- <a name="toString--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>toString</h4>
- <pre>public java.lang.String toString()</pre>
- <div class="block">Returns a string representation of the object.</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="getName--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getName</h4>
- <pre>public java.lang.String getName()</pre>
- <div class="block">Returns a method name.</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 newName)</pre>
- <div class="block">Sets a method name.</div>
- </li>
- </ul>
- <a name="isMethod--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isMethod</h4>
- <pre>public boolean isMethod()</pre>
- <div class="block">Returns true if this is not a constructor or a class initializer (static
- initializer).</div>
- </li>
- </ul>
- <a name="getConstPool--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getConstPool</h4>
- <pre>public <a href="../../javassist/bytecode/ConstPool.html" title="class in javassist.bytecode">ConstPool</a> getConstPool()</pre>
- <div class="block">Returns a constant pool table used by this method.</div>
- </li>
- </ul>
- <a name="isConstructor--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isConstructor</h4>
- <pre>public boolean isConstructor()</pre>
- <div class="block">Returns true if this is a constructor.</div>
- </li>
- </ul>
- <a name="isStaticInitializer--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>isStaticInitializer</h4>
- <pre>public boolean isStaticInitializer()</pre>
- <div class="block">Returns true if this is a class initializer (static initializer).</div>
- </li>
- </ul>
- <a name="getAccessFlags--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAccessFlags</h4>
- <pre>public int getAccessFlags()</pre>
- <div class="block">Returns access flags.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/AccessFlag.html" title="class in javassist.bytecode"><code>AccessFlag</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="setAccessFlags-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setAccessFlags</h4>
- <pre>public void setAccessFlags​(int acc)</pre>
- <div class="block">Sets access flags.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/AccessFlag.html" title="class in javassist.bytecode"><code>AccessFlag</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getDescriptor--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDescriptor</h4>
- <pre>public java.lang.String getDescriptor()</pre>
- <div class="block">Returns a method descriptor.</div>
- <dl>
- <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="setDescriptor-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setDescriptor</h4>
- <pre>public void setDescriptor​(java.lang.String desc)</pre>
- <div class="block">Sets a method descriptor.</div>
- <dl>
- <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="getAttributes--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAttributes</h4>
- <pre>public java.util.List<<a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a>> getAttributes()</pre>
- <div class="block">Returns all the attributes. The returned <code>List</code> object
- is shared with this object. If you add a new attribute to the list,
- the attribute is also added to the method represented by this
- object. If you remove an attribute from the list, it is also removed
- from the method.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>a list of <code>AttributeInfo</code> objects.</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="getAttribute-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAttribute</h4>
- <pre>public <a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a> getAttribute​(java.lang.String name)</pre>
- <div class="block">Returns the attribute with the specified name. If it is not found, this
- method returns null.
-
- <p>An attribute name can be obtained by, for example,
- <a href="../../javassist/bytecode/AnnotationsAttribute.html#visibleTag"><code>AnnotationsAttribute.visibleTag</code></a> or
- <a href="../../javassist/bytecode/AnnotationsAttribute.html#invisibleTag"><code>AnnotationsAttribute.invisibleTag</code></a>.
- </p></div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - attribute name</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>an <code>AttributeInfo</code> object or null.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/MethodInfo.html#getAttributes--"><code>getAttributes()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="removeAttribute-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>removeAttribute</h4>
- <pre>public <a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a> removeAttribute​(java.lang.String name)</pre>
- <div class="block">Removes an attribute with the specified name.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>name</code> - attribute name.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>the removed attribute or null.</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.21</dd>
- </dl>
- </li>
- </ul>
- <a name="addAttribute-javassist.bytecode.AttributeInfo-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>addAttribute</h4>
- <pre>public void addAttribute​(<a href="../../javassist/bytecode/AttributeInfo.html" title="class in javassist.bytecode">AttributeInfo</a> info)</pre>
- <div class="block">Appends an attribute. If there is already an attribute with the same
- name, the new one substitutes for it.</div>
- <dl>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/MethodInfo.html#getAttributes--"><code>getAttributes()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getExceptionsAttribute--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getExceptionsAttribute</h4>
- <pre>public <a href="../../javassist/bytecode/ExceptionsAttribute.html" title="class in javassist.bytecode">ExceptionsAttribute</a> getExceptionsAttribute()</pre>
- <div class="block">Returns an Exceptions attribute.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>an Exceptions attribute or null if it is not specified.</dd>
- </dl>
- </li>
- </ul>
- <a name="getCodeAttribute--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getCodeAttribute</h4>
- <pre>public <a href="../../javassist/bytecode/CodeAttribute.html" title="class in javassist.bytecode">CodeAttribute</a> getCodeAttribute()</pre>
- <div class="block">Returns a Code attribute.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>a Code attribute or null if it is not specified.</dd>
- </dl>
- </li>
- </ul>
- <a name="removeExceptionsAttribute--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>removeExceptionsAttribute</h4>
- <pre>public void removeExceptionsAttribute()</pre>
- <div class="block">Removes an Exception attribute.</div>
- </li>
- </ul>
- <a name="setExceptionsAttribute-javassist.bytecode.ExceptionsAttribute-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setExceptionsAttribute</h4>
- <pre>public void setExceptionsAttribute​(<a href="../../javassist/bytecode/ExceptionsAttribute.html" title="class in javassist.bytecode">ExceptionsAttribute</a> cattr)</pre>
- <div class="block">Adds an Exception attribute.
-
- <p>
- The added attribute must share the same constant pool table as this
- <code>method_info</code> structure.</div>
- </li>
- </ul>
- <a name="removeCodeAttribute--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>removeCodeAttribute</h4>
- <pre>public void removeCodeAttribute()</pre>
- <div class="block">Removes a Code attribute.</div>
- </li>
- </ul>
- <a name="setCodeAttribute-javassist.bytecode.CodeAttribute-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setCodeAttribute</h4>
- <pre>public void setCodeAttribute​(<a href="../../javassist/bytecode/CodeAttribute.html" title="class in javassist.bytecode">CodeAttribute</a> cattr)</pre>
- <div class="block">Adds a Code attribute.
-
- <p>
- The added attribute must share the same constant pool table as this
- <code>method_info</code> structure.</div>
- </li>
- </ul>
- <a name="rebuildStackMapIf6-javassist.ClassPool-javassist.bytecode.ClassFile-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>rebuildStackMapIf6</h4>
- <pre>public void rebuildStackMapIf6​(<a href="../../javassist/ClassPool.html" title="class in javassist">ClassPool</a> pool,
- <a href="../../javassist/bytecode/ClassFile.html" title="class in javassist.bytecode">ClassFile</a> cf)
- throws <a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></pre>
- <div class="block">Rebuilds a stack map table if the class file is for Java 6
- or later. Java 5 or older Java VMs do not recognize a stack
- map table. If <code>doPreverify</code> is true, this method
- also rebuilds a stack map for J2ME (CLDC).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>pool</code> - used for making type hierarchy.</dd>
- <dd><code>cf</code> - rebuild if this class file is for Java 6 or later.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.6</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/MethodInfo.html#rebuildStackMap-javassist.ClassPool-"><code>rebuildStackMap(ClassPool)</code></a>,
- <a href="../../javassist/bytecode/MethodInfo.html#rebuildStackMapForME-javassist.ClassPool-"><code>rebuildStackMapForME(ClassPool)</code></a>,
- <a href="../../javassist/bytecode/MethodInfo.html#doPreverify"><code>doPreverify</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="rebuildStackMap-javassist.ClassPool-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>rebuildStackMap</h4>
- <pre>public void rebuildStackMap​(<a href="../../javassist/ClassPool.html" title="class in javassist">ClassPool</a> pool)
- throws <a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></pre>
- <div class="block">Rebuilds a stack map table. If no stack map table is included,
- a new one is created. If this <code>MethodInfo</code> does not
- include a code attribute, nothing happens.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>pool</code> - used for making type hierarchy.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.6</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/StackMapTable.html" title="class in javassist.bytecode"><code>StackMapTable</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="rebuildStackMapForME-javassist.ClassPool-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>rebuildStackMapForME</h4>
- <pre>public void rebuildStackMapForME​(<a href="../../javassist/ClassPool.html" title="class in javassist">ClassPool</a> pool)
- throws <a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></pre>
- <div class="block">Rebuilds a stack map table for J2ME (CLDC). If no stack map table is included,
- a new one is created. If this <code>MethodInfo</code> does not
- include a code attribute, nothing happens.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>pool</code> - used for making type hierarchy.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></code></dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>3.12</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../javassist/bytecode/StackMap.html" title="class in javassist.bytecode"><code>StackMap</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getLineNumber-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getLineNumber</h4>
- <pre>public int getLineNumber​(int pos)</pre>
- <div class="block">Returns the line number of the source line corresponding to the specified
- bytecode contained in this method.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>pos</code> - the position of the bytecode (>= 0). an index into the code
- array.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>-1 if this information is not available.</dd>
- </dl>
- </li>
- </ul>
- <a name="setSuperclass-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>setSuperclass</h4>
- <pre>public void setSuperclass​(java.lang.String superclass)
- throws <a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></pre>
- <div class="block">Changes a super constructor called by this constructor.
-
- <p>
- This method modifies a call to <code>super()</code>, which should be
- at the head of a constructor body, so that a constructor in a different
- super class is called. This method does not change actual parameters.
- Hence the new super class must have a constructor with the same signature
- as the original one.
-
- <p>
- This method should be called when the super class of the class declaring
- this method is changed.
-
- <p>
- This method does not perform anything unless this <code>MethodInfo</code>
- represents a constructor.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>superclass</code> - the new super class</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../../javassist/bytecode/BadBytecode.html" title="class in javassist.bytecode">BadBytecode</a></code></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/MethodInfo.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/bytecode/LocalVariableTypeAttribute.html" title="class in javassist.bytecode"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../javassist/bytecode/MethodParametersAttribute.html" title="class in javassist.bytecode"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../index.html?javassist/bytecode/MethodInfo.html" target="_top">Frames</a></li>
- <li><a href="MethodInfo.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><a href="#constructor.summary">Constr</a> | </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><a href="#constructor.detail">Constr</a> | </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>
|