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

javaClass

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

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

Parameters

fileName - the name for the class

packageName - the name of the package for the class

srcFolder - the name of the source folder for the class

srcSet - the name of the source folder 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 profile of which the class will be a member of

Return
the newly created and registered JavaClass object

Since
1.0.0