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

javaInterface

@JvmOverloads fun Profile.javaInterface(fileName: String, packageName: String, srcFolder: String, srcSet: String, documentation: String? = null, since: String? = null, superInterfaces: Array<out IJvmType>? = null, copyrightHeader: String? = null, init: JavaInterfaceScope.() -> Unit): JavaInterface (source)

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

Parameters

fileName - the name for the interface

packageName - the name of the package for the interface

srcFolder - the name of the source folder for the interface

srcSet - the name of the source folder for the interface

documentation - the documentation for the interface

since - the value for the interface's @since tag

superInterfaces - the interfaces for the interface to extend

Receiver
the profile of which the interface will be a member of

Return
the newly created and registered JavaInterface object

Since
1.0.0