PageRenderTime 67ms CodeModel.GetById 36ms app.highlight 25ms RepoModel.GetById 1ms app.codeStats 1ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html

#
HTML | 431 lines | 375 code | 44 blank | 12 comment | 0 complexity | 5ef0922e5f90bd4a66d4a8de1838370b MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:50 GMT-08:00 2008 -->
  6<TITLE>
  7ClassWriter (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.org.objectweb.asm.ClassWriter class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../../stylesheet.css" TITLE="Style">
 13
 14
 15<NOSCRIPT>
 16</NOSCRIPT>
 17
 18</HEAD>
 19
 20<BODY BGCOLOR="white" >
 21
 22
 23<!-- ========= START OF TOP NAVBAR ======= -->
 24<A NAME="navbar_top"><!-- --></A>
 25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 27<TR>
 28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 29<A NAME="navbar_top_firstrow"><!-- --></A>
 30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 31  <TR ALIGN="center" VALIGN="top">
 32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClassWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 40  </TR>
 41</TABLE>
 42</TD>
 43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 44</EM>
 45</TD>
 46</TR>
 47
 48<TR>
 49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 50&nbsp;<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../../../../../index.html?org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="ClassWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 55&nbsp;
 56<NOSCRIPT>
 57  <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 58</NOSCRIPT>
 59
 60
 61</FONT></TD>
 62</TR>
 63<TR>
 64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 65  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 67DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 68</TR>
 69</TABLE>
 70<A NAME="skip-navbar_top"></A>
 71<!-- ========= END OF TOP NAVBAR ========= -->
 72
 73<HR>
 74<!-- ======== START OF CLASS DATA ======== -->
 75<H2>
 76<FONT SIZE="-1">
 77org.gjt.sp.jedit.bsh.org.objectweb.asm</FONT>
 78<BR>
 79Class ClassWriter</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.org.objectweb.asm.ClassWriter</B>
 83</PRE>
 84<DL>
 85<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassVisitor</A></DD>
 86</DL>
 87<HR>
 88<DL>
 89<DT><PRE>public class <B>ClassWriter</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassVisitor</A></DL>
 90</PRE>
 91
 92<P>
 93A <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>ClassVisitor</CODE></A> that generates Java class files. More
 94 precisely this visitor generates a byte array conforming to the Java class
 95 file format. It can be used alone, to generate a Java class "from scratch",
 96 or with one or more adapter class
 97 visitors to generate a modified class from one or more existing Java classes.
 98<P>
 99
100<P>
101<HR>
102
103<P>
104
105<!-- ======== CONSTRUCTOR SUMMARY ======== -->
106
107<A NAME="constructor_summary"><!-- --></A>
108<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
109<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
110<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
111<B>Constructor Summary</B></FONT></TH>
112</TR>
113<TR BGCOLOR="white" CLASS="TableRowColor">
114<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#ClassWriter(boolean)">ClassWriter</A></B>(boolean&nbsp;computeMaxs)</CODE>
115
116<BR>
117&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>ClassWriter</CODE></A> object.</TD>
118</TR>
119</TABLE>
120&nbsp;
121<!-- ========== METHOD SUMMARY =========== -->
122
123<A NAME="method_summary"><!-- --></A>
124<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
125<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
126<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
127<B>Method Summary</B></FONT></TH>
128</TR>
129<TR BGCOLOR="white" CLASS="TableRowColor">
130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131<CODE>&nbsp;byte[]</CODE></FONT></TD>
132<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#toByteArray()">toByteArray</A></B>()</CODE>
133
134<BR>
135&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bytecode of the class that was build with this class writer.</TD>
136</TR>
137<TR BGCOLOR="white" CLASS="TableRowColor">
138<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139<CODE>&nbsp;void</CODE></FONT></TD>
140<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#visit(int, java.lang.String, java.lang.String, java.lang.String[], java.lang.String)">visit</A></B>(int&nbsp;access,
141      java.lang.String&nbsp;name,
142      java.lang.String&nbsp;superName,
143      java.lang.String[]&nbsp;interfaces,
144      java.lang.String&nbsp;sourceFile)</CODE>
145
146<BR>
147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visits the header of the class.</TD>
148</TR>
149<TR BGCOLOR="white" CLASS="TableRowColor">
150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151<CODE>&nbsp;void</CODE></FONT></TD>
152<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#visitEnd()">visitEnd</A></B>()</CODE>
153
154<BR>
155&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visits the end of the class.</TD>
156</TR>
157<TR BGCOLOR="white" CLASS="TableRowColor">
158<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159<CODE>&nbsp;void</CODE></FONT></TD>
160<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#visitField(int, java.lang.String, java.lang.String, java.lang.Object)">visitField</A></B>(int&nbsp;access,
161           java.lang.String&nbsp;name,
162           java.lang.String&nbsp;desc,
163           java.lang.Object&nbsp;value)</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visits a field of the class.</TD>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE>&nbsp;void</CODE></FONT></TD>
171<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#visitInnerClass(java.lang.String, java.lang.String, java.lang.String, int)">visitInnerClass</A></B>(java.lang.String&nbsp;name,
172                java.lang.String&nbsp;outerName,
173                java.lang.String&nbsp;innerName,
174                int&nbsp;access)</CODE>
175
176<BR>
177&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visits information about an inner class.</TD>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181<CODE>&nbsp;<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">CodeVisitor</A></CODE></FONT></TD>
182<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#visitMethod(int, java.lang.String, java.lang.String, java.lang.String[])">visitMethod</A></B>(int&nbsp;access,
183            java.lang.String&nbsp;name,
184            java.lang.String&nbsp;desc,
185            java.lang.String[]&nbsp;exceptions)</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visits a method of the class.</TD>
189</TR>
190</TABLE>
191&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
192<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
193<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
194<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
198</TR>
199</TABLE>
200&nbsp;
201<P>
202
203<!-- ========= CONSTRUCTOR DETAIL ======== -->
204
205<A NAME="constructor_detail"><!-- --></A>
206<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
207<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
208<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
209<B>Constructor Detail</B></FONT></TH>
210</TR>
211</TABLE>
212
213<A NAME="ClassWriter(boolean)"><!-- --></A><H3>
214ClassWriter</H3>
215<PRE>
216public <B>ClassWriter</B>(boolean&nbsp;computeMaxs)</PRE>
217<DL>
218<DD>Constructs a new <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>ClassWriter</CODE></A> object.
219<P>
220<DL>
221<DT><B>Parameters:</B><DD><CODE>computeMaxs</CODE> - <tt>true</tt> if the maximum stack size and the maximum
222      number of local variables must be automatically computed. If this flag
223      is <tt>true</tt>, then the arguments of the <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitMaxs(int, int)"><CODE>visitMaxs</CODE></A> method of the <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>CodeVisitor</CODE></A> returned by the <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html#visitMethod(int, java.lang.String, java.lang.String, java.lang.String[])"><CODE>visitMethod</CODE></A> method
224      will be ignored, and computed automatically from the signature and
225      the bytecode of each method.</DL>
226</DL>
227
228<!-- ============ METHOD DETAIL ========== -->
229
230<A NAME="method_detail"><!-- --></A>
231<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
232<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
233<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
234<B>Method Detail</B></FONT></TH>
235</TR>
236</TABLE>
237
238<A NAME="visit(int, java.lang.String, java.lang.String, java.lang.String[], java.lang.String)"><!-- --></A><H3>
239visit</H3>
240<PRE>
241public void <B>visit</B>(int&nbsp;access,
242                  java.lang.String&nbsp;name,
243                  java.lang.String&nbsp;superName,
244                  java.lang.String[]&nbsp;interfaces,
245                  java.lang.String&nbsp;sourceFile)</PRE>
246<DL>
247<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visit(int, java.lang.String, java.lang.String, java.lang.String[], java.lang.String)">ClassVisitor</A></CODE></B></DD>
248<DD>Visits the header of the class.
249<P>
250<DD><DL>
251<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visit(int, java.lang.String, java.lang.String, java.lang.String[], java.lang.String)">visit</A></CODE> in interface <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassVisitor</A></CODE></DL>
252</DD>
253<DD><DL>
254<DT><B>Parameters:</B><DD><CODE>access</CODE> - the class's access flags (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>Constants</CODE></A>). This
255      parameter also indicates if the class is deprecated.<DD><CODE>name</CODE> - the internal name of the class (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>).<DD><CODE>superName</CODE> - the internal of name of the super class (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>). For interfaces, the super
256      class is <CODE>Object</CODE>. May be <tt>null</tt>, but only for the <CODE>java.lang.Object</CODE> class.<DD><CODE>interfaces</CODE> - the internal names of the class's interfaces (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>). May be <tt>null</tt>.<DD><CODE>sourceFile</CODE> - the name of the source file from which this class was
257      compiled. May be <tt>null</tt>.</DL>
258</DD>
259</DL>
260<HR>
261
262<A NAME="visitInnerClass(java.lang.String, java.lang.String, java.lang.String, int)"><!-- --></A><H3>
263visitInnerClass</H3>
264<PRE>
265public void <B>visitInnerClass</B>(java.lang.String&nbsp;name,
266                            java.lang.String&nbsp;outerName,
267                            java.lang.String&nbsp;innerName,
268                            int&nbsp;access)</PRE>
269<DL>
270<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitInnerClass(java.lang.String, java.lang.String, java.lang.String, int)">ClassVisitor</A></CODE></B></DD>
271<DD>Visits information about an inner class. This inner class is not
272 necessarily a member of the class being visited.
273<P>
274<DD><DL>
275<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitInnerClass(java.lang.String, java.lang.String, java.lang.String, int)">visitInnerClass</A></CODE> in interface <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassVisitor</A></CODE></DL>
276</DD>
277<DD><DL>
278<DT><B>Parameters:</B><DD><CODE>name</CODE> - the internal name of an inner class (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>).<DD><CODE>outerName</CODE> - the internal name of the class to which the inner class
279      belongs (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>). May be
280      <tt>null</tt>.<DD><CODE>innerName</CODE> - the (simple) name of the inner class inside its enclosing
281      class. May be <tt>null</tt> for anonymous inner classes.<DD><CODE>access</CODE> - the access flags of the inner class as originally declared
282      in the enclosing class.</DL>
283</DD>
284</DL>
285<HR>
286
287<A NAME="visitField(int, java.lang.String, java.lang.String, java.lang.Object)"><!-- --></A><H3>
288visitField</H3>
289<PRE>
290public void <B>visitField</B>(int&nbsp;access,
291                       java.lang.String&nbsp;name,
292                       java.lang.String&nbsp;desc,
293                       java.lang.Object&nbsp;value)</PRE>
294<DL>
295<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitField(int, java.lang.String, java.lang.String, java.lang.Object)">ClassVisitor</A></CODE></B></DD>
296<DD>Visits a field of the class.
297<P>
298<DD><DL>
299<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitField(int, java.lang.String, java.lang.String, java.lang.Object)">visitField</A></CODE> in interface <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassVisitor</A></CODE></DL>
300</DD>
301<DD><DL>
302<DT><B>Parameters:</B><DD><CODE>access</CODE> - the field's access flags (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>Constants</CODE></A>). This
303      parameter also indicates if the field is synthetic and/or deprecated.<DD><CODE>name</CODE> - the field's name.<DD><CODE>desc</CODE> - the field's descriptor (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>Type</CODE></A>).<DD><CODE>value</CODE> - the field's initial value. This parameter, which may be
304      <tt>null</tt> if the field does not have an initial value, must be an
305      <CODE>Integer</CODE>, a <CODE>Float</CODE>, a
306      <CODE>Long</CODE>, a <CODE>Double</CODE> or a
307      <CODE>String</CODE>.</DL>
308</DD>
309</DL>
310<HR>
311
312<A NAME="visitMethod(int, java.lang.String, java.lang.String, java.lang.String[])"><!-- --></A><H3>
313visitMethod</H3>
314<PRE>
315public <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">CodeVisitor</A> <B>visitMethod</B>(int&nbsp;access,
316                               java.lang.String&nbsp;name,
317                               java.lang.String&nbsp;desc,
318                               java.lang.String[]&nbsp;exceptions)</PRE>
319<DL>
320<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitMethod(int, java.lang.String, java.lang.String, java.lang.String[])">ClassVisitor</A></CODE></B></DD>
321<DD>Visits a method of the class. This method <i>must</i> return a new
322 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>CodeVisitor</CODE></A> instance (or <tt>null</tt>) each time it
323 is called, i.e., it should not return a previously returned visitor.
324<P>
325<DD><DL>
326<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitMethod(int, java.lang.String, java.lang.String, java.lang.String[])">visitMethod</A></CODE> in interface <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassVisitor</A></CODE></DL>
327</DD>
328<DD><DL>
329<DT><B>Parameters:</B><DD><CODE>access</CODE> - the method's access flags (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>Constants</CODE></A>). This
330      parameter also indicates if the method is synthetic and/or deprecated.<DD><CODE>name</CODE> - the method's name.<DD><CODE>desc</CODE> - the method's descriptor (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>Type</CODE></A>).<DD><CODE>exceptions</CODE> - the internal names of the method's exception
331      classes (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>). May be
332      <tt>null</tt>.
333<DT><B>Returns:</B><DD>an object to visit the byte code of the method, or <tt>null</tt> if
334      this class visitor is not interested in visiting the code of this
335      method.</DL>
336</DD>
337</DL>
338<HR>
339
340<A NAME="visitEnd()"><!-- --></A><H3>
341visitEnd</H3>
342<PRE>
343public void <B>visitEnd</B>()</PRE>
344<DL>
345<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitEnd()">ClassVisitor</A></CODE></B></DD>
346<DD>Visits the end of the class. This method, which is the last one to be
347 called, is used to inform the visitor that all the fields and methods of
348 the class have been visited.
349<P>
350<DD><DL>
351<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html#visitEnd()">visitEnd</A></CODE> in interface <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassVisitor</A></CODE></DL>
352</DD>
353<DD><DL>
354</DL>
355</DD>
356</DL>
357<HR>
358
359<A NAME="toByteArray()"><!-- --></A><H3>
360toByteArray</H3>
361<PRE>
362public byte[] <B>toByteArray</B>()</PRE>
363<DL>
364<DD>Returns the bytecode of the class that was build with this class writer.
365<P>
366<DD><DL>
367</DL>
368</DD>
369<DD><DL>
370
371<DT><B>Returns:</B><DD>the bytecode of the class that was build with this class writer.</DL>
372</DD>
373</DL>
374<!-- ========= END OF CLASS DATA ========= -->
375<HR>
376
377
378<!-- ======= START OF BOTTOM NAVBAR ====== -->
379<A NAME="navbar_bottom"><!-- --></A>
380<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
381<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
382<TR>
383<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
384<A NAME="navbar_bottom_firstrow"><!-- --></A>
385<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
386  <TR ALIGN="center" VALIGN="top">
387  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
388  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
389  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
390  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClassWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
391  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
392  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
393  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
394  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
395  </TR>
396</TABLE>
397</TD>
398<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
399</EM>
400</TD>
401</TR>
402
403<TR>
404<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
405&nbsp;<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><B>PREV CLASS</B></A>&nbsp;
406&nbsp;<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><B>NEXT CLASS</B></A></FONT></TD>
407<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
408  <A HREF="../../../../../../../../index.html?org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
409&nbsp;<A HREF="ClassWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
410&nbsp;
411<NOSCRIPT>
412  <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
413</NOSCRIPT>
414
415
416</FONT></TD>
417</TR>
418<TR>
419<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
420  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
421<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
422DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
423</TR>
424</TABLE>
425<A NAME="skip-navbar_bottom"></A>
426<!-- ======== END OF BOTTOM NAVBAR ======= -->
427
428<HR>
429
430</BODY>
431</HTML>