EnumType

open class EnumType(val className: String, val packageName: String, val values: List<String> = emptyList(), val valuesJSON: List<String> = emptyList()) : AbstractType

A user defined enum class.

Example:

package com.example

enum class GreetingType(
GREETING, HUG, HIGH_FIVE
)

is EnumType:

  • name: "GreetingType"

  • package: "com.example"

  • values: GREETING, HUG, HIGH_FIVE

Constructors

Link copied to clipboard
constructor(className: String, packageName: String, values: List<String> = emptyList(), valuesJSON: List<String> = emptyList())

Properties

Link copied to clipboard
open override val className: String
Link copied to clipboard
Link copied to clipboard
open override val packageName: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun copy(values: List<String>): EnumType
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun AbstractType?.typeSimplename(asKotlinType: Boolean = true): String