-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ace9ad
commit 70cec2a
Showing
7 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
dependencies {} | ||
dependencies { | ||
compileModule("module-core") | ||
} |
8 changes: 8 additions & 0 deletions
8
project/module-common/src/main/kotlin/cn/fd/utilities/util/ClassUtil.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package cn.fd.utilities.util | ||
|
||
import taboolib.common.io.runningClasses | ||
import java.util.* | ||
|
||
fun getRunningClasses(): LinkedList<Class<*>> { | ||
return runningClasses | ||
} |
8 changes: 3 additions & 5 deletions
8
...tlin/cn/fd/utilities/common/util/Utils.kt → ...main/kotlin/cn/fd/utilities/util/Utils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
project/module-core/src/main/kotlin/cn/fd/utilities/core/script/RuntimeClassLoader.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package cn.fd.utilities.core.script | ||
|
||
/** | ||
* 运行库加载器 | ||
* | ||
* @author 坏黑 | ||
* @since 2022/5/16 01:01 | ||
*/ | ||
interface RuntimeClassLoader { | ||
|
||
/** | ||
* 获取所有已加载的类 | ||
*/ | ||
fun runningClasses(): Map<String, Class<*>> | ||
|
||
/** | ||
* 获取类 | ||
*/ | ||
fun findClass(name: String): Class<*> | ||
} |