public class JSRuntimeContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
JSRuntimeContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
callJsFunc(String funcName,
Object... args) |
Object |
callJsObjectMethod(Object jsObject,
String methodName,
Object... args) |
static Object |
checkArrayObject(Object object) |
JSRuntimeContext |
compileScript(String js) |
JSRuntimeContext |
compileScriptFile(String jsFileName) |
JSRuntimeContext |
compileScriptStream(InputStream is) |
Object |
getJsObject(String objName) |
Object |
getJsObjectProperty(String objName,
String propertyName) |
public JSRuntimeContext compileScript(String js)
public JSRuntimeContext compileScriptFile(String jsFileName)
public JSRuntimeContext compileScriptStream(InputStream is)
public Object callJsFunc(String funcName, Object... args) throws ScriptException, NoSuchMethodException
ScriptExceptionNoSuchMethodExceptionpublic Object getJsObjectProperty(String objName, String propertyName) throws ScriptException
ScriptExceptionpublic Object callJsObjectMethod(Object jsObject, String methodName, Object... args) throws ScriptException, NoSuchMethodException
ScriptExceptionNoSuchMethodExceptionCopyright © 2024 江苏南大先腾信息产业股份有限公司. All rights reserved.