PageRenderTime 53ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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