DataStructureType

abstract class DataStructureType(internalType: Type) : Type

Data structure type

Should be extended when adding new data structures to the language

Constructors

DataStructureType
Link copied to clipboard
fun DataStructureType(internalType: Type)
Create empty Data structure type

Functions

containsMethod
Link copied to clipboard
abstract fun containsMethod(method: String): Boolean
Contains methodChecks that method name is valid for DataStructureType
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
abstract fun getConstructor(): ConstructorMethod
Get constructor
getMethodByName
Link copied to clipboard
abstract 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 fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

internalType
Link copied to clipboard
open var internalType: Type
methods
Link copied to clipboard
abstract val methods: MutableMap<String, DataStructureMethod>

Inheritors

ArrayType
Link copied to clipboard
BinaryTreeType
Link copied to clipboard
BinaryTreeNodeType
Link copied to clipboard
StackType
Link copied to clipboard