mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
37
modules/rhino1.7.4/src/main/java/com/script/ScriptContext.kt
Normal file
37
modules/rhino1.7.4/src/main/java/com/script/ScriptContext.kt
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package com.script
|
||||
|
||||
import java.io.Reader
|
||||
import java.io.Writer
|
||||
|
||||
interface ScriptContext {
|
||||
|
||||
var errorWriter: Writer
|
||||
|
||||
var reader: Reader
|
||||
|
||||
val scopes: List<Int>
|
||||
|
||||
var writer: Writer
|
||||
|
||||
fun getAttribute(name: String): Any?
|
||||
|
||||
fun getAttribute(name: String, scope: Int): Any?
|
||||
|
||||
fun getAttributesScope(name: String): Int
|
||||
|
||||
fun getBindings(scope: Int): Bindings?
|
||||
|
||||
fun removeAttribute(name: String, scope: Int): Any?
|
||||
|
||||
fun setAttribute(name: String, value: Any?, scope: Int)
|
||||
|
||||
fun setBindings(bindings: Bindings?, scope: Int)
|
||||
|
||||
companion object {
|
||||
const val ENGINE_SCOPE = 100
|
||||
const val GLOBAL_SCOPE = 200
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user