Package-level declarations

Functions

Link copied to clipboard

Returns a ClassPath representing all classes and resources loadable from this and its ancestor class loaders.

Link copied to clipboard

Returns an instance of type token that wraps type.

Link copied to clipboard
fun getPackageName(classFullName: String): String

Returns the package name of classFullName according to the Java Language Specification (section 6.7). Unlike Class.getPackage, this method only parses the class name, without attempting to define the Package and hence load files.

Link copied to clipboard
fun initialize(vararg classes: KClass<*>)
fun initialize(classes: List<KClass<*>>)

Ensures that the given classes are initialized, as described in JLS Section 12.4.2.

Link copied to clipboard
@JvmName(name = "newProxyJava")
inline fun <T> newProxy(noinline handler: (proxy: Any, method: Method, args: Array<Any>) -> Any): T

Returns a proxy instance that implements T by dispatching method invocations to handler. The class loader of T will be used to define the proxy class. To implement multiple interfaces or specify a class loader, use Proxy.newProxyInstance.

Properties

Link copied to clipboard

Returns the package name of this according to the Java Language Specification (section 6.7). Unlike Class.getPackage, this method only parses the class name, without attempting to define the Package and hence load files.