public class NashornJtExecutor extends Object implements IJtExecutor
| Modifier and Type | Method and Description |
|---|---|
String |
compilerAsFun(String name,
AFileModel file)
编译为函数代码
|
void |
del(String name) |
void |
delAll() |
Object |
exec(String name,
AFileModel file,
org.noear.solon.core.handle.Context ctx,
Map<String,Object> model,
boolean outString) |
Object |
exec(String code,
Map<String,Object> model) |
boolean |
isLoaded(String name2) |
String |
language() |
boolean |
preLoad(String name2,
AFileModel file) |
void |
sharedSet(String name,
Object val) |
static NashornJtExecutor |
singleton() |
public static NashornJtExecutor singleton()
public String language()
language in interface IJtExecutorpublic boolean isLoaded(String name2)
isLoaded in interface IJtExecutorpublic boolean preLoad(String name2, AFileModel file) throws Exception
preLoad in interface IJtExecutorExceptionpublic void del(String name)
del in interface IJtExecutorpublic void delAll()
delAll in interface IJtExecutorpublic Object exec(String name, AFileModel file, org.noear.solon.core.handle.Context ctx, Map<String,Object> model, boolean outString) throws Exception
exec in interface IJtExecutorExceptionpublic Object exec(String code, Map<String,Object> model) throws Exception
exec in interface IJtExecutorExceptionpublic String compilerAsFun(String name, AFileModel file)
Copyright © 2025. All rights reserved.