|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.higgins.util.jscript.JScriptExec
Simplified representation of a PDP utilizing Mozilla's
Rhino project as a JavaScript
interpreter for policies.
This object is used to evaluate the script and holds references to
the compiled JavaScript fragment within a
JScriptScope
Critical exceptions are logged as errors via commons logging
| Constructor Summary | |
|---|---|
JScriptExec(JScriptScope sharedScope,
String script,
String scriptID)
|
|
| Method Summary | |
|---|---|
Object |
evaluate(String[] paramNames,
Object[] params)
Evaluate a previously complied script fragment. |
Object |
evaluate(String[] paramNames,
Object[] params,
String[] outputNames,
Object[] outputObjects)
Evaluate a previously complied script fragment. |
Object |
evaluate(String ParamName,
Object Param)
Evaluate a previously complied script fragment. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JScriptExec(JScriptScope sharedScope,
String script,
String scriptID)
throws JScriptException
| Method Detail |
public Object evaluate(String[] paramNames,
Object[] params)
throws JScriptException
paramNames - ordered list of string versions of the parameter
names. These are the names which will be stored in the local
JavaScript scope for use by the JavaScript code fragmentparams - order list containing the objects represented
by the string names. This will be wrapped and made availible
for use by the Script in the evaluation.
JScriptException
public Object evaluate(String[] paramNames,
Object[] params,
String[] outputNames,
Object[] outputObjects)
throws JScriptException
paramNames - ordered list of string versions of the parameter
names. These are the names which will be stored in the local
JavaScript scope for use by the JavaScript code fragmentparams - order list containing the objects represented
by the string names. This will be wrapped and made availible
for use by the Script in the evaluation.
JScriptException
public Object evaluate(String ParamName,
Object Param)
throws JScriptException
ParamName - = string name of the parameterParam - value of the parameter
JScriptException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||