BeanShell
Home PageCategories: Scripting
Author: Pat Niemeyer
Latest version: 2.0 Beta 4
Added 2005-02-21
BeanShell is an embeddable Java source interpreter with object scripting language features, written in Java.
BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript.
You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for your applications. In short: BeanShell is a dynamically interpreted Java, plus some useful stuff. Another way to describe it is to say that in many ways BeanShell is to Java as Tcl/Tk is to C: BeanShell is embeddable - You can call BeanShell from your Java applications to execute Java code dynamically at run-time or to provide scripting extensibility for your applications. Alternatively, you can call your Java applications and objects from BeanShell; working with Java objects and APIs dynamically. Since BeanShell is written in Java and runs in the same space as your application, you can freely pass references to "real live" objects into scripts and return them as results.
Features include:
* Uses the Java reflection API to provide runtime interpreted execution of Java statements and expressions.
* Transparent access to all Java objects and APIs.
* Runs in four modes: command line, console, applet, remote session server.
* Works in applets as well as applications (no compiler or classloader)
* The interpreter is ~175K jar file (~135K without the utilities).
* Pure Java.
Built for Java |
Free or free version available |
Source code provided |