BinaryTreeType

data class BinaryTreeType(internalType: Type) : DataStructureType

Binary tree type

Represents the type for a binary tree (wrapper type for a node)

Constructors

BinaryTreeType
Link copied to clipboard
fun BinaryTreeType(internalType: Type)
Create empty Binary tree type

Types

BinaryTreeConstructor
Link copied to clipboard
class BinaryTreeConstructor(nodeType: BinaryTreeNodeType) : ConstructorMethod
Binary tree constructor
Root
Link copied to clipboard
class Root(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Root

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): BinaryTreeType
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
toString
Link copied to clipboard
open override fun toString(): String

Properties

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