com.github.themrmilchmann.kraton.lang.jvm / JvmArrayType

JvmArrayType

class JvmArrayType : IJvmType (source)

A type representing an array.

Constructors

<init>

JvmArrayType(type: IJvmType, dimensions: Int, isNullable: Boolean = type.isNullable)

Creates a new array representing type with the given type and dimensions.

Properties

dimensions

val dimensions: Int

the dimensions of the array (defaults to one)

isNullable

val isNullable: Boolean

Whether or not the referenced type is nullable.

type

val type: IJvmType

the type of the array

Functions

nullable

fun nullable(): JvmArrayType

Returns a nullable version of this IJVMType.

Extension Functions

PARAM

fun IJvmType.PARAM(name: String, documentation: String): JavaParameter

Shortcut to create a new JavaParameter.

array

fun IJvmType.array(dim: Int = 1, nullable: Boolean = isNullable): JvmArrayType

Shortcut to create a new JvmArrayType.

asString

fun IJvmType.asString(from: JavaTopLevelType<*, *>?): String

member

fun IJvmType.member(className: String, vararg typeParameters: IJvmType, nullable: Boolean = false): JvmMemberType

Creates and returns a new IJvmType which holds a reference to a member of the receiver type.