products/Sources/formale Sprachen/Isabelle/Tools/jEdit/dist/doc/api/org/gjt/sp/jedit/BeanShell.html |
 |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Thu Sep 03 05:32:24 CEST 2020 -->
<title>BeanShell (jEdit API Documentation)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-09-03">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BeanShell (jEdit API Documentation)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/BeanShell.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.gjt.sp.jedit</a></div>
<h2 title="Class BeanShell" class="title">Class BeanShell</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.gjt.sp.jedit.BeanShell</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public class <span class="typeNameLabel">BeanShell</span>
extends java.lang.Object</pre>
<div class="block">BeanShell is jEdit's extension language.
When run from jEdit, BeanShell code has access to the following predefined
variables:
<ul>
<li><code>view</code> - the currently active <a href="View.html" title="class in org.gjt.sp.jedit"><code>View</code></a>.</li>
<li><code>editPane</code> - the currently active <a href="EditPane.html" title="class in org.gjt.sp.jedit"><code>EditPane</code></a>.</li>
<li><code>textArea</code> - the edit pane's JEditTextArea .
<li><code>buffer</code> - the edit pane's Buffer .
<li><code>wm</code> - the view's DockableWindowManager .
<li><code>scriptPath</code> - the path name of the currently executing
BeanShell script.</li>
</ul></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">BeanShell</a></span>()</code></th>
<td class="colLast"> </td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_eval(org.gjt.sp.jedit.View,org.gjt.sp.jedit.bsh.NameSpace,java.lang.String)">_eval</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace,
java.lang.String command)</code></th>
<td class="colLast">
<div class="block">Evaluates the specified BeanShell expression.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,boolean)">_runScript</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
boolean ownNamespace)</code></th>
<td class="colLast">
<div class="block">Runs a BeanShell script.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,org.gjt.sp.jedit.bsh.NameSpace)">_runScript</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace)</code></th>
<td class="colLast">
<div class="block">Runs a BeanShell script.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cacheBlock(java.lang.String,java.lang.String,boolean)">cacheBlock</a></span>(java.lang.String id,
java.lang.String code,
boolean namespace)</code></th>
<td class="colLast">
<div class="block">Caches a block of code, returning a handle that can be passed to
runCachedBlock().</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#eval(org.gjt.sp.jedit.View,org.gjt.sp.jedit.bsh.NameSpace,java.lang.String)">eval</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace,
java.lang.String command)</code></th>
<td class="colLast">
<div class="block">Evaluates the specified BeanShell expression.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evalSelection(org.gjt.sp.jedit.View,org.gjt.sp.jedit.textarea.JEditTextArea)">evalSelection</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="textarea/JEditTextArea.html" title="class in org.gjt.sp.jedit.textarea">JEditTextArea</a> textArea)</code></th>
<td class="colLast">
<div class="block">Evaluates the text selected in the specified text area.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNameSpace()">getNameSpace</a></span>()</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isScriptRunning()">isScriptRunning</a></span>()</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#runCachedBlock(org.gjt.sp.jedit.bsh.BshMethod,org.gjt.sp.jedit.View,org.gjt.sp.jedit.bsh.NameSpace)">runCachedBlock</a></span>(<a href="bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</a> method,
<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace)</code></th>
<td class="colLast">
<div class="block">Runs a cached block of code in the specified namespace.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,boolean)">runScript</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
boolean ownNamespace)</code></th>
<td class="colLast">
<div class="block">Runs a BeanShell script.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,org.gjt.sp.jedit.bsh.NameSpace)">runScript</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace)</code></th>
<td class="colLast">
<div class="block">Runs a BeanShell script.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#showEvaluateDialog(org.gjt.sp.jedit.View)">showEvaluateDialog</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view)</code></th>
<td class="colLast">
<div class="block">Prompts for a BeanShell expression to evaluate.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#showEvaluateLinesDialog(org.gjt.sp.jedit.View)">showEvaluateLinesDialog</a></span>(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view)</code></th>
<td class="colLast">
<div class="block">Evaluates the specified script for each selected line.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="<init>()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BeanShell</h4>
<pre>public BeanShell()</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="evalSelection(org.gjt.sp.jedit.View,org.gjt.sp.jedit.textarea.JEditTextArea)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>evalSelection</h4>
<pre class="methodSignature">public static void evalSelection(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="textarea/JEditTextArea.html" title="class in org.gjt.sp.jedit.textarea">JEditTextArea</a> textArea)</pre>
<div class="block">Evaluates the text selected in the specified text area.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view</dd>
<dd><code>textArea</code> - The text area</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 2.7pre2</dd>
</dl>
</li>
</ul>
<a id="showEvaluateDialog(org.gjt.sp.jedit.View)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>showEvaluateDialog</h4>
<pre class="methodSignature">public static void showEvaluateDialog(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view)</pre>
<div class="block">Prompts for a BeanShell expression to evaluate.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - the View</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 2.7pre2</dd>
</dl>
</li>
</ul>
<a id="showEvaluateLinesDialog(org.gjt.sp.jedit.View)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>showEvaluateLinesDialog</h4>
<pre class="methodSignature">public static void showEvaluateLinesDialog(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view)</pre>
<div class="block">Evaluates the specified script for each selected line.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.0pre1</dd>
</dl>
</li>
</ul>
<a id="runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runScript</h4>
<pre class="methodSignature">public static void runScript(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
boolean ownNamespace)</pre>
<div class="block">Runs a BeanShell script. Errors are shown in a dialog box.<p>
If the <code>in</code> parameter is non-null, the script is
read from that stream; otherwise it is read from the file identified
by <code>path</code>.<p>
The <code>scriptPath</code> BeanShell variable is set to the path
name of the script.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view. Within the script, references to
<code>buffer</code>, <code>textArea</code> and <code>editPane</code>
are determined with reference to this parameter.</dd>
<dd><code>path</code> - The script file's VFS path.
<dd><code>in</code> - The reader to read the script from, or <code>null</code>.</dd>
<dd><code>ownNamespace</code> - If set to <code>false</code>, methods and
variables defined in the script will be available to all future
uses of BeanShell; if set to <code>true</code>, they will be lost as
soon as the script finishes executing. jEdit uses a value of
<code>false</code> when running startup scripts, and a value of
<code>true</code> when running all other macros.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.0pre7</dd>
</dl>
</li>
</ul>
<a id="runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,org.gjt.sp.jedit.bsh.NameSpace)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runScript</h4>
<pre class="methodSignature">public static void runScript(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace)</pre>
<div class="block">Runs a BeanShell script. Errors are shown in a dialog box.<p>
If the <code>in</code> parameter is non-null, the script is
read from that stream; otherwise it is read from the file identified
by <code>path</code>.<p>
The <code>scriptPath</code> BeanShell variable is set to the path
name of the script.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view. Within the script, references to
<code>buffer</code>, <code>textArea</code> and <code>editPane</code>
are determined with reference to this parameter.</dd>
<dd><code>path</code> - The script file's VFS path.
<dd><code>in</code> - The reader to read the script from, or <code>null</code>.</dd>
<dd><code>namespace</code> - The namespace to run the script in.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.2pre5</dd>
</dl>
</li>
</ul>
<a id="_runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_runScript</h4>
<pre class="methodSignature">public static void _runScript(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
boolean ownNamespace)
throws java.lang.Exception</pre>
<div class="block">Runs a BeanShell script. Errors are passed to the caller.<p>
If the <code>in</code> parameter is non-null, the script is
read from that stream; otherwise it is read from the file identified
by <code>path</code>.<p>
The <code>scriptPath</code> BeanShell variable is set to the path
name of the script.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view. Within the script, references to
<code>buffer</code>, <code>textArea</code> and <code>editPane</code>
are determined with reference to this parameter.</dd>
<dd><code>path</code> - The script file's VFS path.
<dd><code>in</code> - The reader to read the script from, or <code>null</code>.</dd>
<dd><code>ownNamespace</code> - If set to <code>false</code>, methods and
variables defined in the script will be available to all future
uses of BeanShell; if set to <code>true</code>, they will be lost as
soon as the script finishes executing. jEdit uses a value of
<code>false</code> when running startup scripts, and a value of
<code>true</code> when running all other macros.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - instances are thrown when various BeanShell errors
occur</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.0pre7</dd>
</dl>
</li>
</ul>
<a id="_runScript(org.gjt.sp.jedit.View,java.lang.String,java.io.Reader,org.gjt.sp.jedit.bsh.NameSpace)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_runScript</h4>
<pre class="methodSignature">public static void _runScript(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
java.lang.String path,
java.io.Reader in,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace)
throws java.lang.Exception</pre>
<div class="block">Runs a BeanShell script. Errors are passed to the caller.<p>
If the <code>in</code> parameter is non-null, the script is
read from that stream; otherwise it is read from the file identified
by <code>path</code>.<p>
The <code>scriptPath</code> BeanShell variable is set to the path
name of the script.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view. Within the script, references to
<code>buffer</code>, <code>textArea</code> and <code>editPane</code>
are determined with reference to this parameter.</dd>
<dd><code>path</code> - The script file's VFS path.
<dd><code>in</code> - The reader to read the script from, or <code>null</code>.</dd>
<dd><code>namespace</code> - The namespace to run the script in.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - instances are thrown when various BeanShell errors
occur</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.2pre5</dd>
</dl>
</li>
</ul>
<a id="eval(org.gjt.sp.jedit.View,org.gjt.sp.jedit.bsh.NameSpace,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eval</h4>
<pre class="methodSignature">public static java.lang.Object eval(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace,
java.lang.String command)</pre>
<div class="block">Evaluates the specified BeanShell expression. Errors are reported in
a dialog box.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view. Within the script, references to
<code>buffer</code>, <code>textArea</code> and <code>editPane</code>
are determined with reference to this parameter.</dd>
<dd><code>namespace</code> - The namespace</dd>
<dd><code>command</code> - The expression</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an object</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.0pre8</dd>
</dl>
</li>
</ul>
<a id="_eval(org.gjt.sp.jedit.View,org.gjt.sp.jedit.bsh.NameSpace,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_eval</h4>
<pre class="methodSignature">public static java.lang.Object _eval(<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace,
java.lang.String command)
throws java.lang.Exception</pre>
<div class="block">Evaluates the specified BeanShell expression. Unlike
<code>eval()</code>, this method passes any exceptions to the caller.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>view</code> - The view. Within the script, references to
<code>buffer</code>, <code>textArea</code> and <code>editPane</code>
are determined with reference to this parameter.</dd>
<dd><code>namespace</code> - The namespace</dd>
<dd><code>command</code> - The expression</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - instances are thrown when various BeanShell
errors occur</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 3.2pre7</dd>
</dl>
</li>
</ul>
<a id="cacheBlock(java.lang.String,java.lang.String,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cacheBlock</h4>
<pre class="methodSignature">public static <a href="bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</a> cacheBlock(java.lang.String id,
java.lang.String code,
boolean namespace)
throws java.lang.Exception</pre>
<div class="block">Caches a block of code, returning a handle that can be passed to
runCachedBlock().</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - An identifier. If null, a unique identifier is generated</dd>
<dd><code>code</code> - The code</dd>
<dd><code>namespace</code> - If true, the namespace will be set</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a bsh method</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - instances are thrown when various BeanShell errors
occur</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.1pre1</dd>
</dl>
</li>
</ul>
<a id="runCachedBlock(org.gjt.sp.jedit.bsh.BshMethod,org.gjt.sp.jedit.View,org.gjt.sp.jedit.bsh.NameSpace)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runCachedBlock</h4>
<pre class="methodSignature">public static java.lang.Object runCachedBlock(<a href="bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</a> method,
<a href="View.html" title="class in org.gjt.sp.jedit">View</a> view,
<a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> namespace)
throws java.lang.Exception</pre>
<div class="block">Runs a cached block of code in the specified namespace. Faster than
evaluating the block each time.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>method</code> - The method instance returned by cacheBlock()</dd>
<dd><code>view</code> - The view</dd>
<dd><code>namespace</code> - The namespace to run the code in</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an object</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - instances are thrown when various BeanShell
errors occur</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 4.1pre1</dd>
</dl>
</li>
</ul>
<a id="isScriptRunning()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isScriptRunning</h4>
<pre class="methodSignature">public static boolean isScriptRunning()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>if a BeanShell script or macro is currently running.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 2.7pre2</dd>
</dl>
</li>
</ul>
<a id="getNameSpace()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getNameSpace</h4>
<pre class="methodSignature">public static <a href="bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</a> getNameSpace()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the global namespace.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>jEdit 3.2pre5</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/BeanShell.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.77Angebot
Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können
¤
|
schauen Sie vor die Tür
Fenster
Die Firma ist wie angegeben erreichbar.
Entwicklung einer Software für die statische Quellcodeanalyse
|