com.skillw.asahi.internal.namespacing.prefix.lang.util.String.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Pouvoir Show documentation
Show all versions of Pouvoir Show documentation
Bukkit Script Engine Plugin.
The newest version!
package com.skillw.asahi.internal.namespacing.prefix.lang.util
import com.skillw.asahi.api.AsahiAPI.analysis
import com.skillw.asahi.api.annotation.AsahiPrefix
import com.skillw.asahi.api.prefixParser
import com.skillw.asahi.api.quest
/**
* @className String
*
* @author Glom
* @date 2023/1/17 15:37 Copyright 2024 Glom.
*/
@AsahiPrefix(["analysis", "inline"], "lang")
private fun inline() = prefixParser {
val text = if (expect("all")) questList() else quest()
result {
text.get().let { obj ->
when (obj) {
is Collection<*> -> obj.map { it.toString().analysis(this, *namespaceNames()) }
else -> obj.toString().analysis(this, *namespaceNames())
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy