VariousClass

class VariousClass(names: String)

A class that can load various classes by their names.

Parameters

names

the names of the classes to be loaded.

Constructors

Link copied to clipboard
constructor(vararg names: String)

Functions

Link copied to clipboard
fun load(loader: ClassLoader? = null, initialize: Boolean = false): Class<Any>
@JvmName(name = "loadTyped")
fun <T : Any> load(loader: ClassLoader? = null, initialize: Boolean = false): Class<T>

Load the first class that matches the given names using the specified ClassLoader.

Link copied to clipboard
fun loadOrNull(loader: ClassLoader? = null, initialize: Boolean = false): Class<Any>?
@JvmName(name = "loadOrNullTyped")
fun <T : Any> loadOrNull(loader: ClassLoader? = null, initialize: Boolean = false): Class<T>?

Load the first class that matches the given names using the specified ClassLoader.