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

JavaInterfaceScope

class JavaInterfaceScope : JavaScope<JavaInterface, JavaInterfaceScope> (source)

Inherited Properties

members

val members: MutableSet<JavaBodyMember>

scopeRoot

val scopeRoot: T

Functions

invoke

operator fun IJvmType.invoke(name: String, value: String?, documentation: String, since: String? = null, see: List<String>? = null): JavaField

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

operator fun IJvmType.invoke(names: Array<String>, documentation: String, since: String? = null, see: List<String>? = null): JavaField
operator fun IJvmType.invoke(vararg entries: Pair<String, String?>, documentation: String, since: String? = null, see: List<String>? = null): JavaField

Creates, registers and returns an object representing one or multiple Java field/s.

operator fun IJvmType.invoke(name: String, documentation: String, vararg parameters: JavaParameter, returnDoc: String? = null, since: String? = null, exceptions: Array<out Pair<IJvmType, String?>>? = null, see: Array<out String>? = null, typeParameters: Array<out Pair<JvmGenericType, String?>>? = null, body: String? = null): JavaMethod

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

typeParameter

fun String.typeParameter(documentation: String? = null, vararg bounds: IJvmType): JvmGenericType

Creates, registers and returns an object representing a Java type parameter.

Inherited Functions

authors

fun authors(vararg authors: String): Boolean

import

fun import(type: String, isStatic: Boolean = false, isImplicit: Boolean = false): Unit

Imports all types that are directly underneath the given type using a wildcard import.

fun import(type: IJvmType, member: String, forceMode: JavaImportForceMode? = null, isImplicit: Boolean = false): Unit?

Statically imports the given member type.

fun import(type: IJvmType, forceMode: JavaImportForceMode? = null, isImplicit: Boolean = false): Unit?

Imports the given type.

javaClass

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

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

javaInterface

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

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

see

fun see(ref: String): Boolean