com.github.themrmilchmann.kraton.lang.java / JavaScope / javaClass

javaClass

@JvmOverloads fun javaClass(className: String, documentation: String? = null, since: String? = null, superClass: IJvmType? = null, interfaces: Array<out IJvmType>? = null, init: JavaClassScope.() -> Unit): JavaClass (source)

Creates, registers and returns an object representing a Java class.

Parameters

className - the name for the class

documentation - the documentation for the class

since - the value for the class' @since tag

superClass - the parent class for the class

interfaces - the interfaces for the class to implement

Receiver
the enclosing type of which the class will be a member of

Return
the newly created and registered JavaClass object

Since
1.0.0