ArrayType

open class ArrayType(internalType: Type, is2D: Boolean) : DataStructureType

Array type

represents type for arrays. Currently only supports up to two dimensional arrays due to complexities in animating.

Constructors

ArrayType
Link copied to clipboard
fun ArrayType(internalType: Type, is2D: Boolean = false)
Create empty Array type

Types

ArrayConstructor
Link copied to clipboard
object ArrayConstructor : ConstructorMethod
Contains
Link copied to clipboard
data class Contains(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Contains
Size
Link copied to clipboard
data class Size(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Size
Swap
Link copied to clipboard
data class Swap(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Swap

Functions

containsMethod
Link copied to clipboard
open override fun containsMethod(method: String): Boolean
Contains methodChecks that method name is valid for DataStructureType
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>

Inheritors

ListType
Link copied to clipboard