|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptEngine
An interface to extended script engines.
If a global string array bean "_arguments" has been declared and the script defines a class with a static main(String[] args) method, that method is automatically called.
If the script defines a class with a static execute() or evaluate() method, that method is automatically called.
If the script defines a class with a static apply(List params) method, that method is automatically called.
Note that only the first one of the above methods is called within one script.
| Field Summary | |
|---|---|
static String |
APPLY
The apply method. |
static String |
ARGUMENTS
The global main arguments bean. |
static String |
EVALUATE
The evaluate method. |
static String |
EXECUTE
The execute method. |
static String |
MAIN
The main method. |
| Method Summary | |
|---|---|
String |
getInitializer()
Gets an initializer script. |
boolean |
isInitialized()
Checks whether initialized. |
void |
reinitialize(String lang,
Vector beans)
Reinitializes the engine by clearing existing declarations. |
void |
setInitializer(String script)
Sets an initializer script. |
| Methods inherited from interface org.apache.bsf.BSFEngine |
|---|
apply, call, compileApply, compileExpr, compileScript, declareBean, disconnectedDebuggerNotify, eval, exec, getSpecificDebuggingInterface, initialize, placeBreakpointAtLine, placeBreakpointAtOffset, removeBreakpoint, setEntryExit, terminate, undeclareBean |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Field Detail |
|---|
static final String MAIN
static final String EXECUTE
static final String EVALUATE
static final String APPLY
static final String ARGUMENTS
| Method Detail |
|---|
String getInitializer()
void setInitializer(String script)
script - the initializer.boolean isInitialized()
void reinitialize(String lang,
Vector beans)
throws org.apache.bsf.BSFException
lang - the language.beans - declared beans.
org.apache.bsf.BSFException - on errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||