public class JavaClassEngine extends BSFEngineImpl
classLoader, classPath, declaredBeans, lang, mgr, tempDir
Constructor and Description |
---|
JavaClassEngine() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(java.lang.Object object,
java.lang.String method,
java.lang.Object[] args)
call the named method of the given object.
|
java.lang.Object |
eval(java.lang.String source,
int lineNo,
int columnNo,
java.lang.Object oscript)
This is used by an application to evaluate an object containing
some expression - clearly not possible for compiled code ..
|
apply, compileApply, compileExpr, compileScript, declareBean, exec, iexec, initialize, propertyChange, terminate, undeclareBean
public java.lang.Object call(java.lang.Object object, java.lang.String method, java.lang.Object[] args) throws BSFException
object
- object on which to make the callmethod
- name of the method / procedure to callargs
- the arguments to be given to the procedureBSFException
- if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.public java.lang.Object eval(java.lang.String source, int lineNo, int columnNo, java.lang.Object oscript) throws BSFException
source
- (context info) the source of this expression
(e.g., filename)lineNo
- (context info) the line number in source for exprcolumnNo
- (context info) the column number in source for exproscript
- the expression to evaluateBSFException
- if anything goes wrong while eval'ing a
BSFException is thrown. The reason indicates the problem.