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

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

#
HTML | 319 lines | 267 code | 40 blank | 12 comment | 0 complexity | 8501ba17ed3df5f9282ca5eb2fdaf2b5 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. XThis (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.XThis 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/XThis.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/Variable.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;NEXT CLASS</FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/XThis.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="XThis.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</FONT>
  66. <BR>
  67. Class XThis</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">org.gjt.sp.jedit.bsh.This</A>
  71. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.XThis</B>
  72. </PRE>
  73. <DL>
  74. <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Runnable</DD>
  75. </DL>
  76. <HR>
  77. <DL>
  78. <DT><PRE>public class <B>XThis</B><DT>extends <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">This</A></DL>
  79. </PRE>
  80. <P>
  81. XThis is a dynamically loaded extension which extends This.java and adds
  82. support for the generalized interface proxy mechanism introduced in
  83. JDK1.3. XThis allows bsh scripted objects to implement arbitrary
  84. interfaces (be arbitrary event listener types).
  85. Note: This module relies on new features of JDK1.3 and will not compile
  86. with JDK1.2 or lower. For those environments simply do not compile this
  87. class.
  88. Eventually XThis should become simply This, but for backward compatability
  89. we will maintain This without requiring support for the proxy mechanism.
  90. XThis stands for "eXtended This" (I had to call it something).
  91. <P>
  92. <P>
  93. <DL>
  94. <DT><B>See Also:</B><DD><CODE>JThis
  95. See also JThis with explicit JFC support for compatability.</CODE>,
  96. <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh"><CODE>This</CODE></A>,
  97. <A HREF="../../../../../serialized-form.html#org.gjt.sp.jedit.bsh.XThis">Serialized Form</A></DL>
  98. <HR>
  99. <P>
  100. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  101. <A NAME="constructor_summary"><!-- --></A>
  102. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  103. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  104. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  105. <B>Constructor Summary</B></FONT></TH>
  106. </TR>
  107. <TR BGCOLOR="white" CLASS="TableRowColor">
  108. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/XThis.html#XThis(org.gjt.sp.jedit.bsh.NameSpace, org.gjt.sp.jedit.bsh.Interpreter)">XThis</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  109. <A HREF="../../../../../org/gjt/sp/jedit/bsh/Interpreter.html" title="class in org.gjt.sp.jedit.bsh">Interpreter</A>&nbsp;declaringInterp)</CODE>
  110. <BR>
  111. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  112. </TR>
  113. </TABLE>
  114. &nbsp;
  115. <!-- ========== METHOD SUMMARY =========== -->
  116. <A NAME="method_summary"><!-- --></A>
  117. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  118. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  119. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  120. <B>Method Summary</B></FONT></TH>
  121. </TR>
  122. <TR BGCOLOR="white" CLASS="TableRowColor">
  123. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  124. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  125. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/XThis.html#getInterface(java.lang.Class)">getInterface</A></B>(java.lang.Class&nbsp;clas)</CODE>
  126. <BR>
  127. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get dynamic proxy for interface, caching those it creates.</TD>
  128. </TR>
  129. <TR BGCOLOR="white" CLASS="TableRowColor">
  130. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  131. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  132. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/XThis.html#getInterface(java.lang.Class[])">getInterface</A></B>(java.lang.Class[]&nbsp;ca)</CODE>
  133. <BR>
  134. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get dynamic proxy for interface, caching those it creates.</TD>
  135. </TR>
  136. <TR BGCOLOR="white" CLASS="TableRowColor">
  137. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  138. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  139. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/XThis.html#toString()">toString</A></B>()</CODE>
  140. <BR>
  141. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  142. </TR>
  143. </TABLE>
  144. &nbsp;<A NAME="methods_inherited_from_class_org.gjt.sp.jedit.bsh.This"><!-- --></A>
  145. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  146. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  147. <TH ALIGN="left"><B>Methods inherited from class org.gjt.sp.jedit.bsh.<A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">This</A></B></TH>
  148. </TR>
  149. <TR BGCOLOR="white" CLASS="TableRowColor">
  150. <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#bind(org.gjt.sp.jedit.bsh.This, org.gjt.sp.jedit.bsh.NameSpace, org.gjt.sp.jedit.bsh.Interpreter)">bind</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#getNameSpace()">getNameSpace</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#invokeMethod(java.lang.String, java.lang.Object[])">invokeMethod</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#invokeMethod(java.lang.String, java.lang.Object[], org.gjt.sp.jedit.bsh.Interpreter, org.gjt.sp.jedit.bsh.CallStack, org.gjt.sp.jedit.bsh.SimpleNode, boolean)">invokeMethod</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#run()">run</A></CODE></TD>
  151. </TR>
  152. </TABLE>
  153. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  154. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  155. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  156. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  157. </TR>
  158. <TR BGCOLOR="white" CLASS="TableRowColor">
  159. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  160. </TR>
  161. </TABLE>
  162. &nbsp;
  163. <P>
  164. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  165. <A NAME="constructor_detail"><!-- --></A>
  166. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  167. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  168. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  169. <B>Constructor Detail</B></FONT></TH>
  170. </TR>
  171. </TABLE>
  172. <A NAME="XThis(org.gjt.sp.jedit.bsh.NameSpace, org.gjt.sp.jedit.bsh.Interpreter)"><!-- --></A><H3>
  173. XThis</H3>
  174. <PRE>
  175. public <B>XThis</B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  176. <A HREF="../../../../../org/gjt/sp/jedit/bsh/Interpreter.html" title="class in org.gjt.sp.jedit.bsh">Interpreter</A>&nbsp;declaringInterp)</PRE>
  177. <DL>
  178. </DL>
  179. <!-- ============ METHOD DETAIL ========== -->
  180. <A NAME="method_detail"><!-- --></A>
  181. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  182. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  183. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  184. <B>Method Detail</B></FONT></TH>
  185. </TR>
  186. </TABLE>
  187. <A NAME="toString()"><!-- --></A><H3>
  188. toString</H3>
  189. <PRE>
  190. public java.lang.String <B>toString</B>()</PRE>
  191. <DL>
  192. <DD><DL>
  193. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">This</A></CODE></DL>
  194. </DD>
  195. <DD><DL>
  196. </DL>
  197. </DD>
  198. </DL>
  199. <HR>
  200. <A NAME="getInterface(java.lang.Class)"><!-- --></A><H3>
  201. getInterface</H3>
  202. <PRE>
  203. public java.lang.Object <B>getInterface</B>(java.lang.Class&nbsp;clas)</PRE>
  204. <DL>
  205. <DD>Get dynamic proxy for interface, caching those it creates.
  206. <P>
  207. <DD><DL>
  208. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#getInterface(java.lang.Class)">getInterface</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">This</A></CODE></DL>
  209. </DD>
  210. <DD><DL>
  211. </DL>
  212. </DD>
  213. </DL>
  214. <HR>
  215. <A NAME="getInterface(java.lang.Class[])"><!-- --></A><H3>
  216. getInterface</H3>
  217. <PRE>
  218. public java.lang.Object <B>getInterface</B>(java.lang.Class[]&nbsp;ca)</PRE>
  219. <DL>
  220. <DD>Get dynamic proxy for interface, caching those it creates.
  221. <P>
  222. <DD><DL>
  223. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html#getInterface(java.lang.Class[])">getInterface</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/This.html" title="class in org.gjt.sp.jedit.bsh">This</A></CODE></DL>
  224. </DD>
  225. <DD><DL>
  226. </DL>
  227. </DD>
  228. </DL>
  229. <!-- ========= END OF CLASS DATA ========= -->
  230. <HR>
  231. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  232. <A NAME="navbar_bottom"><!-- --></A>
  233. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  234. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  235. <TR>
  236. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  237. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  238. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  239. <TR ALIGN="center" VALIGN="top">
  240. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  241. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  242. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  243. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XThis.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  244. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  245. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  246. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  247. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  248. </TR>
  249. </TABLE>
  250. </TD>
  251. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  252. </EM>
  253. </TD>
  254. </TR>
  255. <TR>
  256. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  257. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Variable.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  258. &nbsp;NEXT CLASS</FONT></TD>
  259. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  260. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/XThis.html" target="_top"><B>FRAMES</B></A> &nbsp;
  261. &nbsp;<A HREF="XThis.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  262. &nbsp;
  263. <NOSCRIPT>
  264. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  265. </NOSCRIPT>
  266. </FONT></TD>
  267. </TR>
  268. <TR>
  269. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  270. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  271. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  272. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  273. </TR>
  274. </TABLE>
  275. <A NAME="skip-navbar_bottom"></A>
  276. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  277. <HR>
  278. </BODY>
  279. </HTML>