| Modifier and Type | Field and Description |
|---|---|
static int |
KIND_FUN |
static int |
KIND_JAVA |
| Constructor and Description |
|---|
JavaEngine() |
| Modifier and Type | Method and Description |
|---|---|
Object |
eval(@NotNull Map<String,Object> ctx,
@NotNull RnaWarmed expr,
boolean mute)
对功能体求值
|
@NotNull RnaEngine |
fork()
创建一个新的引擎。复制或共享父engine环境无要求。
一般的使用场景等同于new,可是new是关键词,还是3字母
|
@NotNull String[] |
type()
可以被此引擎执行的类型。`*`表示any
|
@NotNull RnaWarmed |
warm(@NotNull String type,
@NotNull String expr)
解析阶段,方法体预热,如语法检查,预编译等,一个expr应该只warm一次
|
public static final int KIND_JAVA
public static final int KIND_FUN
@NotNull public @NotNull String[] type()
RnaEnginepublic Object eval(@NotNull @NotNull Map<String,Object> ctx, @NotNull @NotNull RnaWarmed expr, boolean mute)
RnaEngine@NotNull public @NotNull RnaEngine fork()
RnaEngineCopyright © 2020. All rights reserved.