Storages

interface Storages : Variable

存储管理接口,用于获取和移除存储实例

该接口继承自Variable,提供了对存储对象的管理功能,可通过名称获取对应的Storage实例, 也可以移除指定名称的存储实例。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun get(name: String): Storage

根据名称获取存储实例

Link copied to clipboard
abstract fun getGlobalName(): String

获取作为全局变量时的名称.

Link copied to clipboard
abstract fun getPublicType(): Type

获取 Variable 注入到脚本时需要显示的类型.

Link copied to clipboard
abstract fun isPrefixRequired(): Boolean

是否需要添加前缀, 每种编程语言添加的前缀不一样, 前缀可以通过 Language.getVariablePrefix 获取.

Link copied to clipboard
abstract fun isSuffixRequired(): Boolean

是否需要添加后缀, 每种编程语言添加的后缀不一样, 后缀可以通过 Language.getVariableSuffix 获取.

Link copied to clipboard
abstract fun remove(name: String): Boolean

移除指定名称的存储实例