public abstract class AbstractRuntimeContext extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
AbstractRuntimeContext(String engineName) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
callFunc(String funcName,
Object... args) |
Object |
callObjectMethod(Object jsObject,
String methodName,
Object... args) |
static Object |
checkArrayObject(Object object)
检查js返回的对象是否是数组
|
AbstractRuntimeContext |
compileScript(String js) |
AbstractRuntimeContext |
compileScriptFile(String jsFileName) |
AbstractRuntimeContext |
compileScriptStream(InputStream is) |
Object |
getObject(String objName) |
Object |
getObjectProperty(String objName,
String propertyName) |
public AbstractRuntimeContext(String engineName)
public AbstractRuntimeContext compileScript(String js)
public AbstractRuntimeContext compileScriptFile(String jsFileName)
public AbstractRuntimeContext compileScriptStream(InputStream is)
public static Object checkArrayObject(Object object)
object - js对象public Object callFunc(String funcName, Object... args) throws ScriptException, NoSuchMethodException
public Object getObjectProperty(String objName, String propertyName) throws ScriptException
ScriptExceptionpublic Object callObjectMethod(Object jsObject, String methodName, Object... args) throws ScriptException, NoSuchMethodException
Copyright © 2025 江苏南大先腾信息产业股份有限公司. All rights reserved.