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