/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html
HTML | 906 lines | 810 code | 84 blank | 12 comment | 0 complexity | 66963db2c0109f65a63b10d752700a4d MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
Large files files are truncated, but you can click here to view the full 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>
7CodeWriter (jEdit API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.org.objectweb.asm.CodeWriter 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> </TD>
33 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
34 <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CodeWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm"><B>PREV CLASS</B></A>
51 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.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/CodeWriter.html" target="_top"><B>FRAMES</B></A>
54 <A HREF="CodeWriter.html" target="_top"><B>NO FRAMES</B></A>
55
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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
67DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 CodeWriter</H2>
80<PRE>
81java.lang.Object
82 <IMG SRC="../../../../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.org.objectweb.asm.CodeWriter</B>
83</PRE>
84<DL>
85<DT><B>All Implemented Interfaces:</B> <DD><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></DD>
86</DL>
87<HR>
88<DL>
89<DT><PRE>public class <B>CodeWriter</B><DT>extends java.lang.Object<DT>implements <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></DL>
90</PRE>
91
92<P>
93A <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> that generates Java bytecode instructions.
94 Each visit method of this class appends the bytecode corresponding to the
95 visited instruction to a byte vector, in the order these methods are called.
96<P>
97
98<P>
99<HR>
100
101<P>
102
103<!-- ======== CONSTRUCTOR SUMMARY ======== -->
104
105<A NAME="constructor_summary"><!-- --></A>
106<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
107<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
108<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
109<B>Constructor Summary</B></FONT></TH>
110</TR>
111<TR BGCOLOR="white" CLASS="TableRowColor">
112<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
113<CODE>protected </CODE></FONT></TD>
114<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#CodeWriter(org.gjt.sp.jedit.bsh.org.objectweb.asm.ClassWriter, boolean)">CodeWriter</A></B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassWriter</A> cw,
115 boolean computeMaxs)</CODE>
116
117<BR>
118 Constructs a CodeWriter.</TD>
119</TR>
120</TABLE>
121
122<!-- ========== METHOD SUMMARY =========== -->
123
124<A NAME="method_summary"><!-- --></A>
125<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
126<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
127<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
128<B>Method Summary</B></FONT></TH>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132<CODE>protected byte[]</CODE></FONT></TD>
133<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#getCode()">getCode</A></B>()</CODE>
134
135<BR>
136 Returns the current bytecode of this method.</TD>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>protected int</CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#getCodeSize()">getCodeSize</A></B>()</CODE>
142
143<BR>
144 Returns the current size of the bytecode of this method.</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>protected void</CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#init(int, java.lang.String, java.lang.String, java.lang.String[])">init</A></B>(int access,
150 java.lang.String name,
151 java.lang.String desc,
152 java.lang.String[] exceptions)</CODE>
153
154<BR>
155 Initializes this CodeWriter to define the bytecode of the specified method.</TD>
156</TR>
157<TR BGCOLOR="white" CLASS="TableRowColor">
158<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159<CODE>protected int[]</CODE></FONT></TD>
160<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#resizeInstructions(int[], int[], int)">resizeInstructions</A></B>(int[] indexes,
161 int[] sizes,
162 int len)</CODE>
163
164<BR>
165 Resizes the designated instructions, while keeping jump offsets and
166 instruction addresses consistent.</TD>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE> void</CODE></FONT></TD>
171<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitFieldInsn(int, java.lang.String, java.lang.String, java.lang.String)">visitFieldInsn</A></B>(int opcode,
172 java.lang.String owner,
173 java.lang.String name,
174 java.lang.String desc)</CODE>
175
176<BR>
177 Visits a field instruction.</TD>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181<CODE> void</CODE></FONT></TD>
182<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitIincInsn(int, int)">visitIincInsn</A></B>(int var,
183 int increment)</CODE>
184
185<BR>
186 Visits an IINC instruction.</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE> void</CODE></FONT></TD>
191<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitInsn(int)">visitInsn</A></B>(int opcode)</CODE>
192
193<BR>
194 Visits a zero operand instruction.</TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE> void</CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitIntInsn(int, int)">visitIntInsn</A></B>(int opcode,
200 int operand)</CODE>
201
202<BR>
203 Visits an instruction with a single int operand.</TD>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207<CODE> void</CODE></FONT></TD>
208<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitJumpInsn(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">visitJumpInsn</A></B>(int opcode,
209 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> label)</CODE>
210
211<BR>
212 Visits a jump instruction.</TD>
213</TR>
214<TR BGCOLOR="white" CLASS="TableRowColor">
215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216<CODE> void</CODE></FONT></TD>
217<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitLabel(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">visitLabel</A></B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> label)</CODE>
218
219<BR>
220 Visits a label.</TD>
221</TR>
222<TR BGCOLOR="white" CLASS="TableRowColor">
223<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224<CODE> void</CODE></FONT></TD>
225<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitLdcInsn(java.lang.Object)">visitLdcInsn</A></B>(java.lang.Object cst)</CODE>
226
227<BR>
228 Visits a LDC instruction.</TD>
229</TR>
230<TR BGCOLOR="white" CLASS="TableRowColor">
231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232<CODE> void</CODE></FONT></TD>
233<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitLineNumber(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">visitLineNumber</A></B>(int line,
234 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> start)</CODE>
235
236<BR>
237 Visits a line number declaration.</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE> void</CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitLocalVariable(java.lang.String, java.lang.String, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int)">visitLocalVariable</A></B>(java.lang.String name,
243 java.lang.String desc,
244 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> start,
245 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> end,
246 int index)</CODE>
247
248<BR>
249 Visits a local variable declaration.</TD>
250</TR>
251<TR BGCOLOR="white" CLASS="TableRowColor">
252<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253<CODE> void</CODE></FONT></TD>
254<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitLookupSwitchInsn(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int[], org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])">visitLookupSwitchInsn</A></B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> dflt,
255 int[] keys,
256 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A>[] labels)</CODE>
257
258<BR>
259 Visits a LOOKUPSWITCH instruction.</TD>
260</TR>
261<TR BGCOLOR="white" CLASS="TableRowColor">
262<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
263<CODE> void</CODE></FONT></TD>
264<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitMaxs(int, int)">visitMaxs</A></B>(int maxStack,
265 int maxLocals)</CODE>
266
267<BR>
268 Visits the maximum stack size and the maximum number of local variables of
269 the method.</TD>
270</TR>
271<TR BGCOLOR="white" CLASS="TableRowColor">
272<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273<CODE> void</CODE></FONT></TD>
274<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String)">visitMethodInsn</A></B>(int opcode,
275 java.lang.String owner,
276 java.lang.String name,
277 java.lang.String desc)</CODE>
278
279<BR>
280 Visits a method instruction.</TD>
281</TR>
282<TR BGCOLOR="white" CLASS="TableRowColor">
283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284<CODE> void</CODE></FONT></TD>
285<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitMultiANewArrayInsn(java.lang.String, int)">visitMultiANewArrayInsn</A></B>(java.lang.String desc,
286 int dims)</CODE>
287
288<BR>
289 Visits a MULTIANEWARRAY instruction.</TD>
290</TR>
291<TR BGCOLOR="white" CLASS="TableRowColor">
292<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293<CODE> void</CODE></FONT></TD>
294<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitTableSwitchInsn(int, int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])">visitTableSwitchInsn</A></B>(int min,
295 int max,
296 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> dflt,
297 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A>[] labels)</CODE>
298
299<BR>
300 Visits a TABLESWITCH instruction.</TD>
301</TR>
302<TR BGCOLOR="white" CLASS="TableRowColor">
303<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304<CODE> void</CODE></FONT></TD>
305<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitTryCatchBlock(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, java.lang.String)">visitTryCatchBlock</A></B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> start,
306 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> end,
307 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> handler,
308 java.lang.String type)</CODE>
309
310<BR>
311 Visits a try catch block.</TD>
312</TR>
313<TR BGCOLOR="white" CLASS="TableRowColor">
314<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
315<CODE> void</CODE></FONT></TD>
316<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitTypeInsn(int, java.lang.String)">visitTypeInsn</A></B>(int opcode,
317 java.lang.String desc)</CODE>
318
319<BR>
320 Visits a type instruction.</TD>
321</TR>
322<TR BGCOLOR="white" CLASS="TableRowColor">
323<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324<CODE> void</CODE></FONT></TD>
325<TD><CODE><B><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#visitVarInsn(int, int)">visitVarInsn</A></B>(int opcode,
326 int var)</CODE>
327
328<BR>
329 Visits a local variable instruction.</TD>
330</TR>
331</TABLE>
332 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
333<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
334<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
335<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
336</TR>
337<TR BGCOLOR="white" CLASS="TableRowColor">
338<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
339</TR>
340</TABLE>
341
342<P>
343
344<!-- ========= CONSTRUCTOR DETAIL ======== -->
345
346<A NAME="constructor_detail"><!-- --></A>
347<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
348<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
349<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
350<B>Constructor Detail</B></FONT></TH>
351</TR>
352</TABLE>
353
354<A NAME="CodeWriter(org.gjt.sp.jedit.bsh.org.objectweb.asm.ClassWriter, boolean)"><!-- --></A><H3>
355CodeWriter</H3>
356<PRE>
357protected <B>CodeWriter</B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">ClassWriter</A> cw,
358 boolean computeMaxs)</PRE>
359<DL>
360<DD>Constructs a CodeWriter.
361<P>
362<DL>
363<DT><B>Parameters:</B><DD><CODE>cw</CODE> - the class writer in which the method must be added.<DD><CODE>computeMaxs</CODE> - <tt>true</tt> if the maximum stack size and number of
364 local variables must be automatically computed.</DL>
365</DL>
366
367<!-- ============ METHOD DETAIL ========== -->
368
369<A NAME="method_detail"><!-- --></A>
370<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
371<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
372<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
373<B>Method Detail</B></FONT></TH>
374</TR>
375</TABLE>
376
377<A NAME="init(int, java.lang.String, java.lang.String, java.lang.String[])"><!-- --></A><H3>
378init</H3>
379<PRE>
380protected void <B>init</B>(int access,
381 java.lang.String name,
382 java.lang.String desc,
383 java.lang.String[] exceptions)</PRE>
384<DL>
385<DD>Initializes this CodeWriter to define the bytecode of the specified method.
386<P>
387<DD><DL>
388</DL>
389</DD>
390<DD><DL>
391<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>).<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 exceptions. May be
392 <tt>null</tt>.</DL>
393</DD>
394</DL>
395<HR>
396
397<A NAME="visitInsn(int)"><!-- --></A><H3>
398visitInsn</H3>
399<PRE>
400public void <B>visitInsn</B>(int opcode)</PRE>
401<DL>
402<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitInsn(int)">CodeVisitor</A></CODE></B></DD>
403<DD>Visits a zero operand instruction.
404<P>
405<DD><DL>
406<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitInsn(int)">visitInsn</A></CODE> in interface <CODE><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></DL>
407</DD>
408<DD><DL>
409<DT><B>Parameters:</B><DD><CODE>opcode</CODE> - the opcode of the instruction to be visited. This opcode is
410 either NOP, ACONST_NULL, ICONST_M1, ICONST_0, ICONST_1, ICONST_2,
411 ICONST_3, ICONST_4, ICONST_5, LCONST_0, LCONST_1, FCONST_0, FCONST_1,
412 FCONST_2, DCONST_0, DCONST_1,
413
414 IALOAD, LALOAD, FALOAD, DALOAD, AALOAD, BALOAD, CALOAD, SALOAD,
415 IASTORE, LASTORE, FASTORE, DASTORE, AASTORE, BASTORE, CASTORE,
416 SASTORE,
417
418 POP, POP2, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, SWAP,
419
420 IADD, LADD, FADD, DADD, ISUB, LSUB, FSUB, DSUB, IMUL, LMUL, FMUL,
421 DMUL, IDIV, LDIV, FDIV, DDIV, IREM, LREM, FREM, DREM, INEG, LNEG,
422 FNEG, DNEG, ISHL, LSHL, ISHR, LSHR, IUSHR, LUSHR, IAND, LAND, IOR,
423 LOR, IXOR, LXOR,
424
425 I2L, I2F, I2D, L2I, L2F, L2D, F2I, F2L, F2D, D2I, D2L, D2F, I2B, I2C,
426 I2S,
427
428 LCMP, FCMPL, FCMPG, DCMPL, DCMPG,
429
430 IRETURN, LRETURN, FRETURN, DRETURN, ARETURN, RETURN,
431
432 ARRAYLENGTH,
433
434 ATHROW,
435
436 MONITORENTER, or MONITOREXIT.</DL>
437</DD>
438</DL>
439<HR>
440
441<A NAME="visitIntInsn(int, int)"><!-- --></A><H3>
442visitIntInsn</H3>
443<PRE>
444public void <B>visitIntInsn</B>(int opcode,
445 int operand)</PRE>
446<DL>
447<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitIntInsn(int, int)">CodeVisitor</A></CODE></B></DD>
448<DD>Visits an instruction with a single int operand.
449<P>
450<DD><DL>
451<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitIntInsn(int, int)">visitIntInsn</A></CODE> in interface <CODE><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></DL>
452</DD>
453<DD><DL>
454<DT><B>Parameters:</B><DD><CODE>opcode</CODE> - the opcode of the instruction to be visited. This opcode is
455 either BIPUSH, SIPUSH or NEWARRAY.<DD><CODE>operand</CODE> - the operand of the instruction to be visited.</DL>
456</DD>
457</DL>
458<HR>
459
460<A NAME="visitVarInsn(int, int)"><!-- --></A><H3>
461visitVarInsn</H3>
462<PRE>
463public void <B>visitVarInsn</B>(int opcode,
464 int var)</PRE>
465<DL>
466<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitVarInsn(int, int)">CodeVisitor</A></CODE></B></DD>
467<DD>Visits a local variable instruction. A local variable instruction is an
468 instruction that loads or stores the value of a local variable.
469<P>
470<DD><DL>
471<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitVarInsn(int, int)">visitVarInsn</A></CODE> in interface <CODE><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></DL>
472</DD>
473<DD><DL>
474<DT><B>Parameters:</B><DD><CODE>opcode</CODE> - the opcode of the local variable instruction to be visited.
475 This opcode is either ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE,
476 LSTORE, FSTORE, DSTORE, ASTORE or RET.<DD><CODE>var</CODE> - the operand of the instruction to be visited. This operand is
477 the index of a local variable.</DL>
478</DD>
479</DL>
480<HR>
481
482<A NAME="visitTypeInsn(int, java.lang.String)"><!-- --></A><H3>
483visitTypeInsn</H3>
484<PRE>
485public void <B>visitTypeInsn</B>(int opcode,
486 java.lang.String desc)</PRE>
487<DL>
488<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitTypeInsn(int, java.lang.String)">CodeVisitor</A></CODE></B></DD>
489<DD>Visits a type instruction. A type instruction is an instruction that
490 takes a type descriptor as parameter.
491<P>
492<DD><DL>
493<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitTypeInsn(int, java.lang.String)">visitTypeInsn</A></CODE> in interface <CODE><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></DL>
494</DD>
495<DD><DL>
496<DT><B>Parameters:</B><DD><CODE>opcode</CODE> - the opcode of the type instruction to be visited. This opcode
497 is either NEW, ANEWARRAY, CHECKCAST or INSTANCEOF.<DD><CODE>desc</CODE> - the operand of the instruction to be visited. This operand is
498 must be a fully qualified class name in internal form, or the type
499 descriptor of an array type (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>).</DL>
500</DD>
501</DL>
502<HR>
503
504<A NAME="visitFieldInsn(int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
505visitFieldInsn</H3>
506<PRE>
507public void <B>visitFieldInsn</B>(int opcode,
508 java.lang.String owner,
509 java.lang.String name,
510 java.lang.String desc)</PRE>
511<DL>
512<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitFieldInsn(int, java.lang.String, java.lang.String, java.lang.String)">CodeVisitor</A></CODE></B></DD>
513<DD>Visits a field instruction. A field instruction is an instruction that
514 loads or stores the value of a field of an object.
515<P>
516<DD><DL>
517<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitFieldInsn(int, java.lang.String, java.lang.String, java.lang.String)">visitFieldInsn</A></CODE> in interface <CODE><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></DL>
518</DD>
519<DD><DL>
520<DT><B>Parameters:</B><DD><CODE>opcode</CODE> - the opcode of the type instruction to be visited. This opcode
521 is either GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.<DD><CODE>owner</CODE> - the internal name of the field's owner class (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>).<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>).</DL>
522</DD>
523</DL>
524<HR>
525
526<A NAME="visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
527visitMethodInsn</H3>
528<PRE>
529public void <B>visitMethodInsn</B>(int opcode,
530 java.lang.String owner,
531 java.lang.String name,
532 java.lang.String desc)</PRE>
533<DL>
534<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String)">CodeVisitor</A></CODE></B></DD>
535<DD>Visits a method instruction. A method instruction is an instruction that
536 invokes a method.
537<P>
538<DD><DL>
539<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String)">visitMethodInsn</A></CODE> in interface <CODE><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></DL>
540</DD>
541<DD><DL>
542<DT><B>Parameters:</B><DD><CODE>opcode</CODE> - the opcode of the type instruction to be visited. This opcode
543 is either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or
544 INVOKEINTERFACE.<DD><CODE>owner</CODE> - the internal name of the method's owner class (see <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.html#getInternalName()"><CODE>getInternalName</CODE></A>).<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>).</DL>
545</DD>
546</DL>
547<HR>
548
549<A NAME="visitJumpInsn(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)"><!-- --></A><H3>
550visitJumpInsn</H3>
551<PRE>
552public void <B>visitJumpInsn</B>(int opcode,
553 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> label)</PRE>
554<DL>
555<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitJumpInsn(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">CodeVisitor</A></CODE></B></DD>
556<DD>Visits a jump instruction. A jump instruction is an instruction that may
557 jump to another instruction.
558<P>
559<DD><DL>
560<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitJumpInsn(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">visitJumpInsn</A></CODE> in interface <CODE><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></DL>
561</DD>
562<DD><DL>
563<DT><B>Parameters:</B><DD><CODE>opcode</CODE> - the opcode of the type instruction to be visited. This opcode
564 is either IFEQ, IFNE, IFLT, IFGE, IFGT, IFLE, IF_ICMPEQ, IF_ICMPNE,
565 IF_ICMPLT, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE, IF_ACMPEQ, IF_ACMPNE,
566 GOTO, JSR, IFNULL or IFNONNULL.<DD><CODE>label</CODE> - the operand of the instruction to be visited. This operand is
567 a label that designates the instruction to which the jump instruction
568 may jump.</DL>
569</DD>
570</DL>
571<HR>
572
573<A NAME="visitLabel(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)"><!-- --></A><H3>
574visitLabel</H3>
575<PRE>
576public void <B>visitLabel</B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> label)</PRE>
577<DL>
578<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLabel(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">CodeVisitor</A></CODE></B></DD>
579<DD>Visits a label. A label designates the instruction that will be visited
580 just after it.
581<P>
582<DD><DL>
583<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLabel(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">visitLabel</A></CODE> in interface <CODE><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></DL>
584</DD>
585<DD><DL>
586<DT><B>Parameters:</B><DD><CODE>label</CODE> - a <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>Label</CODE></A> object.</DL>
587</DD>
588</DL>
589<HR>
590
591<A NAME="visitLdcInsn(java.lang.Object)"><!-- --></A><H3>
592visitLdcInsn</H3>
593<PRE>
594public void <B>visitLdcInsn</B>(java.lang.Object cst)</PRE>
595<DL>
596<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLdcInsn(java.lang.Object)">CodeVisitor</A></CODE></B></DD>
597<DD>Visits a LDC instruction.
598<P>
599<DD><DL>
600<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLdcInsn(java.lang.Object)">visitLdcInsn</A></CODE> in interface <CODE><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></DL>
601</DD>
602<DD><DL>
603<DT><B>Parameters:</B><DD><CODE>cst</CODE> - the constant to be loaded on the stack. This parameter must be
604 a non null <CODE>Integer</CODE>, a <CODE>Float</CODE>, a <CODE>Long</CODE>, a <CODE>Double</CODE> or a <CODE>String</CODE>.</DL>
605</DD>
606</DL>
607<HR>
608
609<A NAME="visitIincInsn(int, int)"><!-- --></A><H3>
610visitIincInsn</H3>
611<PRE>
612public void <B>visitIincInsn</B>(int var,
613 int increment)</PRE>
614<DL>
615<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitIincInsn(int, int)">CodeVisitor</A></CODE></B></DD>
616<DD>Visits an IINC instruction.
617<P>
618<DD><DL>
619<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitIincInsn(int, int)">visitIincInsn</A></CODE> in interface <CODE><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></DL>
620</DD>
621<DD><DL>
622<DT><B>Parameters:</B><DD><CODE>var</CODE> - index of the local variable to be incremented.<DD><CODE>increment</CODE> - amount to increment the local variable by.</DL>
623</DD>
624</DL>
625<HR>
626
627<A NAME="visitTableSwitchInsn(int, int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])"><!-- --></A><H3>
628visitTableSwitchInsn</H3>
629<PRE>
630public void <B>visitTableSwitchInsn</B>(int min,
631 int max,
632 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> dflt,
633 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A>[] labels)</PRE>
634<DL>
635<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitTableSwitchInsn(int, int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])">CodeVisitor</A></CODE></B></DD>
636<DD>Visits a TABLESWITCH instruction.
637<P>
638<DD><DL>
639<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitTableSwitchInsn(int, int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])">visitTableSwitchInsn</A></CODE> in interface <CODE><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></DL>
640</DD>
641<DD><DL>
642<DT><B>Parameters:</B><DD><CODE>min</CODE> - the minimum key value.<DD><CODE>max</CODE> - the maximum key value.<DD><CODE>dflt</CODE> - beginning of the default handler block.<DD><CODE>labels</CODE> - beginnings of the handler blocks. <tt>labels[i]</tt> is the
643 beginning of the handler block for the <tt>min + i</tt> key.</DL>
644</DD>
645</DL>
646<HR>
647
648<A NAME="visitLookupSwitchInsn(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int[], org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])"><!-- --></A><H3>
649visitLookupSwitchInsn</H3>
650<PRE>
651public void <B>visitLookupSwitchInsn</B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> dflt,
652 int[] keys,
653 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A>[] labels)</PRE>
654<DL>
655<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLookupSwitchInsn(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int[], org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])">CodeVisitor</A></CODE></B></DD>
656<DD>Visits a LOOKUPSWITCH instruction.
657<P>
658<DD><DL>
659<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLookupSwitchInsn(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int[], org.gjt.sp.jedit.bsh.org.objectweb.asm.Label[])">visitLookupSwitchInsn</A></CODE> in interface <CODE><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></DL>
660</DD>
661<DD><DL>
662<DT><B>Parameters:</B><DD><CODE>dflt</CODE> - beginning of the default handler block.<DD><CODE>keys</CODE> - the values of the keys.<DD><CODE>labels</CODE> - beginnings of the handler blocks. <tt>labels[i]</tt> is the
663 beginning of the handler block for the <tt>keys[i]</tt> key.</DL>
664</DD>
665</DL>
666<HR>
667
668<A NAME="visitMultiANewArrayInsn(java.lang.String, int)"><!-- --></A><H3>
669visitMultiANewArrayInsn</H3>
670<PRE>
671public void <B>visitMultiANewArrayInsn</B>(java.lang.String desc,
672 int dims)</PRE>
673<DL>
674<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitMultiANewArrayInsn(java.lang.String, int)">CodeVisitor</A></CODE></B></DD>
675<DD>Visits a MULTIANEWARRAY instruction.
676<P>
677<DD><DL>
678<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitMultiANewArrayInsn(java.lang.String, int)">visitMultiANewArrayInsn</A></CODE> in interface <CODE><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></DL>
679</DD>
680<DD><DL>
681<DT><B>Parameters:</B><DD><CODE>desc</CODE> - an array type 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>dims</CODE> - number of dimensions of the array to allocate.</DL>
682</DD>
683</DL>
684<HR>
685
686<A NAME="visitTryCatchBlock(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, java.lang.String)"><!-- --></A><H3>
687visitTryCatchBlock</H3>
688<PRE>
689public void <B>visitTryCatchBlock</B>(<A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> start,
690 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> end,
691 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> handler,
692 java.lang.String type)</PRE>
693<DL>
694<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitTryCatchBlock(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, java.lang.String)">CodeVisitor</A></CODE></B></DD>
695<DD>Visits a try catch block.
696<P>
697<DD><DL>
698<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitTryCatchBlock(org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, java.lang.String)">visitTryCatchBlock</A></CODE> in interface <CODE><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></DL>
699</DD>
700<DD><DL>
701<DT><B>Parameters:</B><DD><CODE>start</CODE> - beginning of the exception handler's scope (inclusive).<DD><CODE>end</CODE> - end of the exception handler's scope (exclusive).<DD><CODE>handler</CODE> - beginning of the exception handler's code.<DD><CODE>type</CODE> - internal name of the type of exceptions handled by the handler,
702 or <tt>null</tt> to catch any exceptions (for "finally" blocks).</DL>
703</DD>
704</DL>
705<HR>
706
707<A NAME="visitMaxs(int, int)"><!-- --></A><H3>
708visitMaxs</H3>
709<PRE>
710public void <B>visitMaxs</B>(int maxStack,
711 int maxLocals)</PRE>
712<DL>
713<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitMaxs(int, int)">CodeVisitor</A></CODE></B></DD>
714<DD>Visits the maximum stack size and the maximum number of local variables of
715 the method.
716<P>
717<DD><DL>
718<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitMaxs(int, int)">visitMaxs</A></CODE> in interface <CODE><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></DL>
719</DD>
720<DD><DL>
721<DT><B>Parameters:</B><DD><CODE>maxStack</CODE> - maximum stack size of the method.<DD><CODE>maxLocals</CODE> - maximum number of local variables for the method.</DL>
722</DD>
723</DL>
724<HR>
725
726<A NAME="visitLocalVariable(java.lang.String, java.lang.String, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int)"><!-- --></A><H3>
727visitLocalVariable</H3>
728<PRE>
729public void <B>visitLocalVariable</B>(java.lang.String name,
730 java.lang.String desc,
731 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> start,
732 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> end,
733 int index)</PRE>
734<DL>
735<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLocalVariable(java.lang.String, java.lang.String, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int)">CodeVisitor</A></CODE></B></DD>
736<DD>Visits a local variable declaration.
737<P>
738<DD><DL>
739<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLocalVariable(java.lang.String, java.lang.String, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label, int)">visitLocalVariable</A></CODE> in interface <CODE><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></DL>
740</DD>
741<DD><DL>
742<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of a local variable.<DD><CODE>desc</CODE> - the type descriptor of this local variable.<DD><CODE>start</CODE> - the first instruction corresponding to the scope of this
743 local variable (inclusive).<DD><CODE>end</CODE> - the last instruction corresponding to the scope of this
744 local variable (exclusive).<DD><CODE>index</CODE> - the local variable's index.</DL>
745</DD>
746</DL>
747<HR>
748
749<A NAME="visitLineNumber(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)"><!-- --></A><H3>
750visitLineNumber</H3>
751<PRE>
752public void <B>visitLineNumber</B>(int line,
753 <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm">Label</A> start)</PRE>
754<DL>
755<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLineNumber(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">CodeVisitor</A></CODE></B></DD>
756<DD>Visits a line number declaration.
757<P>
758<DD><DL>
759<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.html#visitLineNumber(int, org.gjt.sp.jedit.bsh.org.objectweb.asm.Label)">visitLineNumber</A></CODE> in interface <CODE><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></DL>
760</DD>
761<DD><DL>
762<DT><B>Parameters:</B><DD><CODE>line</CODE> - a line number. This number refers to the source file
763 from which the class was compiled.<DD><CODE>start</CODE> - the first instruction corresponding to this line number.</DL>
764</DD>
765</DL>
766<HR>
767
768<A NAME="resizeInstructions(int[], int[], int)"><!-- --></A><H3>
769resizeInstructions</H3>
770<PRE>
771protected int[] <B>resizeInstructions</B>(int[] indexes,
772 int[] sizes,
773 int len)</PRE>
774<DL>
775<DD>Resizes the designated instructions, while keeping jump offsets and
776 instruction addresses consistent. This may require to resize other existing
777 instructions, or even to introduce new instructions: for example,
778 increasing the size of an instruction by 2 at the middle of a method can
779 increases the offset of an IFEQ instruction from 32766 to 32768, in which
780 case IFEQ 32766 must be replaced with IFNEQ 8 GOTO_W 32765. This, in turn,
781 may require to increase the size of another jump instruction, and so on...
782 All these operations are handled automatically by this method.
783 <p>
784 <i>This method must be called after all the method that is being built has
785 been visited</i>. In particular, the <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Label.html" title="class in org.gjt.sp.jedit.bsh.org.objectweb.asm"><CODE>Label</CODE></A> objects used to
786 construct the method are no longer valid after this method has been called.
787<P>
788<DD><DL>
789</DL>
790</DD>
791<DD><DL>
792<DT><B>Parameters:</B><DD><CODE>indexes</CODE> - current positions of the instructions to be resized. Each
793 instruction must be designated by the index of its <i>last</i> byte,
794 plus one (or, in other words, by the index of the <i>first</i> byte of
795 the <i>next</i> instruction).<DD><CODE>sizes</CODE> - the number of bytes to be <i>added</i> to the above
796 instructions. More precisely, for each i < <tt>len</tt>,
797 <tt>sizes</tt>[i] bytes will be added at the end of the instruction
798 designated by <tt>indexes</tt>[i] or, if <tt>sizes</tt>[i] is
799 negative, the <i>last</i> |<tt>sizes[i]</tt>| bytes of the instruction
800 will be removed (the instruction size <i>must not</i> become negative
801 or null). The gaps introduced by this method must be filled in
802 "manually" in the array returned by the <A HREF="../../../../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeWriter.html#getCode()"><CODE>getCode</CODE></A>
803 method.<DD><CODE>len</CODE> - the number of instruction to be resized. Must be smaller than or
804 equal to <tt>indexes</tt>.length and <tt>sizes</tt>.length.
805<DT><B>Returns:</B><DD>the <tt>indexes</tt> array, which now contains the new positions of
806 the resized instructions (designated as above)…
Large files files are truncated, but you can click here to view the full file