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

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html

#
HTML | 452 lines | 393 code | 46 blank | 13 comment | 0 complexity | 488b505c4a9fa8c1863806b97dc7a029 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:49 GMT-08:00 2008 -->
  6. <TITLE>
  7. ClassGeneratorUtil (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.ClassGeneratorUtil 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/ClassGeneratorUtil.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/ClassGeneratorImpl.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.ConstructorArgs.html" title="class in org.gjt.sp.jedit.bsh"><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/ClassGeneratorUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="ClassGeneratorUtil.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;<A HREF="#nested_class_summary">NESTED</A>&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</FONT>
  66. <BR>
  67. Class ClassGeneratorUtil</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.ClassGeneratorUtil</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">Constants</A></DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public class <B>ClassGeneratorUtil</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">Constants</A></DL>
  78. </PRE>
  79. <P>
  80. ClassGeneratorUtil utilizes the ASM (www.objectweb.org) bytecode generator
  81. by Eric Bruneton in order to generate class "stubs" for BeanShell at
  82. runtime.
  83. <p>
  84. Stub classes contain all of the fields of a BeanShell scripted class
  85. as well as two "callback" references to BeanShell namespaces: one for
  86. static methods and one for instance methods. Methods of the class are
  87. delegators which invoke corresponding methods on either the static or
  88. instance bsh object and then unpack and return the results. The static
  89. namespace utilizes a static import to delegate variable access to the
  90. class' static fields. The instance namespace utilizes a dynamic import
  91. (i.e. mixin) to delegate variable access to the class' instance variables.
  92. <p>
  93. Constructors for the class delegate to the static initInstance() method of
  94. ClassGeneratorUtil to initialize new instances of the object. initInstance()
  95. invokes the instance intializer code (init vars and instance blocks) and
  96. then delegates to the corresponding scripted constructor method in the
  97. instance namespace. Constructors contain special switch logic which allows
  98. the BeanShell to control the calling of alternate constructors (this() or
  99. super() references) at runtime.
  100. <p>
  101. Specially named superclass delegator methods are also generated in order to
  102. allow BeanShell to access overridden methods of the superclass (which
  103. reflection does not normally allow).
  104. <p>
  105. <P>
  106. <P>
  107. <HR>
  108. <P>
  109. <!-- ======== NESTED CLASS SUMMARY ======== -->
  110. <A NAME="nested_class_summary"><!-- --></A>
  111. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  112. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  113. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  114. <B>Nested Class Summary</B></FONT></TH>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  118. <CODE>static&nbsp;class</CODE></FONT></TD>
  119. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.ConstructorArgs.html" title="class in org.gjt.sp.jedit.bsh">ClassGeneratorUtil.ConstructorArgs</A></B></CODE>
  120. <BR>
  121. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A ConstructorArgs object holds evaluated arguments for a constructor
  122. call as well as the index of a possible alternate selector to invoke.</TD>
  123. </TR>
  124. </TABLE>
  125. &nbsp;<!-- =========== FIELD SUMMARY =========== -->
  126. <A NAME="field_summary"><!-- --></A>
  127. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  128. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  129. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  130. <B>Field Summary</B></FONT></TH>
  131. </TR>
  132. </TABLE>
  133. &nbsp;<A NAME="fields_inherited_from_class_org.gjt.sp.jedit.bsh.org.objectweb.asm.Constants"><!-- --></A>
  134. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  135. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  136. <TH ALIGN="left"><B>Fields inherited from interface org.gjt.sp.jedit.bsh.org.objectweb.asm.<A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html" title="interface in org.gjt.sp.jedit.bsh.org.objectweb.asm">Constants</A></B></TH>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#AALOAD">AALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#AASTORE">AASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_ABSTRACT">ACC_ABSTRACT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_DEPRECATED">ACC_DEPRECATED</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_FINAL">ACC_FINAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_INTERFACE">ACC_INTERFACE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_NATIVE">ACC_NATIVE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_PRIVATE">ACC_PRIVATE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_PROTECTED">ACC_PROTECTED</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_PUBLIC">ACC_PUBLIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_STATIC">ACC_STATIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_STRICT">ACC_STRICT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_SUPER">ACC_SUPER</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_SYNCHRONIZED">ACC_SYNCHRONIZED</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_SYNTHETIC">ACC_SYNTHETIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_TRANSIENT">ACC_TRANSIENT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACC_VOLATILE">ACC_VOLATILE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ACONST_NULL">ACONST_NULL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ALOAD">ALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ANEWARRAY">ANEWARRAY</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ARETURN">ARETURN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ARRAYLENGTH">ARRAYLENGTH</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ASTORE">ASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ATHROW">ATHROW</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#BALOAD">BALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#BASTORE">BASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#BIPUSH">BIPUSH</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#CALOAD">CALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#CASTORE">CASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#CHECKCAST">CHECKCAST</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#D2F">D2F</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#D2I">D2I</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#D2L">D2L</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DADD">DADD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DALOAD">DALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DASTORE">DASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DCMPG">DCMPG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DCMPL">DCMPL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DCONST_0">DCONST_0</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DCONST_1">DCONST_1</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DDIV">DDIV</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DLOAD">DLOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DMUL">DMUL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DNEG">DNEG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DREM">DREM</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DRETURN">DRETURN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DSTORE">DSTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DSUB">DSUB</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DUP">DUP</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DUP_X1">DUP_X1</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DUP_X2">DUP_X2</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DUP2">DUP2</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DUP2_X1">DUP2_X1</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#DUP2_X2">DUP2_X2</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#F2D">F2D</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#F2I">F2I</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#F2L">F2L</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FADD">FADD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FALOAD">FALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FASTORE">FASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FCMPG">FCMPG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FCMPL">FCMPL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FCONST_0">FCONST_0</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FCONST_1">FCONST_1</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FCONST_2">FCONST_2</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FDIV">FDIV</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FLOAD">FLOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FMUL">FMUL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FNEG">FNEG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FREM">FREM</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FRETURN">FRETURN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FSTORE">FSTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#FSUB">FSUB</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#GETFIELD">GETFIELD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#GETSTATIC">GETSTATIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#GOTO">GOTO</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#I2B">I2B</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#I2C">I2C</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#I2D">I2D</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#I2F">I2F</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#I2L">I2L</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#I2S">I2S</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IADD">IADD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IALOAD">IALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IAND">IAND</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IASTORE">IASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ICONST_0">ICONST_0</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ICONST_1">ICONST_1</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ICONST_2">ICONST_2</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ICONST_3">ICONST_3</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ICONST_4">ICONST_4</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ICONST_5">ICONST_5</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ICONST_M1">ICONST_M1</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IDIV">IDIV</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ACMPEQ">IF_ACMPEQ</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ACMPNE">IF_ACMPNE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ICMPEQ">IF_ICMPEQ</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ICMPGE">IF_ICMPGE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ICMPGT">IF_ICMPGT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ICMPLE">IF_ICMPLE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ICMPLT">IF_ICMPLT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IF_ICMPNE">IF_ICMPNE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFEQ">IFEQ</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFGE">IFGE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFGT">IFGT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFLE">IFLE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFLT">IFLT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFNE">IFNE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFNONNULL">IFNONNULL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IFNULL">IFNULL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IINC">IINC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ILOAD">ILOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IMUL">IMUL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#INEG">INEG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#INSTANCEOF">INSTANCEOF</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#INVOKEINTERFACE">INVOKEINTERFACE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#INVOKESPECIAL">INVOKESPECIAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#INVOKESTATIC">INVOKESTATIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#INVOKEVIRTUAL">INVOKEVIRTUAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IOR">IOR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IREM">IREM</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IRETURN">IRETURN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ISHL">ISHL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ISHR">ISHR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ISTORE">ISTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#ISUB">ISUB</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IUSHR">IUSHR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#IXOR">IXOR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#JSR">JSR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#L2D">L2D</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#L2F">L2F</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#L2I">L2I</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LADD">LADD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LALOAD">LALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LAND">LAND</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LASTORE">LASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LCMP">LCMP</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LCONST_0">LCONST_0</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LCONST_1">LCONST_1</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LDC">LDC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LDIV">LDIV</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LLOAD">LLOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LMUL">LMUL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LNEG">LNEG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LOOKUPSWITCH">LOOKUPSWITCH</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LOR">LOR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LREM">LREM</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LRETURN">LRETURN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LSHL">LSHL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LSHR">LSHR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LSTORE">LSTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LSUB">LSUB</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LUSHR">LUSHR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#LXOR">LXOR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#MONITORENTER">MONITORENTER</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#MONITOREXIT">MONITOREXIT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#MULTIANEWARRAY">MULTIANEWARRAY</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#NEW">NEW</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#NEWARRAY">NEWARRAY</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#NOP">NOP</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#POP">POP</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#POP2">POP2</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#PUTFIELD">PUTFIELD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#PUTSTATIC">PUTSTATIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#RET">RET</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#RETURN">RETURN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#SALOAD">SALOAD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#SASTORE">SASTORE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#SIPUSH">SIPUSH</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#SWAP">SWAP</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_BOOLEAN">T_BOOLEAN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_BYTE">T_BYTE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_CHAR">T_CHAR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_DOUBLE">T_DOUBLE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_FLOAT">T_FLOAT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_INT">T_INT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_LONG">T_LONG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#T_SHORT">T_SHORT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/org/objectweb/asm/Constants.html#TABLESWITCH">TABLESWITCH</A></CODE></TD>
  140. </TR>
  141. </TABLE>
  142. &nbsp;
  143. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  144. <A NAME="constructor_summary"><!-- --></A>
  145. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  146. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  147. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  148. <B>Constructor Summary</B></FONT></TH>
  149. </TR>
  150. <TR BGCOLOR="white" CLASS="TableRowColor">
  151. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html#ClassGeneratorUtil(org.gjt.sp.jedit.bsh.Modifiers, java.lang.String, java.lang.String, java.lang.Class, java.lang.Class[], org.gjt.sp.jedit.bsh.Variable[], org.gjt.sp.jedit.bsh.DelayedEvalBshMethod[], org.gjt.sp.jedit.bsh.NameSpace, boolean)">ClassGeneratorUtil</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/Modifiers.html" title="class in org.gjt.sp.jedit.bsh">Modifiers</A>&nbsp;classModifiers,
  152. java.lang.String&nbsp;className,
  153. java.lang.String&nbsp;packageName,
  154. java.lang.Class&nbsp;superClass,
  155. java.lang.Class[]&nbsp;interfaces,
  156. <A HREF="../../../../../org/gjt/sp/jedit/bsh/Variable.html" title="class in org.gjt.sp.jedit.bsh">Variable</A>[]&nbsp;vars,
  157. <A HREF="../../../../../org/gjt/sp/jedit/bsh/DelayedEvalBshMethod.html" title="class in org.gjt.sp.jedit.bsh">DelayedEvalBshMethod</A>[]&nbsp;bshmethods,
  158. <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;classStaticNameSpace,
  159. boolean&nbsp;isInterface)</CODE>
  160. <BR>
  161. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  162. </TR>
  163. </TABLE>
  164. &nbsp;
  165. <!-- ========== METHOD SUMMARY =========== -->
  166. <A NAME="method_summary"><!-- --></A>
  167. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  168. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  169. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  170. <B>Method Summary</B></FONT></TH>
  171. </TR>
  172. <TR BGCOLOR="white" CLASS="TableRowColor">
  173. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  174. <CODE>&nbsp;byte[]</CODE></FONT></TD>
  175. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html#generateClass()">generateClass</A></B>()</CODE>
  176. <BR>
  177. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate the class bytecode for this class.</TD>
  178. </TR>
  179. <TR BGCOLOR="white" CLASS="TableRowColor">
  180. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  181. <CODE>static&nbsp;void</CODE></FONT></TD>
  182. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html#generateParameterReifierCode(java.lang.String[], boolean, org.gjt.sp.jedit.bsh.org.objectweb.asm.CodeVisitor)">generateParameterReifierCode</A></B>(java.lang.String[]&nbsp;paramTypes,
  183. boolean&nbsp;isStatic,
  184. <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>&nbsp;cv)</CODE>
  185. <BR>
  186. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates the code to reify the arguments of the given method.</TD>
  187. </TR>
  188. <TR BGCOLOR="white" CLASS="TableRowColor">
  189. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  190. <CODE>static&nbsp;void</CODE></FONT></TD>
  191. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html#generateReturnCode(java.lang.String, org.gjt.sp.jedit.bsh.org.objectweb.asm.CodeVisitor)">generateReturnCode</A></B>(java.lang.String&nbsp;returnType,
  192. <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>&nbsp;cv)</CODE>
  193. <BR>
  194. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates the code to unreify the result of the given method.</TD>
  195. </TR>
  196. <TR BGCOLOR="white" CLASS="TableRowColor">
  197. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  198. <CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.ConstructorArgs.html" title="class in org.gjt.sp.jedit.bsh">ClassGeneratorUtil.ConstructorArgs</A></CODE></FONT></TD>
  199. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html#getConstructorArgs(java.lang.String, org.gjt.sp.jedit.bsh.This, java.lang.Object[], int)">getConstructorArgs</A></B>(java.lang.String&nbsp;superClassName,
  200. <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">This</A>&nbsp;classStaticThis,
  201. java.lang.Object[]&nbsp;consArgs,
  202. int&nbsp;index)</CODE>
  203. <BR>
  204. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluate the arguments (if any) for the constructor specified by
  205. the constructor index.</TD>
  206. </TR>
  207. <TR BGCOLOR="white" CLASS="TableRowColor">
  208. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  209. <CODE>static&nbsp;void</CODE></FONT></TD>
  210. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html#initInstance(java.lang.Object, java.lang.String, java.lang.Object[])">initInstance</A></B>(java.lang.Object&nbsp;instance,
  211. java.lang.String&nbsp;className,
  212. java.lang.Object[]&nbsp;args)</CODE>
  213. <BR>
  214. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize an instance of the class.</TD>
  215. </TR>
  216. </TABLE>
  217. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  218. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  219. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  220. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  221. </TR>
  222. <TR BGCOLOR="white" CLASS="TableRowColor">
  223. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  224. </TR>
  225. </TABLE>
  226. &nbsp;
  227. <P>
  228. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  229. <A NAME="constructor_detail"><!-- --></A>
  230. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  231. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  232. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  233. <B>Constructor Detail</B></FONT></TH>
  234. </TR>
  235. </TABLE>
  236. <A NAME="ClassGeneratorUtil(org.gjt.sp.jedit.bsh.Modifiers, java.lang.String, java.lang.String, java.lang.Class, java.lang.Class[], org.gjt.sp.jedit.bsh.Variable[], org.gjt.sp.jedit.bsh.DelayedEvalBshMethod[], org.gjt.sp.jedit.bsh.NameSpace, boolean)"><!-- --></A><H3>
  237. ClassGeneratorUtil</H3>
  238. <PRE>
  239. public <B>ClassGeneratorUtil</B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/Modifiers.html" title="class in org.gjt.sp.jedit.bsh">Modifiers</A>&nbsp;classModifiers,
  240. java.lang.String&nbsp;className,
  241. java.lang.String&nbsp;packageName,
  242. java.lang.Class&nbsp;superClass,
  243. java.lang.Class[]&nbsp;interfaces,
  244. <A HREF="../../../../../org/gjt/sp/jedit/bsh/Variable.html" title="class in org.gjt.sp.jedit.bsh">Variable</A>[]&nbsp;vars,
  245. <A HREF="../../../../../org/gjt/sp/jedit/bsh/DelayedEvalBshMethod.html" title="class in org.gjt.sp.jedit.bsh">DelayedEvalBshMethod</A>[]&nbsp;bshmethods,
  246. <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;classStaticNameSpace,
  247. boolean&nbsp;isInterface)</PRE>
  248. <DL>
  249. <DL>
  250. <DT><B>Parameters:</B><DD><CODE>packageName</CODE> - e.g. "com.foo.bar"</DL>
  251. </DL>
  252. <!-- ============ METHOD DETAIL ========== -->
  253. <A NAME="method_detail"><!-- --></A>
  254. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  255. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  256. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  257. <B>Method Detail</B></FONT></TH>
  258. </TR>
  259. </TABLE>
  260. <A NAME="generateClass()"><!-- --></A><H3>
  261. generateClass</H3>
  262. <PRE>
  263. public byte[] <B>generateClass</B>()</PRE>
  264. <DL>
  265. <DD>Generate the class bytecode for this class.
  266. <P>
  267. <DD><DL>
  268. </DL>
  269. </DD>
  270. <DD><DL>
  271. </DL>
  272. </DD>
  273. </DL>
  274. <HR>
  275. <A NAME="generateParameterReifierCode(java.lang.String[], boolean, org.gjt.sp.jedit.bsh.org.objectweb.asm.CodeVisitor)"><!-- --></A><H3>
  276. generateParameterReifierCode</H3>
  277. <PRE>
  278. public static void <B>generateParameterReifierCode</B>(java.lang.String[]&nbsp;paramTypes,
  279. boolean&nbsp;isStatic,
  280. <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>&nbsp;cv)</PRE>
  281. <DL>
  282. <DD>Generates the code to reify the arguments of the given method.
  283. For a method "int m (int i, String s)", this code is the bytecode
  284. corresponding to the "new Object[] { new bsh.Primitive(i), s }"
  285. expression.
  286. <P>
  287. <DD><DL>
  288. </DL>
  289. </DD>
  290. <DD><DL>
  291. <DT><B>Parameters:</B><DD><CODE>cv</CODE> - the code visitor to be used to generate the bytecode.<DD><CODE>isStatic</CODE> - the enclosing methods is static</DL>
  292. </DD>
  293. </DL>
  294. <HR>
  295. <A NAME="generateReturnCode(java.lang.String, org.gjt.sp.jedit.bsh.org.objectweb.asm.CodeVisitor)"><!-- --></A><H3>
  296. generateReturnCode</H3>
  297. <PRE>
  298. public static void <B>generateReturnCode</B>(java.lang.String&nbsp;returnType,
  299. <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>&nbsp;cv)</PRE>
  300. <DL>
  301. <DD>Generates the code to unreify the result of the given method. For a
  302. method "int m (int i, String s)", this code is the bytecode
  303. corresponding to the "((Integer)...).intValue()" expression.
  304. <P>
  305. <DD><DL>
  306. </DL>
  307. </DD>
  308. <DD><DL>
  309. <DT><B>Parameters:</B><DD><CODE>cv</CODE> - the code visitor to be used to generate the bytecode.</DL>
  310. </DD>
  311. </DL>
  312. <HR>
  313. <A NAME="getConstructorArgs(java.lang.String, org.gjt.sp.jedit.bsh.This, java.lang.Object[], int)"><!-- --></A><H3>
  314. getConstructorArgs</H3>
  315. <PRE>
  316. public static <A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.ConstructorArgs.html" title="class in org.gjt.sp.jedit.bsh">ClassGeneratorUtil.ConstructorArgs</A> <B>getConstructorArgs</B>(java.lang.String&nbsp;superClassName,
  317. <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">This</A>&nbsp;classStaticThis,
  318. java.lang.Object[]&nbsp;consArgs,
  319. int&nbsp;index)</PRE>
  320. <DL>
  321. <DD>Evaluate the arguments (if any) for the constructor specified by
  322. the constructor index. Return the ConstructorArgs object which
  323. contains the actual arguments to the alternate constructor and also the
  324. index of that constructor for the constructor switch.
  325. <P>
  326. <DD><DL>
  327. </DL>
  328. </DD>
  329. <DD><DL>
  330. <DT><B>Parameters:</B><DD><CODE>consArgs</CODE> - the arguments to the constructor. These are necessary in
  331. the evaluation of the alt constructor args. e.g. Foo(a) { super(a); }
  332. <DT><B>Returns:</B><DD>the ConstructorArgs object containing a constructor selector
  333. and evaluated arguments for the alternate constructor</DL>
  334. </DD>
  335. </DL>
  336. <HR>
  337. <A NAME="initInstance(java.lang.Object, java.lang.String, java.lang.Object[])"><!-- --></A><H3>
  338. initInstance</H3>
  339. <PRE>
  340. public static void <B>initInstance</B>(java.lang.Object&nbsp;instance,
  341. java.lang.String&nbsp;className,
  342. java.lang.Object[]&nbsp;args)</PRE>
  343. <DL>
  344. <DD>Initialize an instance of the class.
  345. This method is called from the generated class constructor to evaluate
  346. the instance initializer and scripted constructor in the instance
  347. namespace.
  348. <P>
  349. <DD><DL>
  350. </DL>
  351. </DD>
  352. <DD><DL>
  353. </DL>
  354. </DD>
  355. </DL>
  356. <!-- ========= END OF CLASS DATA ========= -->
  357. <HR>
  358. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  359. <A NAME="navbar_bottom"><!-- --></A>
  360. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  361. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  362. <TR>
  363. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  364. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  365. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  366. <TR ALIGN="center" VALIGN="top">
  367. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  368. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  369. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  370. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassGeneratorUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  371. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  372. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  373. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  374. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  375. </TR>
  376. </TABLE>
  377. </TD>
  378. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  379. </EM>
  380. </TD>
  381. </TR>
  382. <TR>
  383. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  384. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorImpl.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  385. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassGeneratorUtil.ConstructorArgs.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
  386. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  387. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/ClassGeneratorUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
  388. &nbsp;<A HREF="ClassGeneratorUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  389. &nbsp;
  390. <NOSCRIPT>
  391. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  392. </NOSCRIPT>
  393. </FONT></TD>
  394. </TR>
  395. <TR>
  396. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  397. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  398. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  399. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  400. </TR>
  401. </TABLE>
  402. <A NAME="skip-navbar_bottom"></A>
  403. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  404. <HR>
  405. </BODY>
  406. </HTML>