All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.asahi.api.script.linking.InvokerHolder.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.asahi.api.script.linking

/**
 * @className InvokerHolder
 *
 * @author Glom
 * @date 2023/1/22 19:06 Copyright 2024 Glom.
 */
interface InvokerHolder {
    /** 可调用对象 当前上下文中的可调用对象 */
    val invokers: HashMap


    /**
     * Has invoker
     *
     * @param key
     * @return
     */
    fun hasInvoker(key: String): Boolean {
        return invokers.containsKey(key)
    }

    /**
     * Add invoker
     *
     * @param key
     * @param invoker
     */
    fun addInvoker(key: String, invoker: Invoker) {
        invokers[key] = invoker
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy