|
|
@ -516,6 +516,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { |
|
|
|
@Throws(Exception::class) |
|
|
|
@Throws(Exception::class) |
|
|
|
private fun evalJS(jsStr: String, result: Any?): Any { |
|
|
|
private fun evalJS(jsStr: String, result: Any?): Any { |
|
|
|
val bindings = SimpleBindings() |
|
|
|
val bindings = SimpleBindings() |
|
|
|
|
|
|
|
bindings["analyzeRule"] = this |
|
|
|
bindings["book"] = book |
|
|
|
bindings["book"] = book |
|
|
|
bindings["java"] = JsExtensions() |
|
|
|
bindings["java"] = JsExtensions() |
|
|
|
bindings["result"] = result |
|
|
|
bindings["result"] = result |
|
|
|