| pnuts.ext.PnutsBSFEngine
PnutsBSFEngine | public class PnutsBSFEngine extends BSFEngineImpl (Code) | | This is the interface to Pnuts from Bean Scripting Framework.
See Also: Pnuts User's Guide See Also: com.ibm.bsf.BSFEngine See Also: pnuts.lang.Package See Also: pnuts.lang.Context |
Method Summary | |
public Object | call(Object object, String method, Object[] args) This is used by an application to call into the scripting engine
to make a function/method call. | public void | declareBean(BSFDeclaredBean bean) | public Object | eval(String source, int lineNo, int columnNo, Object script) This is used by an application to evaluate an expression. | public void | undeclareBean(BSFDeclaredBean bean) Undeclare a previously declared bean. |
PnutsBSFEngine | public PnutsBSFEngine()(Code) | | |
call | public Object call(Object object, String method, Object[] args) throws BSFException(Code) | | This is used by an application to call into the scripting engine
to make a function/method call. The "object" argument is the object
whose method is to be called, if that applies. For non-OO languages,
this is typically ignored and should be given as null. For pretend-OO
languages such as VB, this would be the (String) name of the object.
The arguments are given in the args array.
Parameters: object - object on which to make the call Parameters: name - name of the method / procedure to call Parameters: args - the arguments to be given to the procedure throws: BSFException - if anything goes wrong while eval'ing aBSFException is thrown. The reason indicates the problem. |
declareBean | public void declareBean(BSFDeclaredBean bean) throws BSFException(Code) | | Declare a bean
|
eval | public Object eval(String source, int lineNo, int columnNo, Object script) throws BSFException(Code) | | This is used by an application to evaluate an expression. The
expression may be string or some other type, depending on the
language. (For example, for BML it'll be an org.w3c.dom.Element
object.)
Parameters: source - (context info) the source of this expression(e.g., filename) Parameters: lineNo - (context info) the line number in source for expr Parameters: columnNo - (context info) the column number in source for expr Parameters: expr - the expression to evaluate throws: BSFException - if anything goes wrong while eval'ing aBSFException is thrown. The reason indicates the problem. |
undeclareBean | public void undeclareBean(BSFDeclaredBean bean) throws BSFException(Code) | | Undeclare a previously declared bean.
|
|
|