|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bsf.util.BSFEngineImpl
com.judoscript.BSFJudoEngine
public class BSFJudoEngine
This is the interface for BSF. Need to have IBM's BSF package in the classpath.
Field Summary |
---|
Fields inherited from class org.apache.bsf.util.BSFEngineImpl |
---|
classLoader, classPath, dbgmgr, declaredBeans, lang, mgr, tempDir |
Constructor Summary | |
---|---|
BSFJudoEngine()
|
Method Summary | |
---|---|
java.lang.Object |
call(java.lang.Object object,
java.lang.String fxn,
java.lang.Object[] args)
Calls a function. |
void |
declareBean(org.apache.bsf.BSFDeclaredBean bean)
Declare a bean. |
java.lang.Object |
eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Evaluates an expression. |
void |
exec(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object script)
Executes a script. |
void |
initialize(org.apache.bsf.BSFManager mgr,
java.lang.String lang,
java.util.Vector declaredBeans)
Initializes the engine. |
void |
undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
Undeclare a previously declared bean. |
Methods inherited from class org.apache.bsf.util.BSFEngineImpl |
---|
apply, compileApply, compileExpr, compileScript, disconnectedDebuggerNotify, getSpecificDebuggingInterface, placeBreakpointAtLine, placeBreakpointAtOffset, propertyChange, removeBreakpoint, setEntryExit, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BSFJudoEngine()
Method Detail |
---|
public void initialize(org.apache.bsf.BSFManager mgr, java.lang.String lang, java.util.Vector declaredBeans) throws org.apache.bsf.BSFException
$$bsf
object in JudoScript, and sets all the declared beans as global variables.
initialize
in interface org.apache.bsf.BSFEngine
initialize
in class org.apache.bsf.util.BSFEngineImpl
mgr
- the BSF manager.lang
- always "judoscript".declaredBeans
- objects to set during initialization; elements are
instances of com.ibm.bsf.DeclaredBean
.
org.apache.bsf.BSFException
public java.lang.Object eval(java.lang.String source, int lineNo, int columnNo, java.lang.Object script) throws org.apache.bsf.BSFException
source
- the file name of the expression; not used.lineNo
- the line number in the file; not used.columnNo
- the column number in the file; not used.script
- the expression; should be a String.
org.apache.bsf.BSFException
public void exec(java.lang.String source, int lineNo, int columnNo, java.lang.Object script) throws org.apache.bsf.BSFException
exec
in interface org.apache.bsf.BSFEngine
exec
in class org.apache.bsf.util.BSFEngineImpl
source
- the file name of the expression; not used.lineNo
- the line number in the file; not used.columnNo
- the column number in the file; not used.script
- the script code; should be a String.
org.apache.bsf.BSFException
public java.lang.Object call(java.lang.Object object, java.lang.String fxn, java.lang.Object[] args) throws org.apache.bsf.BSFException
object
- is the name of the object; not used.fxn
- the function name.args
- the arguments.
org.apache.bsf.BSFException
public void declareBean(org.apache.bsf.BSFDeclaredBean bean) throws org.apache.bsf.BSFException
declareBean
in interface org.apache.bsf.BSFEngine
declareBean
in class org.apache.bsf.util.BSFEngineImpl
org.apache.bsf.BSFException
public void undeclareBean(org.apache.bsf.BSFDeclaredBean bean) throws org.apache.bsf.BSFException
undeclareBean
in interface org.apache.bsf.BSFEngine
undeclareBean
in class org.apache.bsf.util.BSFEngineImpl
org.apache.bsf.BSFException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |