PageRenderTime 39ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
HTML | 600 lines | 520 code | 66 blank | 14 comment | 0 complexity | f86d5f7ae6eee3729dbeca6e350bed99 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:44 GMT-08:00 2008 -->
  6. <TITLE>
  7. BeanShellFacade (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.BeanShellFacade 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/BeanShellFacade.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/BeanShellAction.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit"><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/BeanShellFacade.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="BeanShellFacade.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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</FONT>
  66. <BR>
  67. Class BeanShellFacade&lt;T&gt;</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.BeanShellFacade&lt;T&gt;</B>
  71. </PRE>
  72. <HR>
  73. <DL>
  74. <DT><PRE>public abstract class <B>BeanShellFacade&lt;T&gt;</B><DT>extends java.lang.Object</DL>
  75. </PRE>
  76. <P>
  77. This class will be the interface for beanshell interaction.
  78. In jEdit it will be used with the static methods of <A HREF="../../../../org/gjt/sp/jedit/BeanShell.html" title="class in org.gjt.sp.jedit"><CODE>BeanShell</CODE></A>
  79. <P>
  80. <P>
  81. <DL>
  82. <DT><B>Since:</B></DT>
  83. <DD>jEdit 4.3pre13</DD>
  84. </DL>
  85. <HR>
  86. <P>
  87. <!-- =========== FIELD SUMMARY =========== -->
  88. <A NAME="field_summary"><!-- --></A>
  89. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  90. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  91. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  92. <B>Field Summary</B></FONT></TH>
  93. </TR>
  94. <TR BGCOLOR="white" CLASS="TableRowColor">
  95. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  96. <CODE>protected &nbsp;<A HREF="../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></FONT></TD>
  97. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#classManager">classManager</A></B></CODE>
  98. <BR>
  99. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  100. </TR>
  101. <TR BGCOLOR="white" CLASS="TableRowColor">
  102. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  103. <CODE>protected &nbsp;<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></FONT></TD>
  104. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#global">global</A></B></CODE>
  105. <BR>
  106. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  107. </TR>
  108. </TABLE>
  109. &nbsp;
  110. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  111. <A NAME="constructor_summary"><!-- --></A>
  112. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  113. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  114. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  115. <B>Constructor Summary</B></FONT></TH>
  116. </TR>
  117. <TR BGCOLOR="white" CLASS="TableRowColor">
  118. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  119. <CODE>protected </CODE></FONT></TD>
  120. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#BeanShellFacade()">BeanShellFacade</A></B>()</CODE>
  121. <BR>
  122. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  123. </TR>
  124. </TABLE>
  125. &nbsp;
  126. <!-- ========== METHOD SUMMARY =========== -->
  127. <A NAME="method_summary"><!-- --></A>
  128. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  129. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  130. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  131. <B>Method Summary</B></FONT></TH>
  132. </TR>
  133. <TR BGCOLOR="white" CLASS="TableRowColor">
  134. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  135. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  136. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#_eval(T, org.gjt.sp.jedit.bsh.NameSpace, java.lang.String)">_eval</A></B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;view,
  137. <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  138. java.lang.String&nbsp;command)</CODE>
  139. <BR>
  140. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluates the specified BeanShell expression.</TD>
  141. </TR>
  142. <TR BGCOLOR="white" CLASS="TableRowColor">
  143. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  144. <CODE>&nbsp;<A HREF="../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A></CODE></FONT></TD>
  145. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#cacheBlock(java.lang.String, java.lang.String, boolean)">cacheBlock</A></B>(java.lang.String&nbsp;id,
  146. java.lang.String&nbsp;code,
  147. boolean&nbsp;namespace)</CODE>
  148. <BR>
  149. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Caches a block of code, returning a handle that can be passed to
  150. runCachedBlock().</TD>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  154. <CODE>protected static&nbsp;<A HREF="../../../../org/gjt/sp/jedit/bsh/Interpreter.html" title="class in org.gjt.sp.jedit.bsh">Interpreter</A></CODE></FONT></TD>
  155. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#createInterpreter(org.gjt.sp.jedit.bsh.NameSpace)">createInterpreter</A></B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;nameSpace)</CODE>
  156. <BR>
  157. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  158. </TR>
  159. <TR BGCOLOR="white" CLASS="TableRowColor">
  160. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  161. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  162. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#eval(T, org.gjt.sp.jedit.bsh.NameSpace, java.lang.String)">eval</A></B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  163. <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  164. java.lang.String&nbsp;command)</CODE>
  165. <BR>
  166. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluates the specified BeanShell expression.</TD>
  167. </TR>
  168. <TR BGCOLOR="white" CLASS="TableRowColor">
  169. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  170. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  171. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#eval(T, java.lang.String)">eval</A></B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  172. java.lang.String&nbsp;command)</CODE>
  173. <BR>
  174. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluates the specified BeanShell expression with the global namespace</TD>
  175. </TR>
  176. <TR BGCOLOR="white" CLASS="TableRowColor">
  177. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  178. <CODE>&nbsp;void</CODE></FONT></TD>
  179. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#evalSelection(T, org.gjt.sp.jedit.textarea.TextArea)">evalSelection</A></B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  180. <A HREF="../../../../org/gjt/sp/jedit/textarea/TextArea.html" title="class in org.gjt.sp.jedit.textarea">TextArea</A>&nbsp;textArea)</CODE>
  181. <BR>
  182. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluates the text selected in the specified text area.</TD>
  183. </TR>
  184. <TR BGCOLOR="white" CLASS="TableRowColor">
  185. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  186. <CODE>&nbsp;<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></FONT></TD>
  187. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#getNameSpace()">getNameSpace</A></B>()</CODE>
  188. <BR>
  189. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the global namespace.</TD>
  190. </TR>
  191. <TR BGCOLOR="white" CLASS="TableRowColor">
  192. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  193. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  194. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#handleException(T, java.lang.String, java.lang.Throwable)">handleException</A></B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  195. java.lang.String&nbsp;path,
  196. java.lang.Throwable&nbsp;t)</CODE>
  197. <BR>
  198. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  199. </TR>
  200. <TR BGCOLOR="white" CLASS="TableRowColor">
  201. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  202. <CODE>protected &nbsp;void</CODE></FONT></TD>
  203. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#init()">init</A></B>()</CODE>
  204. <BR>
  205. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize things.</TD>
  206. </TR>
  207. <TR BGCOLOR="white" CLASS="TableRowColor">
  208. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  209. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  210. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#resetDefaultVariables(org.gjt.sp.jedit.bsh.NameSpace)">resetDefaultVariables</A></B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace)</CODE>
  211. <BR>
  212. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  213. </TR>
  214. <TR BGCOLOR="white" CLASS="TableRowColor">
  215. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  216. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  217. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#runCachedBlock(org.gjt.sp.jedit.bsh.BshMethod, T, org.gjt.sp.jedit.bsh.NameSpace)">runCachedBlock</A></B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A>&nbsp;method,
  218. <A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  219. <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace)</CODE>
  220. <BR>
  221. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Runs a cached block of code in the specified namespace.</TD>
  222. </TR>
  223. <TR BGCOLOR="white" CLASS="TableRowColor">
  224. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  225. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  226. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#setupDefaultVariables(org.gjt.sp.jedit.bsh.NameSpace, T)">setupDefaultVariables</A></B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  227. <A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param)</CODE>
  228. <BR>
  229. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  230. </TR>
  231. <TR BGCOLOR="white" CLASS="TableRowColor">
  232. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  233. <CODE>protected static&nbsp;void</CODE></FONT></TD>
  234. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html#unwrapException(java.lang.Exception)">unwrapException</A></B>(java.lang.Exception&nbsp;e)</CODE>
  235. <BR>
  236. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This extracts an exception from a 'wrapping' exception, as BeanShell
  237. sometimes throws.</TD>
  238. </TR>
  239. </TABLE>
  240. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  241. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  242. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  243. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  244. </TR>
  245. <TR BGCOLOR="white" CLASS="TableRowColor">
  246. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  247. </TR>
  248. </TABLE>
  249. &nbsp;
  250. <P>
  251. <!-- ============ FIELD DETAIL =========== -->
  252. <A NAME="field_detail"><!-- --></A>
  253. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  254. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  255. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  256. <B>Field Detail</B></FONT></TH>
  257. </TR>
  258. </TABLE>
  259. <A NAME="global"><!-- --></A><H3>
  260. global</H3>
  261. <PRE>
  262. protected <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A> <B>global</B></PRE>
  263. <DL>
  264. <DL>
  265. </DL>
  266. </DL>
  267. <HR>
  268. <A NAME="classManager"><!-- --></A><H3>
  269. classManager</H3>
  270. <PRE>
  271. protected <A HREF="../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A> <B>classManager</B></PRE>
  272. <DL>
  273. <DL>
  274. </DL>
  275. </DL>
  276. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  277. <A NAME="constructor_detail"><!-- --></A>
  278. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  279. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  280. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  281. <B>Constructor Detail</B></FONT></TH>
  282. </TR>
  283. </TABLE>
  284. <A NAME="BeanShellFacade()"><!-- --></A><H3>
  285. BeanShellFacade</H3>
  286. <PRE>
  287. protected <B>BeanShellFacade</B>()</PRE>
  288. <DL>
  289. </DL>
  290. <!-- ============ METHOD DETAIL ========== -->
  291. <A NAME="method_detail"><!-- --></A>
  292. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  293. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  294. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  295. <B>Method Detail</B></FONT></TH>
  296. </TR>
  297. </TABLE>
  298. <A NAME="init()"><!-- --></A><H3>
  299. init</H3>
  300. <PRE>
  301. protected void <B>init</B>()</PRE>
  302. <DL>
  303. <DD>Initialize things. It is called by the constructor.
  304. You can override it to import other packages
  305. <P>
  306. <DD><DL>
  307. </DL>
  308. </DD>
  309. </DL>
  310. <HR>
  311. <A NAME="evalSelection(java.lang.Object,org.gjt.sp.jedit.textarea.TextArea)"><!-- --></A><A NAME="evalSelection(T, org.gjt.sp.jedit.textarea.TextArea)"><!-- --></A><H3>
  312. evalSelection</H3>
  313. <PRE>
  314. public void <B>evalSelection</B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  315. <A HREF="../../../../org/gjt/sp/jedit/textarea/TextArea.html" title="class in org.gjt.sp.jedit.textarea">TextArea</A>&nbsp;textArea)</PRE>
  316. <DL>
  317. <DD>Evaluates the text selected in the specified text area.
  318. <P>
  319. <DD><DL>
  320. </DL>
  321. </DD>
  322. </DL>
  323. <HR>
  324. <A NAME="eval(java.lang.Object,java.lang.String)"><!-- --></A><A NAME="eval(T, java.lang.String)"><!-- --></A><H3>
  325. eval</H3>
  326. <PRE>
  327. public java.lang.Object <B>eval</B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  328. java.lang.String&nbsp;command)</PRE>
  329. <DL>
  330. <DD>Evaluates the specified BeanShell expression with the global namespace
  331. <P>
  332. <DD><DL>
  333. <DT><B>Parameters:</B><DD><CODE>param</CODE> - The parameter<DD><CODE>command</CODE> - The expression</DL>
  334. </DD>
  335. </DL>
  336. <HR>
  337. <A NAME="eval(java.lang.Object,org.gjt.sp.jedit.bsh.NameSpace,java.lang.String)"><!-- --></A><A NAME="eval(T, org.gjt.sp.jedit.bsh.NameSpace, java.lang.String)"><!-- --></A><H3>
  338. eval</H3>
  339. <PRE>
  340. public java.lang.Object <B>eval</B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  341. <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  342. java.lang.String&nbsp;command)</PRE>
  343. <DL>
  344. <DD>Evaluates the specified BeanShell expression. Errors are reported in
  345. a dialog box.
  346. <P>
  347. <DD><DL>
  348. <DT><B>Parameters:</B><DD><CODE>param</CODE> - The parameter<DD><CODE>namespace</CODE> - The namespace<DD><CODE>command</CODE> - The expression</DL>
  349. </DD>
  350. </DL>
  351. <HR>
  352. <A NAME="_eval(java.lang.Object,org.gjt.sp.jedit.bsh.NameSpace,java.lang.String)"><!-- --></A><A NAME="_eval(T, org.gjt.sp.jedit.bsh.NameSpace, java.lang.String)"><!-- --></A><H3>
  353. _eval</H3>
  354. <PRE>
  355. public java.lang.Object <B>_eval</B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;view,
  356. <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  357. java.lang.String&nbsp;command)
  358. throws java.lang.Exception</PRE>
  359. <DL>
  360. <DD>Evaluates the specified BeanShell expression. Unlike
  361. <code>eval()</code>, this method passes any exceptions to the caller.
  362. <P>
  363. <DD><DL>
  364. <DT><B>Parameters:</B><DD><CODE>view</CODE> - The view. Within the script, references to
  365. <code>buffer</code>, <code>textArea</code> and <code>editPane</code>
  366. are determined with reference to this parameter.<DD><CODE>namespace</CODE> - The namespace<DD><CODE>command</CODE> - The expression
  367. <DT><B>Throws:</B>
  368. <DD><CODE>java.lang.Exception</CODE> - instances are thrown when various BeanShell
  369. errors occur</DL>
  370. </DD>
  371. </DL>
  372. <HR>
  373. <A NAME="cacheBlock(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
  374. cacheBlock</H3>
  375. <PRE>
  376. public <A HREF="../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A> <B>cacheBlock</B>(java.lang.String&nbsp;id,
  377. java.lang.String&nbsp;code,
  378. boolean&nbsp;namespace)
  379. throws java.lang.Exception</PRE>
  380. <DL>
  381. <DD>Caches a block of code, returning a handle that can be passed to
  382. runCachedBlock().
  383. <P>
  384. <DD><DL>
  385. <DT><B>Parameters:</B><DD><CODE>id</CODE> - An identifier. If null, a unique identifier is generated<DD><CODE>code</CODE> - The code<DD><CODE>namespace</CODE> - If true, the namespace will be set
  386. <DT><B>Throws:</B>
  387. <DD><CODE>java.lang.Exception</CODE> - instances are thrown when various BeanShell errors
  388. occur</DL>
  389. </DD>
  390. </DL>
  391. <HR>
  392. <A NAME="runCachedBlock(org.gjt.sp.jedit.bsh.BshMethod,java.lang.Object,org.gjt.sp.jedit.bsh.NameSpace)"><!-- --></A><A NAME="runCachedBlock(org.gjt.sp.jedit.bsh.BshMethod, T, org.gjt.sp.jedit.bsh.NameSpace)"><!-- --></A><H3>
  393. runCachedBlock</H3>
  394. <PRE>
  395. public java.lang.Object <B>runCachedBlock</B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A>&nbsp;method,
  396. <A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  397. <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace)
  398. throws java.lang.Exception</PRE>
  399. <DL>
  400. <DD>Runs a cached block of code in the specified namespace. Faster than
  401. evaluating the block each time.
  402. <P>
  403. <DD><DL>
  404. <DT><B>Parameters:</B><DD><CODE>method</CODE> - The method instance returned by cacheBlock()<DD><CODE>namespace</CODE> - The namespace to run the code in
  405. <DT><B>Throws:</B>
  406. <DD><CODE>java.lang.Exception</CODE> - instances are thrown when various BeanShell
  407. errors occur</DL>
  408. </DD>
  409. </DL>
  410. <HR>
  411. <A NAME="getNameSpace()"><!-- --></A><H3>
  412. getNameSpace</H3>
  413. <PRE>
  414. public <A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A> <B>getNameSpace</B>()</PRE>
  415. <DL>
  416. <DD>Returns the global namespace.
  417. <P>
  418. <DD><DL>
  419. </DL>
  420. </DD>
  421. </DL>
  422. <HR>
  423. <A NAME="setupDefaultVariables(org.gjt.sp.jedit.bsh.NameSpace,java.lang.Object)"><!-- --></A><A NAME="setupDefaultVariables(org.gjt.sp.jedit.bsh.NameSpace, T)"><!-- --></A><H3>
  424. setupDefaultVariables</H3>
  425. <PRE>
  426. protected abstract void <B>setupDefaultVariables</B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace,
  427. <A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param)
  428. throws <A HREF="../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  429. <DL>
  430. <DD><DL>
  431. <DT><B>Throws:</B>
  432. <DD><CODE><A HREF="../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  433. </DD>
  434. </DL>
  435. <HR>
  436. <A NAME="resetDefaultVariables(org.gjt.sp.jedit.bsh.NameSpace)"><!-- --></A><H3>
  437. resetDefaultVariables</H3>
  438. <PRE>
  439. protected abstract void <B>resetDefaultVariables</B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;namespace)
  440. throws <A HREF="../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  441. <DL>
  442. <DD><DL>
  443. <DT><B>Throws:</B>
  444. <DD><CODE><A HREF="../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  445. </DD>
  446. </DL>
  447. <HR>
  448. <A NAME="handleException(java.lang.Object,java.lang.String,java.lang.Throwable)"><!-- --></A><A NAME="handleException(T, java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
  449. handleException</H3>
  450. <PRE>
  451. protected abstract void <B>handleException</B>(<A HREF="../../../../org/gjt/sp/jedit/BeanShellFacade.html" title="type parameter in BeanShellFacade">T</A>&nbsp;param,
  452. java.lang.String&nbsp;path,
  453. java.lang.Throwable&nbsp;t)</PRE>
  454. <DL>
  455. <DD><DL>
  456. </DL>
  457. </DD>
  458. </DL>
  459. <HR>
  460. <A NAME="createInterpreter(org.gjt.sp.jedit.bsh.NameSpace)"><!-- --></A><H3>
  461. createInterpreter</H3>
  462. <PRE>
  463. protected static <A HREF="../../../../org/gjt/sp/jedit/bsh/Interpreter.html" title="class in org.gjt.sp.jedit.bsh">Interpreter</A> <B>createInterpreter</B>(<A HREF="../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A>&nbsp;nameSpace)</PRE>
  464. <DL>
  465. <DD><DL>
  466. </DL>
  467. </DD>
  468. </DL>
  469. <HR>
  470. <A NAME="unwrapException(java.lang.Exception)"><!-- --></A><H3>
  471. unwrapException</H3>
  472. <PRE>
  473. protected static void <B>unwrapException</B>(java.lang.Exception&nbsp;e)
  474. throws java.lang.Exception</PRE>
  475. <DL>
  476. <DD>This extracts an exception from a 'wrapping' exception, as BeanShell
  477. sometimes throws. This gives the user a more accurate error traceback
  478. <P>
  479. <DD><DL>
  480. <DT><B>Throws:</B>
  481. <DD><CODE>java.lang.Exception</CODE></DL>
  482. </DD>
  483. </DL>
  484. <!-- ========= END OF CLASS DATA ========= -->
  485. <HR>
  486. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  487. <A NAME="navbar_bottom"><!-- --></A>
  488. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  489. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  490. <TR>
  491. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  492. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  493. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  494. <TR ALIGN="center" VALIGN="top">
  495. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  496. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  497. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  498. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BeanShellFacade.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  499. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  500. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  501. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  502. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  503. </TR>
  504. </TABLE>
  505. </TD>
  506. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  507. </EM>
  508. </TD>
  509. </TR>
  510. <TR>
  511. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  512. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/BeanShellAction.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  513. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
  514. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  515. <A HREF="../../../../index.html?org/gjt/sp/jedit/BeanShellFacade.html" target="_top"><B>FRAMES</B></A> &nbsp;
  516. &nbsp;<A HREF="BeanShellFacade.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  517. &nbsp;
  518. <NOSCRIPT>
  519. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  520. </NOSCRIPT>
  521. </FONT></TD>
  522. </TR>
  523. <TR>
  524. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  525. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  526. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  527. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  528. </TR>
  529. </TABLE>
  530. <A NAME="skip-navbar_bottom"></A>
  531. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  532. <HR>
  533. </BODY>
  534. </HTML>