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

javaInterface

@JvmOverloads fun javaInterface(className: String, documentation: String? = null, since: String? = null, superInterfaces: Array<out IJvmType>? = null, init: JavaInterfaceScope.() -> Unit): JavaInterface (source)

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

Parameters

className - the name 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 enclosing type of which the interface will be a member of

Return
the newly created and registered JavaInterface object

Since
1.0.0