ListType

data class ListType(internalType: Type) : ArrayType

List type

Represents a list type. Currently implemented as an array-based list.

Constructors

ListType
Link copied to clipboard
fun ListType(internalType: Type)
Create empty List type

Types

Append
Link copied to clipboard
data class Append(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Append
ListConstructor
Link copied to clipboard
object ListConstructor : ConstructorMethod
Prepend
Link copied to clipboard
data class Prepend(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Prepend

Functions

component1
Link copied to clipboard
operator fun component1(): Type
containsMethod
Link copied to clipboard
open override fun containsMethod(method: String): Boolean
Contains methodChecks that method name is valid for DataStructureType
copy
Link copied to clipboard
fun copy(internalType: Type): ListType
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
open override fun getConstructor(): ConstructorMethod
Get constructor
getMethodByName
Link copied to clipboard
open override fun getMethodByName(method: String): DataStructureMethod
Get method by nameReturns method by name
getMethodNameByMethod
Link copied to clipboard
fun getMethodNameByMethod(method: DataStructureMethod): String
Get method name by methodFinds method name given DataStructureMethod
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setTo2D
Link copied to clipboard
fun setTo2D()
Set to2dSets array to two dimensional.
toString
Link copied to clipboard
open override fun toString(): String

Properties

internalType
Link copied to clipboard
open override var internalType: Type
is2D
Link copied to clipboard
var is2D: Boolean = false
methods
Link copied to clipboard
open override val methods: MutableMap<String, DataStructureMethod>