Home
Back
Contents
Next
Table of Contents
Table of Contents
Introduction
Scripting vs. Application Languages
Tearing Down the Barriers
History
Conclusion
Quick Start
Download and Run BeanShell
The BeanShell GUI
Java Statements and Expressions
Useful BeanShell Commands
Scripted Methods
Implementing Interfaces
Scripted Objects
Calling BeanShell From Your Application
Conclusion
Basic Syntax
Standard Java Syntax
Loosely Typed Java Syntax
Exception Handling
Basic Scoping of Variables
Variable Modifiers
Convenience Syntax
Auto Boxing and Unboxing
Importing Classes and Packages
Document Friendly Entities
Scripted Methods
Scoping of Variables and Methods
Scope Modifier: 'super'
Scripted Objects
The 'this' reference
Scope Modifiers
'this', 'super', and 'global'
Synchronized Methods Revisited
Scripting Interfaces
Anonymous Inner-Class Style
'this' references as Interface Types
Interface Types and Casting
"Dummy" Adapters and Incomplete Interfaces
Threads - Scripting Runnable
Limitations
Special Variables and Values
Special Members of 'this' type References
Undefined Variables
Setting the Command Prompt
BeanShell Commands
Commands Overview
Adding BeanShell Commands
Hello World
Compiled Commands
User Defined Commands with invoke()
Commands Scope
Getting the Caller Context
setNameSpace()
Getting the Invocation Text
Working with Dirctories and Paths
Working With Class Identifiers
Working with Iterable Types
Strict Java Mode
Class Loading and Class Path Management
Changing the Class Path
Auto-Importing from the Classpath
Reloading Classes
Loading Classes Explicitly
Setting the Default ClassLoader
Class Loading in Java
Class Loading in BeanShell
Modes of Operation
Standalone
Remote
Interactive Use
The .bshrc Init File
Embedding BeanShell in Your Application
The BeanShell Core Distribution
Calling BeanShell From Java
eval()
EvalError
source()
Multiple Interpreters vs. Multi-threading
Serializing Interpreters and Scripted Objects
Remote Server Mode
Web Browser Access
Example
Telnet Access
BshServlet and Servlet Mode Scripting
Deploying BshServlet
Running Scripts
The Script Environment
BshServlet Parameters
The BeanShell Demo Applet
BeanShell Desktop
Shell Windows
Editor Windows
The Class Browser
BshDoc - Javadoc Style Documentation
BshDoc Comments
BshDoc XML Output
The bshcommands.xsl stylesheet
The BeanShell Parser
Validating Scripts With bsh.Parser
Parsing and Performance
Parsing Scripts Procedurally
Using JConsole
ConsoleInterface
Reflective Style Access to Scripted Methods
eval()
invokeMethod()
Method Lookup
BshMethod
Uses
Executable scripts under Unix
BSF Bean Scripting Framework
Ant
Learning More
Helping With the Project
Credit and Acknowledgments
License and Terms of Use
BeanShell Commands Documentation
Home
Back
Contents
Next