public class JSRuntimeContext extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
JSRuntimeContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
public Object getJsObjectProperty(String objName, String propertyName) throws ScriptException
ScriptExceptionpublic Object callJsObjectMethod(Object jsObject, String methodName, Object... args) throws ScriptException, NoSuchMethodException
Copyright © 2023 江苏南大先腾信息产业股份有限公司. All rights reserved.