com.github.themrmilchmann.kraton.lang.jvm

Package com.github.themrmilchmann.kraton.lang.jvm

Types

AbstractJvmType

abstract class AbstractJvmType : IJvmType

A reference to a java type.

IJvmType

interface IJvmType

An IJvmType represents a type that may be used in a JVM language.

JvmArrayType

class JvmArrayType : IJvmType

A type representing an array.

JvmGenericType

class JvmGenericType : AbstractJvmType

A type representing generic type.

JvmMemberType

class JvmMemberType : JvmTypeReference

JvmPrimitiveBoxType

class JvmPrimitiveBoxType : AbstractJvmType

A JvmPrimitiveBoxType represents the boxed version of a primitive type.

JvmPrimitiveType

class JvmPrimitiveType : AbstractJvmType

A JvmPrimitive type represents a primitive type.

JvmTypeReference

open class JvmTypeReference : AbstractJvmType

A reference to a java type.

Extensions for External Classes

java.lang.Class

kotlin.reflect.KClass

Properties

boolean

val boolean: JvmPrimitiveType

The boolean type.

boolean_t

val boolean_t: JvmPrimitiveType

The boolean type.

byte

val byte: JvmPrimitiveType

The byte type.

byte_t

val byte_t: JvmPrimitiveType

char

val char: JvmPrimitiveType

The char type.

char_t

val char_t: JvmPrimitiveType

The char type.

double

val double: JvmPrimitiveType

The double type.

double_t

val double_t: JvmPrimitiveType

The double type.

float

val float: JvmPrimitiveType

The float type.

float_t

val float_t: JvmPrimitiveType

The float type.

int

val int: JvmPrimitiveType

The int type.

int_t

val int_t: JvmPrimitiveType

The int type.

long

val long: JvmPrimitiveType

The long type.

long_t

val long_t: JvmPrimitiveType

The long type.

short

val short: JvmPrimitiveType

The short type.

short_t

val short_t: JvmPrimitiveType

The short type.

string

val string: JvmTypeReference

The String type.

void

val void: AbstractJvmType

The void type.

void_t

val void_t: AbstractJvmType

The void type.

Functions

array

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

Shortcut to create a new JvmArrayType.

larger

fun larger(alpha: JvmPrimitiveType, beta: JvmPrimitiveType): JvmPrimitiveType

Compares two types by size in bytes and returns the larger one.

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.

smaller

fun smaller(alpha: JvmPrimitiveType, beta: JvmPrimitiveType): JvmPrimitiveType

Compares two types by size in bytes and returns the smaller one.